summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJungshik Shin <jungshik@google.com>2016-03-19 09:32:34 -0700
committerJungshik Shin <jungshik@google.com>2016-03-23 17:19:49 +0000
commit6c4f9e0d6f268693663fd5696046172e8c626dd5 (patch)
tree6adefc0564a15ed7a5949200ecc1814595e1429b
parent95972768013fe9da93fa4e3a396284acaaf67039 (diff)
Add Lang-to-Script entries for languages with new hyph patterns
Hyphenation patterns are being added for 22 languages and they need entries in LANG_TO_SCRIPT This CL is a prerequisite to the following CL to add hyphenation patterns for more languages: https://googleplex-android-review.googlesource.com/#/c/890133/ BUG: 26405413 Change-Id: Ibba8379cca29a5a7b6df35f10b66468b612601f8
-rwxr-xr-xtools/fonts/fontchain_lint.py24
1 files changed, 22 insertions, 2 deletions
diff --git a/tools/fonts/fontchain_lint.py b/tools/fonts/fontchain_lint.py
index fb2213cdad57..14888c00036c 100755
--- a/tools/fonts/fontchain_lint.py
+++ b/tools/fonts/fontchain_lint.py
@@ -9,17 +9,37 @@ from xml.etree import ElementTree
from fontTools import ttLib
LANG_TO_SCRIPT = {
+ 'as': 'Beng',
+ 'bn': 'Beng',
+ 'cy': 'Latn',
+ 'da': 'Latn',
'de': 'Latn',
'en': 'Latn',
'es': 'Latn',
+ 'et': 'Latn',
'eu': 'Latn',
- 'ja': 'Jpan',
- 'ko': 'Kore',
+ 'fr': 'Latn',
+ 'ga': 'Latn',
+ 'gu': 'Gujr',
+ 'hi': 'Deva',
+ 'hr': 'Latn',
'hu': 'Latn',
'hy': 'Armn',
+ 'ja': 'Jpan',
+ 'kn': 'Knda',
+ 'ko': 'Kore',
+ 'ml': 'Mlym',
+ 'mn': 'Cyrl',
+ 'mr': 'Deva',
'nb': 'Latn',
'nn': 'Latn',
+ 'or': 'Orya',
+ 'pa': 'Guru',
'pt': 'Latn',
+ 'sl': 'Latn',
+ 'ta': 'Taml',
+ 'te': 'Telu',
+ 'tk': 'Latn',
}
def lang_to_script(lang_code):