Difference between revisions of "Languages"

(Android fonts)
(Add new / manage languages (locales))
Line 129: Line 129:
 
* en_GB.UTF-8 UTF-8
 
* en_GB.UTF-8 UTF-8
 
* fr_FR.UTF-8 UTF-8
 
* fr_FR.UTF-8 UTF-8
 +
* de_DE.UTF-8 UTF-8
 
* sv_SE.UTF-8 UTF-8
 
* sv_SE.UTF-8 UTF-8
 
* zh_CN.UTF-8 UTF-8
 
* zh_CN.UTF-8 UTF-8
Line 152: Line 153:
 
en_US.UTF-8 UTF-8
 
en_US.UTF-8 UTF-8
 
fr_FR.UTF-8 UTF-8
 
fr_FR.UTF-8 UTF-8
 +
de_DE.UTF-8 UTF-8
 
sv_SE.UTF-8 UTF-8
 
sv_SE.UTF-8 UTF-8
 +
zh_CN.UTF-8 UTF-8
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 11:25, 24 April 2016

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


Android fonts

apt-get install fonts-droid-fallback fonts-roboto

Alternative inputs

Input manager FCITX (Ubuntu >= 16)

Since Ubuntu 16.04 there is a new input manager: FCITX


Installation

apt-get install fcitx fcitx-pinyin fcitx-sunpinyin fcitx-googlepinyin fcitx-anthy fcitx-mozc fcitx-libpinyin fcitx-libs fcitx-table-emoji fcitx-table-easy-big


Activation

Run the following command as an user (not root):

im-config


More info on: http://www.pinyinjoe.com/linux/ubuntu-12-chinese-setup.htm


Input manager IBUS (Ubuntu < 16)

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
  • de_DE.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
de_DE.UTF-8 UTF-8
sv_SE.UTF-8 UTF-8
zh_CN.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