ueno / libskk

Japanese SKK input method library
GNU General Public License v3.0
78 stars 27 forks source link

Single "n" followed by an upper-letter should be treated as NN #11

Closed tamo closed 12 years ago

tamo commented 12 years ago

(libskk-0.0.9)

What I did:

echo "q s a n S y a " | skk

Expected:

{ "input": "q s a n S y a ", "output": "サン", "preedit": "▽シャ" }

Actual result:

{ "input": "q s a n S y a ", "output": "サ", "preedit": "▽ンシャ" }
tamo commented 12 years ago

This is OK:

echo "M i t T u" | skk
{ "input": "M i t T u", "output": "", "preedit": "▼三つ" }

This is the same as SKKIME, but I'm not sure what the original SKK does:

echo "t a k K u n" | skk
{ "input": "t a k K u n", "output": "た", "preedit": "▽っくn" }
echo "t a k K u n SPC" | skk
{ "input": "t a k K u n SPC", "output": "", "preedit": "[DictEdit] っくん " }

(I wanted to input "たっ君", which can be input by "t a k k U n SPC")

tamo commented 12 years ago

!?

echo "t a k K u n SPC" | skk
{ "input": "t a k K u n SPC", "output": "", "preedit": "[DictEdit] っくん " }

should be at least

{ "input": "t a k K u n SPC", "output": "た", "preedit": "[DictEdit] っくん " }

though I expected it to be

{ "input": "t a k K u n SPC", "output": "たっ", "preedit": "▼君" }
ueno commented 12 years ago

Thanks for the report. With commit 7135e430344fd9b43e3056b39bef3d09d4a6a19a, now it produces:

{ "input": "q s a n S y a", "output": "サン", "preedit": "▽シャ" }
{ "input": "t a k K u n SPC", "output": "た", "preedit": "▼っくん【】" }

though that is not what you want, it is the same behavior as ddskk.

tamo commented 12 years ago

Thanks!