![]() |
Notes for users of oriental languages | ![]() |
In order to type oriental languages, you first have to start a conversion server which can be used in combination with the X input method and set the environment variables accordingly. For instance, in the case of Japanese, one typically has to execute the following shell commands:
kinput2 &
export LANG="ja_JP.eucJP"
export LC_ALL="ja_JP.eucJP"
export XMODIFIERS="@im=kinput2" |
You also have to install Japanese fonts. For instance, you may download the Ipag fonts ipam.ttf, ipag.ttf, ipamp.ttf, ipagm.ttf and ipagui.ttf and copy them to
~/.TeXmacs/fonts/truetype
After doing this, you may launch TeXmacs using
texmacs --delete-font-cache |
and select Japanese from the
icon on the first icon bar. If everything went
allright, the menus should now show up in Japanese and the current
document is also in Japanese. Notice that you may also select Japanese
as your default language in Edit\(\rightarrow\)Preferences\(\rightarrow\)Language\(\rightarrow\)Japanese. It is also possible to select
Japanese for a portion of text in a document using Format\(\rightarrow\)Language\(\rightarrow\)Japanese.
Inside a Japanese portion of text, and depending on your input method, you usually have to type ⇧␣ in order to start Kana to Kanji conversion. A small window shows up where you can type phonetic characters and use ␣ in order to start conversion to Kanji characters. When pressing ↩, the text is inserted into the main TeXmacs window. Pressing ⇧␣ once again returns to the classical TeXmacs input method.