libera/#clim - IRC Chatlog
Search
21:51:08
calsys
I've looked into the discontinued native IME support of mcclim with SDL2 backend, and worked for a day to made a POC implementation on macOS
21:54:03
calsys
I've seen the comment in the keyboard.lisp. It seems that someone is already put effort but met difficulty there. I don't know whether my attempt is useful or not?...
21:56:18
calsys
the full patch set is ~300 lines, additionally there's a native interface system which is probably can be integrated into CLIM somewhere...
21:59:01
cmack
calsys: wow, I didn't realize you were working in that area too. I've been looking at it from the wayland text-input-v3 angle recently
22:00:17
calsys
cmack: That's so cool! I have a macbook but lacking knowledge in wayland. we can work together to make it support all platforms
22:03:32
cmack
calsys: in your video I don't see the "preedit" text happening in the text buffer as you type... does macos have this concept?
22:04:22
calsys
cmack: it definitely has, but I don't know how to properly integrate this feature into clim
22:04:25
cmack
I was earlier trying to find the best way to get the (x,y) position of the cursor during IME input
22:05:50
calsys
the preedit text is like ghost text, we probably want something like overlay or virtual string to make it
22:06:56
calsys
calculating coordinate itself is probably not that difficult, once we integrate them into the gadget
22:09:27
calsys
overlay will be a large amount of work... once we have it done we're likely built an Emacs lol
22:09:28
cmack
yes, jackdaniel spent much time recently updating things like typeouts and other completion facilities from http://bauhh.dyndns.org:8000/clim-spec/24.html#_1296 and I was thinking of those but didn't think they'd be necessary yet
22:10:59
cmack
sadly, I think I might be out of time to into this more deeply today my computer time is about to run out soon
22:12:52
cmack
does mac also have the concept of "delete surrounding text" event from IME? When I looked at SDL2 and SDL3 it looked like they might not have as full-featured IME events
22:13:51
calsys
cmack: if you want a quick patch view: https://paste.sr.ht/~calsys/939afbb56b4dd4827909ba4972fb7a7715e74f9a
22:15:17
calsys
cmack: i don't know what "delete surrounding text" mean, as a chinese user our IME will ever not delete characters forward
22:17:37
calsys
I've create a small facility called "mac-ime" to detect current active IME. I don't know where it can be properly integrated so it's separated at this time...
22:20:20
cmack
calsys: for wayland, the "turn on IME" event comes from the compositor via fcitx5 (my linux IME). I am working on the external input first by the way. I'd like McCLIM-native one in the future but it's not my first attempt's goal
22:22:00
calsys
In fact, I'm the one that wrote cl-pyim (a chinese input method inside clim) 4 years ago. At that time my nickname was Rosario, and was just a highschool student
22:23:15
cmack
calsys: yes. also similar to Emacs. Emacs has its own native IME (I think defaults to C-\) but if I use keyboard key that fcitx5 recognizes, it will be the "Linux native one" so-to-speak
22:25:18
calsys
I think both external and internal attempt is necessary, as we must consider various scenario, just like Emacs
22:26:06
cmack
calsys: ok I have to stop now. Thanks for making your w-i-p available. I hope I can look more carefully tomorrow when I can code again
22:26:22
calsys
I also just picked up CLIM these days lol. Usually I playing with LispWorks and write plugins for it