From e626fb53e2588a2efe52d9aee0195534e0aa442a Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Wed, 22 Feb 2017 18:53:39 -0800 Subject: [PATCH] Load hyphenation patterns for Bulgarian and Church Slavonic Patterns for Bulgarian (bg) and Church Slavonic (cu) are now loaded too. Also make changes to fontchain_lint.py, so it knows the script for Bulgarian and Church Slavonic is Cyrillic. Test: make -j works and creates .hyb files for bg and cu Change-Id: I0586f6c49380279ef88fe952b5cfd2d3594c5524 --- core/java/android/text/Hyphenator.java | 2 ++ tools/fonts/fontchain_lint.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/java/android/text/Hyphenator.java b/core/java/android/text/Hyphenator.java index 356804ea64bd3..80ec03e70cb70 100644 --- a/core/java/android/text/Hyphenator.java +++ b/core/java/android/text/Hyphenator.java @@ -189,7 +189,9 @@ public class Hyphenator { // TODO: replace this with a discovery-based method that looks into /system/usr/hyphen-data String[] availableLanguages = { "as", + "bg", "bn", + "cu", "cy", "da", "de-1901", "de-1996", "de-CH-1901", diff --git a/tools/fonts/fontchain_lint.py b/tools/fonts/fontchain_lint.py index 7ec46a3ee86b9..c5598f0d87eda 100755 --- a/tools/fonts/fontchain_lint.py +++ b/tools/fonts/fontchain_lint.py @@ -14,7 +14,9 @@ EMOJI_VS = 0xFE0F LANG_TO_SCRIPT = { 'as': 'Beng', + 'bg': 'Cyrl', 'bn': 'Beng', + 'cu': 'Cyrl', 'cy': 'Latn', 'da': 'Latn', 'de': 'Latn',