summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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__":