Skip to content

win32u: Add more CompAttr, CompClause implementation using cursor_begin, cursor_end concept.

Byeongsik Jeon requested to merge bsjeon/wine:add_comp_attr_clause_impl into master

If CompAttr and CompClause are properly configured, Japanese input will be more comfortable.

Inspired by cursor_begin and cursor_end from Wayland zwp_text_input_v3:: preedit_string, I extended the cursor_pos concept as follows:

cursor_pos = MAKELONG( cursor_begin, cursor_end );

ime_to_tascii_ex() uses this to construct CompAttr, CompClause. MS Windows native CompAttr, CompClause is a bit more complicated than this, but the concept is useful enough.

It requires additional implementation in the Wine ime_ui_window proc and richedit control. However, it is useful for applications that inline ime composition string.

This can be tested with MS Office Word, Excel. LANG=ja_JP.UTF-8 wine EXCEL.EXE

Test key sequences:

  • “n-i-h-o-n-g-o-n-o-m-o-j-i-d-e-s-u-.-SPACE”.
  • And, RIGHT, LEFT, Shift+LEFT, Shift+RIGHT, ESC, SPACE, etc.
Edited by Byeongsik Jeon

Merge request reports

Loading