sharplispers / clx

a fork of crhodes' fork of danb's fork of the CLX library, an X11 client for Common Lisp
Other
116 stars 46 forks source link

Any way to convert Compound Text to utf-8? #180

Closed C-Entropy closed 3 years ago

C-Entropy commented 3 years ago

Since fcitx, a xorg client send compound text, we need to convert it to utf-8 manually. Is there any library for this?

JMC-design commented 3 years ago

Nope. Are you sure you can't request fcitx to send it in utf-8? the encoding for compound text itself isn't very difficult to implement, i.e. reading which encoding to switch to. It's the processing the text encodings after that. I believe babel should be the place for this but they don't want anything to do with it but will accept prs. I haven't had the time to figure out plugging into babel so nothing so far.

C-Entropy commented 3 years ago

Found Emacs's compound text implementation Also, fcitx have enable utf-8.