google / mozc

Mozc - a Japanese Input Method Editor designed for multi-platform
Other
2.32k stars 330 forks source link

Using ImmGetCompositionString yields a different result than Microsoft IME. #857

Closed changhao6 closed 6 months ago

changhao6 commented 6 months ago

Description

Hi, I am using the Windows API ImmGetCompositionString to get the result of IMECompositionEnd. When I call ImmGetCompositionString, Microsoft IME returns "アイウエオ" but Google IME returns "アイ". What is the reason for this result? How can I get the same result as using Microsoft IME? This is very important to me, please take a look at this problem in your busy schedule, thank you!

Expected behavior

Here is MS IME behavior image get 'アイウエオ'

Actual behavior

Here is Google IME behavior image get 'アイ'

Version or commit-id

Google IME 2.28.5050.0

Environment

Windows 10-22H2

Additional context

Here is the demo I used to reproduce this issue, it is based on winforms: https://github.com/changhao6/IMEDemo