Difference between revisions of "Languages"
Line 72: | Line 72: | ||
− | = | + | =Add new / manage languages (locales)= |
+ | |||
Install languages manager | Install languages manager | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 78: | Line 79: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | ||
+ | Search for your language [replace ''FR'' by your own language like ''ZH'' or ''SE''...] | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | less /usr/share/i18n/SUPPORTED | grep fr | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | Add the new language to the list of the local languages | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | echo "fr_FR.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | [!] The key '''fr_FR.UTF-8 UTF-8''' is a bit different from the ''SUPPORTED'' file. Only the country code is the same. | ||
+ | |||
+ | |||
+ | Regenerate system languages | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
dpkg-reconfigure locales | dpkg-reconfigure locales |
Revision as of 11:28, 28 October 2014
Contents
Fonts
Main fonts
apt-get install xfonts-intl-asian xfonts-intl-chinese xfonts-intl-european xfonts-intl-phonetic
Printing fonts
apt-get install fontypython ttf-opensymbol
Full set of printing fonts:
apt-get install texlive-fonts-recommended texlive-fonts-extra
!! Warning this required about 800 Mb !!
Mathematics
apt-get install mathematica-fonts
Microsoft fonts
apt-get install ttf-mscorefonts-installer
Chinese fonts
apt-get install fonts-arphic-ukai fonts-arphic-uming
Alternative inputs
Input manager IBUS
apt-get install ibus
Chinese PinYin
apt-get install ibus-pinyin ibus-googlepinyin
Input configuration
ibus-setup
Set Ibus as default:
- System Menu -> System Settings -> Language Support and set the "Keyboard Input Method" to "ibus"
- Then log out and back in again.
Xubuntu languages
- System Menu -> System Settings -> Language Support
Add new / manage languages (locales)
Install languages manager
apt-get install locales
Search for your language [replace FR by your own language like ZH or SE...]
less /usr/share/i18n/SUPPORTED | grep fr
Add the new language to the list of the local languages
echo "fr_FR.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local
[!] The key fr_FR.UTF-8 UTF-8 is a bit different from the SUPPORTED file. Only the country code is the same.
Regenerate system languages
dpkg-reconfigure locales
!! Always take the UTF-8 + ISO values !!
Examples:
- en_GB.ISO-8859-1
- en_GB.UTF-8
- en_GB.ISO-8859-15
- fr_FR.ISO-8859-1
- fr_FR.UTF-8
- fr_FR.ISO-8859-15@euro
- zh_CN.GB2312
- zh_CN.GB18030
- zh_CN.GBK
- zh_TW.BIG5
- zh_TW.EUC-TW