diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2010-05-24 13:41:24 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-05-24 13:41:24 +0800 |
commit | 839285e57e76ddf94b6c77233ed6296ebead2a8c (patch) | |
tree | b05e47e70e74d35f00336910a02cb9749b6f108d /scripts | |
parent | 9258379bbdaedc5ab48688303d13df8ef4446f9d (diff) | |
download | ibus-libpinyin-839285e57e76ddf94b6c77233ed6296ebead2a8c.tar.gz |
Refine coding style and use guint8 in BopomofoKeyboard.h
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/genbopomofokeyboard.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/genbopomofokeyboard.py b/scripts/genbopomofokeyboard.py index 14ba9d2..5ad0676 100644 --- a/scripts/genbopomofokeyboard.py +++ b/scripts/genbopomofokeyboard.py @@ -80,7 +80,7 @@ def tochar(ch): def gen_table(): i = 0 - print 'static const gint' + print 'static const guint8' print 'bopomofo_keyboard[][41][2] = {' for keyboard in bopomofo_keyboard: print ' {' @@ -91,7 +91,7 @@ def gen_table(): i += 1 items.sort() for k,v in items: - print ' {%4s, %15s },' % (tochar(k),v) + print ' { %-4s, %-15s },' % (tochar(k),v) print ' },' print '};' print |