summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-22 15:25:58 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-22 15:25:58 +0800
commit09f1c10d797e4b7cc70cb0f8491619c477ca2838 (patch)
tree4e9e287c26a61ad05f82ecd02e319818be691fea /scripts
parenta587af57ef8a5896622132b0f53001fa1211c04f (diff)
downloadlibpinyin-09f1c10d797e4b7cc70cb0f8491619c477ca2838.tar.gz
libpinyin-09f1c10d797e4b7cc70cb0f8491619c477ca2838.tar.xz
libpinyin-09f1c10d797e4b7cc70cb0f8491619c477ca2838.zip
update gen double pinyin header
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gendoublepinyinheader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gendoublepinyinheader.py b/scripts/gendoublepinyinheader.py
index 749c2d3..96a363e 100644
--- a/scripts/gendoublepinyinheader.py
+++ b/scripts/gendoublepinyinheader.py
@@ -32,7 +32,7 @@ def gen_shengmu_table(scheme):
sh = sheng.get(c, "NULL")
if sh != "NULL":
sh = '"{0}"'.format(sh)
- entry = '{0: <5} /* {1} */'.format(sh, c.upper())
+ entry = '{{{0: <5}}} /* {1} */'.format(sh, c.upper())
entries.append(entry)
return ',\n'.join(entries)
@@ -52,7 +52,7 @@ def gen_yunmu_table(scheme):
y1 = '"{0}"'.format(y1)
if y2 != "NULL":
y2 = '"{0}"'.format(y2)
- entry = '{{{0: <7}, {1: <7}}} /* {2} */'.format(y1, y2, c.upper())
+ entry = '{{{{{0: <7}, {1: <7}}}}} /* {2} */'.format(y1, y2, c.upper())
entries.append(entry)
return ',\n'.join(entries)