Finally, I learned how to input Chinese in the English system. Of course, it is input to emacs. Here, I use Ubuntu, which is in Windows. Because the method is relatively simple, I am a little confused. Of course, the details are always good and will be convenient for reference in the future. This is the simplest method I have found, because I like simple principles. Of course, if the readers like the built-in methods, I think they can, that is, the efficiency is relatively low. If you do not enter a lot of text, it is also good as a temporary solution. In Windows, I download
Finally, I learned how to input Chinese in the English system. Of course, it is input to emacs. Here, I use Ubuntu, which is in Windows. Because the method is relatively simple, I am a little confused. Of course, the details are always good and will be convenient for reference in the future.
This is the simplest method I have found, because I like simple principles. Of course, if the readers like the built-in methods, I think they can, that is, the efficiency is relatively low. If you do not enter a lot of text, it is also good as a temporary solution.
In Windows, the latest emacs version I have downloaded is 22.3. Later versions will not support Chinese characters even worse.
After countless experiments, I finally found a secret, that is, turning the locale of the system into a change of Chinese-China. Then all input methods can be used. I prefer the Google input method, because it is similar to the input method in Linux. Other methods have not been tested successfully.
Because the work needs to be completed in Visual Studio, I found that VS2008 also has the emacs keyboard option! This is a good news for programmers. It seems that in the minds of programmers, emacs is not old.
In Linux, we must first ensure that the Chinese environment of the system must be installed properly. In fact, Ubuntu is very convenient now. You only need to check Chinese support. In this way, we can use scim without any settings. This is the default input method. However, I found that this input method does not support emacs very well. So we install fcitx. This is what we need.
Next is the configuration. It is not complicated at all. Run the fcitx input method before using emacs.
Fcitx &
In ~ /. Add a line to the emacs file to shield the C-SPC
; Inhibit C-SPC for SCIM
(Global-set-key (kbd "C-SPC") 'nil)
The last step is to set environment variables. This step is the most important thing to do with Windows systems.
Export LC_CTYPE = zh_CN.UTF-8
Now you can run it. Of course this is quite troublesome, but after all, it still feels good to be able to input Chinese characters.