8n8/elm-string-normalize/1.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: no fork with tag 1.0.0 found (4 same-name repos checked); https://github.com/8n8/elm-string-normalize has tag 1.0.0, but not a package Elm could build from it; https://github.com/8n8/elm-string-normalize commit 62711584bb84be47d5f1d8f55d5caf9c9513d6eb (the tag's commit when Software Heritage visited) has tag 1.0.0, but not a package Elm could build from it; no cached copy. Use another version.

Details

RemoveDiacritics

Remove diacritics from a string. This is handy for normalizing strings before sorting, to give a more natural sort.

removeDiacritics : String -> String

removeDiacritics removes diactritics, it will expand known ligatures, thus changing the string glyph length. All non latin characters are untouched.

removeDiacritics "La liberté commence où l'ignorance finit."


--> "La liberte commence ou l'ignorance finit."
removeDiacritics "é()/& abc" --> "e()/& abc"


removeDiacritics "こんにちは" --> "こんにちは"
lookupTable : Dict Char String

The table of characters with diacritics, and the strings that they are replaced by.