Last active
June 8, 2016 03:31
-
-
Save wareya/97b83e81658d44760529 to your computer and use it in GitHub Desktop.
nna "o-n-n-a" = 「おんな」 anthy modification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>/usr/share/ibus-anthy/engine/tables.py: | |
= 'nm' : ('ん', 'm'), | |
+ 'nn' : ('ん', 'n'), | |
= 'np' : ('ん', 'p'), | |
>/usr/share/ibus-anthy/engine/romaji.py | |
=def romaji_correction_rule_get(k, d): | |
- return ('ん', k[1:2]) if k[0:1] == 'n' and not k[1:2] in "aiueony'" else d | |
+ return ('ん', k[1:2]) if k[0:1] == 'n' and not k[1:2] in "aiueoy'" else d | |
/usr/share/ibus-anthy/setup/anthyprefs.py needs to be modified to match tables.py (search for "n-n" sans quotes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment