Searched refs:script_code (Results 1 – 7 of 7) sorted by relevance
122 def script_code(script_name, default=KeyError): function197 def script_horizontal_direction(script_code, default=KeyError): argument201 if script_code not in Scripts.NAMES:203 raise default(script_code)205 return str("RTL") if script_code in RTL_SCRIPTS else str("LTR")224 def ot_tags_from_script(script_code): argument229 if script_code not in Scripts.NAMES:234 script_code,235 script_code[0].lower() + script_code[1:]238 if script_code in OTTags.NEW_SCRIPT_TAGS:[all …]
186 assert unicodedata.script_code("Latin") == "Latn"187 assert unicodedata.script_code("Common") == "Zyyy"188 assert unicodedata.script_code("Unknown") == "Zzzz"190 assert unicodedata.script_code("Egyptian Hieroglyphs") == "Egyp"191 assert unicodedata.script_code("Egyptian_Hieroglyphs") == "Egyp"192 assert unicodedata.script_code("egyptianhieroglyphs") == "Egyp"193 assert unicodedata.script_code("Egyptian-Hieroglyphs") == "Egyp"196 unicodedata.script_code("Does not exist")197 assert unicodedata.script_code("Does not exist", default="Zzzz") == "Zzzz"
39 UScriptCode script_code = uscript_getScript(input_flat(i), status); in Compute() local41 output_flat(i) = script_code; in Compute()
1444 script_code = compile(script_text, script_filename, 'exec')1445 exec(script_code, namespace, namespace)
509 letter script codes now. Added ``script_name`` and ``script_code`` functions
926 letter script codes now. Added ``script_name`` and ``script_code`` functions