summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-23 15:18:49 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-23 15:18:49 +0800
commit9f17bdefd4303242d017f2cd3e0ee3bfba819af2 (patch)
treed8f695a6d51059e83e179021a8e02887f043516b /scripts
parent0f7b939fd5f21689448881fda1c598162eda9b51 (diff)
downloadlibpinyin-9f17bdefd4303242d017f2cd3e0ee3bfba819af2.tar.gz
libpinyin-9f17bdefd4303242d017f2cd3e0ee3bfba819af2.tar.xz
libpinyin-9f17bdefd4303242d017f2cd3e0ee3bfba819af2.zip
begin to write chewing parser2
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genbopomofoheader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/genbopomofoheader.py b/scripts/genbopomofoheader.py
index 2ed613e..a609589 100644
--- a/scripts/genbopomofoheader.py
+++ b/scripts/genbopomofoheader.py
@@ -89,6 +89,7 @@ def gen_chewing_symbols(scheme):
string = '"{0}"'.format(string)
entry = "{{{0: <5}, {1}}}".format(key, string)
entries.append(entry)
+ entries.append("{'\\0', NULL}")
return ",\n".join(entries)
@@ -105,6 +106,7 @@ def gen_chewing_tones(scheme):
key = escape_char(key);
entry = "{{{0: <5}, {1}}}".format(key, tone)
entries.append(entry)
+ entries.append("{'\\0', 0}")
return ",\n".join(entries)