summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-10-13 16:42:15 +0800
committerPeng Wu <alexepico@gmail.com>2015-10-13 16:42:15 +0800
commit0b65ed208068a55d262a67991b8962dbec7c4362 (patch)
tree9fe81824410d6bfa53fe0a5d72075f3ea44b42c8
parent0030a2639d96eaa93fd6ed5a416f96f3036e4a6e (diff)
downloadlibpinyin-0b65ed208068a55d262a67991b8962dbec7c4362.tar.gz
libpinyin-0b65ed208068a55d262a67991b8962dbec7c4362.tar.xz
libpinyin-0b65ed208068a55d262a67991b8962dbec7c4362.zip
update doublepinyintable.py
-rw-r--r--scripts2/doublepinyintable.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts2/doublepinyintable.py b/scripts2/doublepinyintable.py
index ff991b7..444bf89 100644
--- a/scripts2/doublepinyintable.py
+++ b/scripts2/doublepinyintable.py
@@ -82,6 +82,8 @@ def gen_fallback_table2(scheme):
index = char1 + char2
entry = '{{"{0}", "{1}"}}'.format(index, yunmu)
entries.append(entry)
+
+ entries.append('{NULL, NULL}')
return ',\n'.join(entries)
@@ -115,11 +117,17 @@ def gen_fallback_table3(scheme):
index = char1 + char2
entry = '{{"{0}", "{1}"}}'.format(index, yunmu)
entries.append(entry)
+
+ entries.append('{NULL, NULL}')
return ',\n'.join(entries)
### main function ###
if __name__ == "__main__":
+ print(gen_shengmu_table("PYJJ"), os.linesep)
+
+ print(gen_yunmu_table("PYJJ"), os.linesep)
+
print(gen_fallback_table2("PYJJ"), os.linesep)
print(gen_fallback_table3("ZRM"), os.linesep)