skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.19k stars 62 forks source link

Issues with CJK Input #417

Open bitigchi opened 2 years ago

bitigchi commented 2 years ago

Text boxes do not react well to CJK input.

macOS 11.6.1, Lagrange 1.9.1

  1. Japanese input is not processed at all, only IME suggestion box appears at an unrelated screen corner (top right), but the words do not display/not entered even if a suggestion is selected.
  2. Chinese input is not displayed during selection phase, suggestion box appears on the bottom left corner, but once a selection is chosen it is displayed on the text box.
skyjake commented 2 years ago

This is related to #326.

skyjake commented 2 years ago

Not sure how to address this. It falls basically on SDL to handle the specifics of the IME in a platform-independent manner. I don't have any CJK proficiency so it's difficult for me to figure out how to get SDL to do the right thing here. I'll mark this as "help wanted" if someone wants to try to investigate/patch it a bit.

cammeresi commented 6 months ago

Regarding the K in CJK, when typing Korean, the input text box does not display the syllable under construction and only displays the completed syllable when typing has advanced such that the syllable boundary is unambiguous. This makes typing somewhat difficult.

(Korean is written using an alphabet, and each syllable's letters are arranged into a block. When typing in letters, the IME should rearrange the letters in the current syllable into the correct layout after each letter is typed. E.g. if typing in the syllable 괜, the user types in ㄱㅗㅐㄴ and progressively sees ㄱ 고 괘 괜.)

Also, my keyboard shortcut to switch languages is Cmd-Option, but the application is, I guess, snooping on the modifier keys and sometimes sees the Option press as a cue to display link shortcuts, and it sometimes grabs input focus back from the input text box.

(Just FYI—I know you're not going to fix this soon.)