/[gentoo]/xml/htdocs/doc/en/utf-8.xml
Gentoo

Diff of /xml/htdocs/doc/en/utf-8.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.26 Revision 1.27
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.26 2005/06/24 19:30:27 fox2mike Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.27 2005/07/02 11:55:16 swift Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/utf-8.xml"> 5<guide link="/doc/en/utf-8.xml">
6<title>Using UTF-8 with Gentoo</title> 6<title>Using UTF-8 with Gentoo</title>
7 7
8<author title="Author"> 8<author title="Author">
9 <mail link="slarti@gentoo.org">Thomas Martin</mail> 9 <mail link="slarti@gentoo.org">Thomas Martin</mail>
10</author> 10</author>
11<author title="Contributor"> 11<author title="Contributor">
12 <mail link="devil@gentoo.org.ua">Alexander Simonov</mail> 12 <mail link="devil@gentoo.org.ua">Alexander Simonov</mail>
13</author> 13</author>
14<author title="Editor"> 14<author title="Editor">
15 <mail link="fox2mike@gentoo.org">Shyam Mani</mail> 15 <mail link="fox2mike@gentoo.org">Shyam Mani</mail>
16</author> 16</author>
17 17
18<abstract> 18<abstract>
19This guide shows you how to set up and use the UTF-8 Unicode character set with 19This guide shows you how to set up and use the UTF-8 Unicode character set with
20your Gentoo Linux system, after explaining the benefits of Unicode and more 20your Gentoo Linux system, after explaining the benefits of Unicode and more
21specifically UTF-8. 21specifically UTF-8.
22</abstract> 22</abstract>
23 23
24<!-- The content of this document is licensed under the CC-BY-SA license --> 24<!-- The content of this document is licensed under the CC-BY-SA license -->
25<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 25<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
26<license /> 26<license />
27 27
28<version>2.6</version> 28<version>2.7</version>
29<date>2005-06-25</date> 29<date>2005-07-02</date>
30 30
31<chapter> 31<chapter>
32<title>Character Encodings</title> 32<title>Character Encodings</title>
33<section> 33<section>
34<title>What is a Character Encoding?</title> 34<title>What is a Character Encoding?</title>
35<body> 35<body>
36 36
37<p> 37<p>
38Computers do not understand text themselves. Instead, every character is 38Computers do not understand text themselves. Instead, every character is
39represented by a number. Traditionally, each set of numbers used to represent 39represented by a number. Traditionally, each set of numbers used to represent
40alphabets and characters (known as a coding system, encoding or character set) 40alphabets and characters (known as a coding system, encoding or character set)
41was limited in size due to limitations in computer hardware. 41was limited in size due to limitations in computer hardware.
42</p> 42</p>
43 43
44</body> 44</body>
521invoked as <c>screen -u</c> or the following is put into the 521invoked as <c>screen -u</c> or the following is put into the
522<path>~/.screenrc</path>: 522<path>~/.screenrc</path>:
523</p> 523</p>
524 524
525<pre caption="~/.screenrc for UTF-8"> 525<pre caption="~/.screenrc for UTF-8">
526defutf8 on 526defutf8 on
527</pre> 527</pre>
528 528
529</body> 529</body>
530</section> 530</section>
531<section> 531<section>
532<title>Vim, Emacs, Xemacs and Nano</title> 532<title>Vim, Emacs, Xemacs and Nano</title>
533<body> 533<body>
534 534
535<p> 535<p>
536Vim, Emacs and Xemacs provide full UTF-8 support, and also have builtin 536Vim provides full UTF-8 support, and also has builtin detection of UTF-8 files.
537detection of UTF-8 files. For further information in Vim, use <c>:help 537For further information in Vim, use <c>:help mbyte.txt</c>.
538mbyte.txt</c>. 538</p>
539
539</p> 540<p>
541Emacs 22.x and higher has full UTF-8 support as well. Xemacs 22.x does not
542support combining characters yet.
543</p>
544
545<p>
546Lower versions of Emacs and/or Xemacs might require you to install
547<c>app-emacs/mule-ucs</c> and/or <c>app-xemacs/mule-ucs</c>
548and add the following code to your <path>~/.emacs</path> to have support for CJK
549languages in UTF-8:
550</p>
551
552<pre caption="Emacs CJK UTF-8 support">
553(require 'un-define)
554(require 'jisx0213)
555(set-language-environment "Japanese")
556(set-default-coding-systems 'utf-8)
557(set-terminal-coding-system 'utf-8)
558</pre>
540 559
541<p> 560<p>
542Nano currently does not provide support for UTF-8, although it has been planned 561Nano currently does not provide support for UTF-8, although it has been planned
543for a long time. With luck, this will change in future. At the time of writing, 562for a long time. With luck, this will change in future. At the time of writing,
544UTF-8 support is in Nano's CVS, and should be included in the next release. 563UTF-8 support is in Nano's CVS, and should be included in the next release.
545</p> 564</p>
546 565
547</body> 566</body>
548</section> 567</section>
549<section> 568<section>
550<title>Shells</title> 569<title>Shells</title>
551<body> 570<body>
552 571
553<p> 572<p>
554Currently, <c>bash</c> provides full Unicode support through the GNU readline 573Currently, <c>bash</c> provides full Unicode support through the GNU readline

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20