terrierscript/historykana

historykana doesn't work with OSX Japanese IME

adwd opened this issue · 4 comments

adwd commented

First of all, thank you for such a useful library 🙏

I found that historykana works great with Google日本語入力, but it doesn't work when I use OSX ひらがな IME. 😢

historykana_fail

Thank you for issue.
This may example website issue and not core library's bug.

I planned rewrite example page.

adwd commented

I tested with a tiny app, then cause seems to be that OSX ひらがな performs realtime 漢字変換. Because of that, input history is different from one which historykana expects. Tested code is here.

input history of 山田 with ...

  • Google 日本語入力 ひらがな
    • y, や, やm, やま, やまd, やまだ, 山田
  • OSX ひらがな
    • y, や, やm, 山, 山d, 山田
      • problem is やま and 山だ are skipped...?

historykana

Thank you testing.

problem is やま and 山だ are skipped...?

I think so too.
Sadly, if cannot capture skipped words from OSX ひらがな, this library's logic cannot solve this issue.

adwd commented

Thank you for reply! I understood 😢
I'll close this issue.