Languages

Revision as of 15:08, 15 November 2015 by WikiFreak (talk | contribs)

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
apt-get install fonts-arphic-*
# See https://en.wikipedia.org/wiki/WenQuanYi
apt-get install fonts-wqy-zenhei fonts-wqy-microhei xfonts-wqy


More info on PinYin Joe: http://www.pinyinjoe.com/index.html


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)

Requirement

Install languages manager

apt-get install locales


Add new language

Search for your language [replace fr by your own language like zh or sv...]

less /usr/share/i18n/SUPPORTED | grep fr

!! Always take the UTF-8 + ISO values !! Examples:

  • en_GB.UTF-8 UTF-8
  • fr_FR.UTF-8 UTF-8
  • sv_SE.UTF-8 UTF-8
  • zh_CN.UTF-8 UTF-8



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 must match an entry in the SUPPORTED file !!


[alternative] you can directly edit the file:

vim /var/lib/locales/supported.d/local

# You should have:
en_US.UTF-8 UTF-8
fr_FR.UTF-8 UTF-8
sv_SE.UTF-8 UTF-8


Regenerate system languages

dpkg-reconfigure locales


Check result:

locale -a


You need to restart your services before using the new languages.

service apache2 restart
service zabbix-server restart