Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2345  / 1 Year ago, sun, march 19, 2023, 7:00:53

I would like to type Chinese in Emacs. I followed this link, and tried several input methods including chinese-py. It seems that, unlike normal IME of an operation system, it is not possible to type more than 1 character one time. We have to type character 1 by 1, this is not convenient at all.



Does anyone have a solution?


More From » language

 Answers
5

You can use ibus with emacs (22 or higher) by installing ibus-el.



ibus-el Install ibus-el or sudo apt-get install ibus-el



There are instructions for setting it up at Ibus Mode. The instructions were written when ibus-el was still a PPA, but the rest of it holds. Slightly updated instructions are also installed to /usr/share/doc/ibus-el



If you have installed ibus-el, you can ignore most of the instructions. All you need to do is add the following lines to your ~/.emacs file:



    (require 'ibus)
(add-hook 'after-init-hook 'ibus-mode-on)


Something not mentioned in the manual is that Ibus is not listed as in input method in Emacs even after installing ibus-el. So there's no need to bother with C-. Just use the Ibus indicator on the menubar to switch input methods like you would with any other application.



Also, Ibus won't see an available input window immediately after Emacs has started. If you try to switch to a Chinese input method at that point using the Ibus indicator on the menu bar, nothing will happen and you might think it's not working. But just click in your file before trying to switch the input method (letting Ibus see the available edit window) and then menu bar indicator and Ibus work as normal.


[#31817] Tuesday, March 21, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
amelican

Total Points: 162
Total Questions: 116
Total Answers: 108

Location: Guam
Member since Mon, May 29, 2023
1 Year ago
amelican questions
Sun, Aug 14, 22, 01:26, 2 Years ago
Mon, Apr 24, 23, 18:12, 1 Year ago
Wed, Apr 5, 23, 04:30, 1 Year ago
Thu, Sep 1, 22, 02:14, 2 Years ago
Mon, Sep 19, 22, 23:08, 2 Years ago
;