diff options
Diffstat (limited to 'scripts2/zhuyin.py')
-rw-r--r-- | scripts2/zhuyin.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts2/zhuyin.py b/scripts2/zhuyin.py index 5ab76c4..fa5dbd9 100644 --- a/scripts2/zhuyin.py +++ b/scripts2/zhuyin.py @@ -65,6 +65,7 @@ def compute_zero_tone(): final_maps = middle_maps[middle] for final in final_maps.keys(): tone_maps = final_maps[final] + # assume all valid zero tones have sub tones if len(tone_maps) > 0: tone_maps["CHEWING_ZERO_TONE"] = True @@ -95,6 +96,8 @@ def is_valid_zhuyin(key): if tone not in maps: return False + return True + # generate valid_zhuyin_table def gen_zhuyin_table(): |