Handle SYM2 pseudo-script.
@@ -286,7 +286,7 @@ def script_key_to_scripts(script_key):
# TODO: Mono doesn't actually support all of Latn, we need a better way
# to deal with pseudo-script codes like this one.
return frozenset(['Latn'])
- elif script_key == 'MUSE':
+ elif script_key in ['MUSE', 'SYM2']:
return frozenset(['Zsym'])
else:
return lang_data.script_includes(script_key)
@@ -305,7 +305,7 @@ def script_key_to_primary_script(script_key):
raise ValueError('!do not know scripts for HST script key')
if script_key == 'MONO':
return 'Latn'
- if script_key == 'MUSE':
+ if script_key in ['MUSE', 'SYM2']:
return 'Zsym'
if script_key not in lang_data.scripts():
raise ValueError('!not a script key: %s' % script_key)
