Skip to content

Commit

Permalink
conv.py: improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
buganini committed Jul 6, 2016
1 parent 8490176 commit 4a7987e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
8 changes: 4 additions & 4 deletions conv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys

mapping = {
keymap = {
'`':'K_BKQUOTE',
'1':'K_1',
'2':'K_2',
Expand Down Expand Up @@ -134,11 +134,11 @@ def quote(s):
elif r[0]=="SHIFT":
if raw in shiftmap:
k = quote(shiftmap[raw])
elif raw in mapping:
k = "[SHIFT {0}]".format(mapping[raw])
elif raw in keymap:
k = "[SHIFT {0}]".format(keymap[raw])
else:
raise Exception()
else:
k = "[{0} {1}]".format(r[0], mapping[raw])
k = "[{0} {1}]".format(r[0], keymap[raw])

print("+ {0} > {1} dk(1)".format(k, quote(v)))
10 changes: 0 additions & 10 deletions kmfl/khmer.kmn
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
VERSION 7.0
NAME "Khmer"
store(&BITMAP) 'khmer.bmp'
store(&COPYRIGHT) 'Copyright (C) 2010 buganini@gmail.com'

begin Unicode > use(Main)

group( Main ) using keys


+ "`" > "«" dk(1)
+ "1" > "១" dk(1)
+ "2" > "២" dk(1)
Expand Down

0 comments on commit 4a7987e

Please sign in to comment.