ICU: better letter identification in normalization

The Letter class does not include non-spacing marks that can also
have a consonant or vowel meaning, especially in Indian languages.
Use the alnum propoerty instead which includes them all. Also
include the vowel-canceling Virama, which is not a letter by itself
but changes the transliteration.
This commit is contained in:
Sarah Hoffmann 2022-04-28 17:20:56 +02:00
parent de828b723e
commit 63dc4b39bc

View File

@ -8,8 +8,8 @@ normalization:
- "ª > a" - "ª > a"
- "º > o" - "º > o"
- "[[:Punctuation:][:Symbol:]\u02bc] > ' '" - "[[:Punctuation:][:Symbol:]\u02bc] > ' '"
- "ß > 'ss'" # German szet is unimbigiously equal to double ss - "ß > 'ss'" # German szet is unambiguously equal to double ss
- "[^[:Letter:] [:Number:] [:Space:]] >" - "[^[:alnum:] [:Canonical_Combining_Class=Virama:] [:Space:]] >"
- "[:Lm:] >" - "[:Lm:] >"
- ":: [[:Number:]] Latin ()" - ":: [[:Number:]] Latin ()"
- ":: [[:Number:]] Ascii ();" - ":: [[:Number:]] Ascii ();"