Searched refs:script_code (Results 1 – 5 of 5) sorted by relevance
120 def script_code(script_name, default=KeyError): function205 def script_horizontal_direction(script_code, default=KeyError): argument209 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): argument237 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 …]
182 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"
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)
1186 letter script codes now. Added ``script_name`` and ``script_code`` functions