summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-21 16:29:12 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-21 16:29:12 +0800
commitdd2fc6f500ad59c1c42e8875608b3a20057bc374 (patch)
treec9978e1dd00db84b80aacd5c7e36a24ef4702314 /scripts
parent9f402d3b11ccc24ceaf461048c6d5adcc0a4f7ce (diff)
downloadlibpinyin-dd2fc6f500ad59c1c42e8875608b3a20057bc374.tar.gz
libpinyin-dd2fc6f500ad59c1c42e8875608b3a20057bc374.tar.xz
libpinyin-dd2fc6f500ad59c1c42e8875608b3a20057bc374.zip
refine genbopomofoheader.py
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genbopomofoheader.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/genbopomofoheader.py b/scripts/genbopomofoheader.py
index e13e58d..94caedc 100644
--- a/scripts/genbopomofoheader.py
+++ b/scripts/genbopomofoheader.py
@@ -31,32 +31,37 @@ bopomofo = [
'ˊ', 'ˇ', 'ˋ', '˙',
]
-bopomofo_keyboard = (
+bopomofo_keyboard = {
#標準注音鍵盤
+ 'STANDARD':
(
"1","q","a","z","2","w","s","x","e","d","c","r","f","v","5","t","g","b","y","h","n",
"u","j","m","8","i","k",",","9","o","l",".","0","p",";","/","-",
"6","3","4","7",
),
#精業注音鍵盤
+ 'GIN_YIEH':
(
"2","w","s","x","3","e","d","c","r","f","v","t","g","b","6","y","h","n","u","j","m",
"-","[","'","8","i","k",",","9","o","l",".","0","p",";","/","=",
"q","a","z","1",
),
#倚天注音鍵盤
+ 'ETEN':
(
"b","p","m","f","d","t","n","l","v","k","h","g","7","c",",",".","/","j",";","'","s",
"e","x","u","a","o","r","w","i","q","z","y","8","9","0","-","=",
"2","3","4","1",
),
#IBM注音鍵盤
+ 'IBM':
(
"1","2","3","4","5","6","7","8","9","0","-","q","w","e","r","t","y","u","i","o","p",
"a","s","d","f","g","h","j","k","l",";","z","x","c","v","b","n",
"m",",",".","/",
),
-)
+}
+
if __name__ == "__main__":