Difference between revisions of "Languages"

Line 44: Line 44:
  
 
* More fonts on: http://cooltext.com/Download-Font-%E7%B2%97%E6%A5%B7%E4%BD%93%E7%AE%80+Kai+Bold  
 
* More fonts on: http://cooltext.com/Download-Font-%E7%B2%97%E6%A5%B7%E4%BD%93%E7%AE%80+Kai+Bold  
 
  
 
==Android fonts==
 
==Android fonts==
Line 58: Line 57:
 
=Alternative inputs=
 
=Alternative inputs=
  
==Input manager IBUS==
+
==Input manager FCITX (Ubuntu >= 16)==
 +
 
 +
Since Ubuntu 16.04 there is a new input manager: FCITX
 +
 
 +
<syntaxhighlight lang="bash">
 +
apt-get install fcitx fcitx-libpinyin fcitx-libs fcitx-googlepinyin fcitx-table-emoji fcitx-table-easy-big
 +
</syntaxhighlight>
 +
 
 +
 
 +
 
 +
==Input manager IBUS (Ubuntu < 16)==
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
apt-get install ibus
 
apt-get install ibus

Revision as of 22:44, 19 March 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 fonts-roboto



Alternative inputs

Input manager FCITX (Ubuntu >= 16)

Since Ubuntu 16.04 there is a new input manager: FCITX

apt-get install fcitx fcitx-libpinyin fcitx-libs fcitx-googlepinyin fcitx-table-emoji fcitx-table-easy-big


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
  • 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