Skip to content

Instantly share code, notes, and snippets.

@wareya
Last active June 8, 2016 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wareya/97b83e81658d44760529 to your computer and use it in GitHub Desktop.
Save wareya/97b83e81658d44760529 to your computer and use it in GitHub Desktop.
nna "o-n-n-a" = 「おんな」 anthy modification
>/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