In Put Methods
In Put Methods
by Eric Hameleers
http://slackware.com/~alien/
[email protected]
Presented at:
Universidade Presbiteriana Mackenzie
for the Slackware Show
Encontro Nacional de Usuarios Slackware
http://slackshow.slackwarebrasil.org/
August 2122, 2008
Overview
Overview
Introduction
Introduction
Historical
Unicode
Unicode
Locales
Locales
locale -a
nd out which locale is currently active:
locale
Locales
Locales (cont'd)
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
Locales
Locales (cont'd)
/.profile
(per-user setting)
Locales
Locales (cont'd)
All major Free and Open Source (FOSS) initiatives support the
and
L10n
i18n
standards:
export LANG=en_US
#export LANG=en_US.UTF-8
to
#export LANG=en_US
export LANG=en_US.UTF-8
and login again.
E. Hameleers ( Presented at: Universidade Presbiteriana
Language support
Mackenzie
in Slackware
for the Slackware Show
August
Encontro
2122,Nacional
2008 de12
Usuarios
/ 25
Note
locale -a
locale -a
output!
Using non-latin text in the console is made easier starting with the Linux
2.6.24 kernel. The linux console is Unicode-enabled by default. In earlier
days, you had to run
unicode_start
in a console to enable Unicode support.
Slackware disables unicode in
/etc/lilo.conf
installation):
append="vt.default_utf8=0"
You will need a console font with decent Unicode coverage. Example:
terminus font
To load this font after you installed it, you need to add the following to
your
/.profile
le:
setfont -v
which also gives good results.
There are good reasons why Slackware does not come with a
Unicode-enabled console by default.
The collection of tools on your system expects input in plain roman
text (ASCII text). Entering a Unicode text string on the command
prompt can have unexpected results if the shell interprets this string
and executes the command.
Several terminal-based (curses) applications will not display correctly especially in case of graphical characters. This is caused by the double
size of these Unicode characters.
Show characters of your console font:
showconsolefont
Unicode in X-Window
Unicode in X-Window
Slackware has always been able to show non-english text, thanks to the
available locales and the internazionalization of many of the applications
that come with it. However:
The installer is available only in english.
This will not change.
The consoles are not Unicode-enabled by default.
This may change in future, when all of the console applications are
able to display their text and interface correctly.
No decent support existed for non-european languages. Specically,
CJK (Chinese/Japanese/Korean, or just 'Asian language') support.
This has changed in Slackware 12.1.
Unicode in X-Window
Slackware
Unicode in X-Window
Slackware development
Unicode in X-Window
SCIM
SCIM
Unicode in X-Window
SCIM
SCIM (cont'd)
chmod +x /etc/profile.d/scim.*
Unicode in X-Window
SCIM
SCIM (cont'd)
Start the scim daemon as soon as your X session starts. The scim
daemon must be active before any of your X applications start.
In KDE, you can add a shell script to the
/.kde/Autostart
folder
/.xprofile
le. This
GTK apps like refox will crash in case you remove or forget to install
the
scim-bridge
Unicode in X-Window
SCIM
Using SCIM
When SCIM is up and running, you will see a small keyboard icon in
your system tray.
The key sequence to activate SCIM input is:
<Cntrl><Space>
SCIM oers input methods for many other languages like Greek,
Russian, even accented German is possible.
In addition to the use of SCIM, GTK is Unicode friendly and allows to
enter unicode characters directly.
If you know the number of a code point (Unicode character) you can
input this character into any GTK input eld, using the key
combination of
<Ctrl>-U + number
Other resources
Other resources
http://en.wikipedia.org/wiki/UTF-8
Gentoo's HOWTO on using Unicode
http://gentoo-wiki.com/HOWTO_Make_your_system_use_
unicode/utf-8
Good article on locales
http://publib.boulder.ibm.com/infocenter/systems/index.
jsp?topic=/com.ibm.aix.nls/doc/nlsgdrf/locale_env.htm
I am a Linux user since the 0.99 kernel releases and ran into Slackware
Linux around 1996. The rst need to make modications to Slackware
occurred when I joined IBM and was doomed to use Token Ring for which
there was no support in the network scripts :-)
I still help with the Slackware develoment in 2008. I also maintain a
repository of non-ocial Slackware packages and scripts, I am one of the
admins of the SlackBuilds.org website, and sometimes like to write articles
for my own Wiki. I was born in the Netherlands and still live there, with
wife, son and several small animals.
Feedback and suggestions are welcome
[email protected]
A copy of this presentation can be found at:
http://www.slackware.com/~alien/slackshow2008/
E. Hameleers ( Presented at: Universidade Presbiteriana
Language support
Mackenzie
in Slackware
for the Slackware Show
August
Encontro
2122,Nacional
2008 de25
Usuarios
/ 25