diff options
author | Jacob Moody <moody@posixcafe.org> | 2022-10-12 18:17:49 +0000 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2022-10-12 18:17:49 +0000 |
commit | f337516664d52d6211ded7a74237c72057734e1c (patch) | |
tree | 8d23f00bd7884e07cb2f078902e09b7e7b67b523 /sys/lib/kbmap | |
parent | 8175958b19d8b34bd96f9199e7face8470fa5cf2 (diff) |
ktrans: revisit grammer handling and do some spring cleaning
Revisiting the man page example and README from the
original ktrans there was some descripency on how
to handle punction marks and special characters.
Notably 。(.) and 、(,) need special casing. If we
have anything in the buffer we need to tack on
these characters as an Okuri tail and avoid the actual
punction from entering the Kanji buffer.
Newlines were previously modified to be taken as a completion
if there was runes in the buffer. This has been backed out,
instead Shift + Space can serve this role via kbmap should they
prefer (and as is done in the jp kbmap). Instead we treat newlines
as hints to reset the buffer.
There was also a bug in where after cycling through all options the
original hiragana was not printed back. This has been corrected.
The max number of candidates has been bumped to 32 and moved to an enum.
This does nearly double our resident memory size, but we reguarly had
matches exceed this limit. A better solution is slated.
The man page now makes an attempt to explain the rules around Okuri and
Joshi input modes.
Diffstat (limited to 'sys/lib/kbmap')
0 files changed, 0 insertions, 0 deletions