Home
last modified time | relevance | path

Searched refs:script_code (Results 1 – 5 of 5) sorted by relevance

/external/fonttools/Lib/fontTools/unicodedata/
D__init__.py120 def script_code(script_name, default=KeyError): function
205 def script_horizontal_direction(script_code, default=KeyError): argument
209 if script_code not in Scripts.NAMES:
211 raise default(script_code)
213 return str("RTL") if script_code in RTL_SCRIPTS else str("LTR")
232 def ot_tags_from_script(script_code): argument
237 if script_code not in Scripts.NAMES:
242 script_code,
243 script_code[0].lower() + script_code[1:]
246 if script_code in OTTags.NEW_SCRIPT_TAGS:
[all …]
/external/fonttools/Tests/
Dunicodedata_test.py182 assert unicodedata.script_code("Latin") == "Latn"
183 assert unicodedata.script_code("Common") == "Zyyy"
184 assert unicodedata.script_code("Unknown") == "Zzzz"
186 assert unicodedata.script_code("Egyptian Hieroglyphs") == "Egyp"
187 assert unicodedata.script_code("Egyptian_Hieroglyphs") == "Egyp"
188 assert unicodedata.script_code("egyptianhieroglyphs") == "Egyp"
189 assert unicodedata.script_code("Egyptian-Hieroglyphs") == "Egyp"
192 unicodedata.script_code("Does not exist")
193 assert unicodedata.script_code("Does not exist", default="Zzzz") == "Zzzz"
/external/tensorflow/tensorflow/core/kernels/
Dunicode_script_op.cc39 UScriptCode script_code = uscript_getScript(input_flat(i), status); in Compute() local
41 output_flat(i) = script_code; in Compute()
/external/python/setuptools/pkg_resources/
D__init__.py1444 script_code = compile(script_text, script_filename, 'exec')
1445 exec(script_code, namespace, namespace)
/external/fonttools/
DNEWS.rst1186 letter script codes now. Added ``script_name`` and ``script_code`` functions