yield pinyin_key, first_key, second_key, freq
-def gen_all_special():
+def gen_all_resplit():
for pinyin_key in pinyin_list:
if pinyin_key[-1] in ["n", "g", "r"]:
for yun in yunmu_list:
yield pinyin_key, "r", pinyin_key[:-1], "er"
-def filter_special():
+def filter_resplit():
for (orig_first_key, orig_second_key, new_first_key, new_second_key) \
- in gen_all_special():
+ in gen_all_resplit():
if not (new_first_key, new_second_key) in phrase_dict:
continue
orig_freq = 0
load_phrase("pinyin2.txt")
for p in filter_divided():
print (p)
- for p in filter_special():
+ for p in filter_resplit():
print (p)
--- /dev/null
+/* This file is generated by python scripts. Don't edit this file directly.
+ */
+
+#ifndef PINYIN_PARSER_TABLE_H
+#define PINYIN_PARSER_TABLE_H
+
+@PINYIN_INDEX@
+
+@BOPOMOFO_INDEX@
+
+@CONTENT_TABLE@
+
+@DIVIDED_TABLE@
+
+@RESPLIT_TABLE@
+
+#endif