Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a9701a1 authored by Calvin Pan's avatar Calvin Pan
Browse files

Support Hyphenation for Polish

Bug: 219528863
Test: atest android.graphics.text.cts.HyphenationTest
Change-Id: I160512edd28e9b064607280ac88f6fca48c4aa6f
parent 51ad0567
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@ static void init() {
    addHyphenator("nn", 2, 2);  // Norwegian Nynorsk
    addHyphenator("or", INDIC_MIN_PREFIX, INDIC_MIN_SUFFIX);  // Oriya
    addHyphenator("pa", INDIC_MIN_PREFIX, INDIC_MIN_SUFFIX);  // Punjabi
    addHyphenator("pl", 2, 2);  // Polish
    addHyphenator("pt", 2, 3);  // Portuguese
    addHyphenator("ru", 2, 2);  // Russian
    addHyphenator("sk", 2, 2);  // Slovak
@@ -141,7 +142,6 @@ static void init() {
    // Following two hyphenators do not have pattern files but there is some special logic based on
    // language.
    addHyphenatorWithoutPatternFile("ca", 2, 2);  // Catalan
    addHyphenatorWithoutPatternFile("pl", 2, 2);  // Polish

    // English locales that fall back to en-US. The data is from CLDR. It's all English locales,
    // minus the locales whose parent is en-001 (from supplementalData.xml, under <parentLocales>).
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ LANG_TO_SCRIPT = {
    'or': 'Orya',
    'pa': 'Guru',
    'pt': 'Latn',
    'pl': 'Latn',
    'ru': 'Latn',
    'sk': 'Latn',
    'sl': 'Latn',