ryancheung / ImeSharp

C# wrapper for Windows IME APIs
MIT License
71 stars 12 forks source link

[Won't Merge] Example code to show how to get composition string and candidate list from IMM32 API #2

Closed ryancheung closed 4 years ago

ryancheung commented 4 years ago

This PR is just a example for reference.

I tested this PR with many IMEs, like Google PinYin, Sougou PinYin, Google PinYin. All of the IMEs won't work well if IMM32 was enabled by InputMethod.EnableOrDisableInputMethodIMM32(). And I found these IMEs are not IMM32-based, there are actually TSF-based. If you fetch composition string and result string from TextCompositionManager, it seems works fine.

So we may have to dig into the TSF side deeply. And we should enable IMM32 only when the active IME is IMM32-based.

ryancheung commented 4 years ago

IMM32 is already implemented in master branch. Close.