OSDN Git Service

Load hyphenation patterns for Bulgarian and Church Slavonic
authorRoozbeh Pournader <roozbeh@google.com>
Thu, 23 Feb 2017 02:53:39 +0000 (18:53 -0800)
committerRoozbeh Pournader <roozbeh@google.com>
Thu, 23 Feb 2017 07:39:24 +0000 (23:39 -0800)
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
tools/fonts/fontchain_lint.py

index 356804e..80ec03e 100644 (file)
@@ -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",
index f193ea4..eb8a1cc 100755 (executable)
@@ -14,7 +14,9 @@ EMOJI_VS = 0xFE0F
 
 LANG_TO_SCRIPT = {
     'as': 'Beng',
+    'bg': 'Cyrl',
     'bn': 'Beng',
+    'cu': 'Cyrl',
     'cy': 'Latn',
     'da': 'Latn',
     'de': 'Latn',