| 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.19 2005/06/18 03:53:44 fox2mike Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/utf-8.xml,v 1.20 2005/06/20 11:23:58 fox2mike 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 | |
| … | |
… | |
| 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"> |
|
|
15 | <mail link="fox2mike@gentoo.org">Shyam Mani</mail> |
|
|
16 | </author> |
| 14 | |
17 | |
| 15 | <abstract> |
18 | <abstract> |
| 16 | This guide shows you how to set up and use the UTF-8 Unicode character set with |
19 | This guide shows you how to set up and use the UTF-8 Unicode character set with |
| 17 | your Gentoo Linux system, after explaining the benefits of Unicode and more |
20 | your Gentoo Linux system, after explaining the benefits of Unicode and more |
| 18 | specifically UTF-8. |
21 | specifically UTF-8. |
| 19 | </abstract> |
22 | </abstract> |
| 20 | |
23 | |
|
|
24 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
|
|
25 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 21 | <license /> |
26 | <license /> |
| 22 | |
27 | |
| 23 | <version>2.2</version> |
28 | <version>2.3</version> |
| 24 | <date>2005-06-18</date> |
29 | <date>2005-06-20</date> |
| 25 | |
30 | |
| 26 | <chapter> |
31 | <chapter> |
| 27 | <title>Character Encodings</title> |
32 | <title>Character Encodings</title> |
| 28 | <section> |
33 | <section> |
| 29 | <title>What is a Character Encoding?</title> |
34 | <title>What is a Character Encoding?</title> |
| … | |
… | |
| 641 | <pre caption="man.conf changes for Unicode support"> |
646 | <pre caption="man.conf changes for Unicode support"> |
| 642 | <comment>(This is the old line)</comment> |
647 | <comment>(This is the old line)</comment> |
| 643 | NROFF /usr/bin/nroff -Tascii -c -mandoc |
648 | NROFF /usr/bin/nroff -Tascii -c -mandoc |
| 644 | <comment>(Replace the one above with this)</comment> |
649 | <comment>(Replace the one above with this)</comment> |
| 645 | NROFF /usr/bin/nroff -mandoc -c |
650 | NROFF /usr/bin/nroff -mandoc -c |
|
|
651 | </pre> |
|
|
652 | |
|
|
653 | </body> |
|
|
654 | </section> |
|
|
655 | <section> |
|
|
656 | <title>elinks and links</title> |
|
|
657 | <body> |
|
|
658 | |
|
|
659 | <p> |
|
|
660 | These are commonly used text-based browsers, and we shall see how we can enable |
|
|
661 | UTF-8 support on them. On <c>elinks</c> and <c>links</c>, there are two ways to |
|
|
662 | go about this, one using the Setup option from within the browser or editing the |
|
|
663 | config file. To set the option through the browser, open a site with |
|
|
664 | <c>elinks</c> or <c>links</c> and then <c>Alt+S</c> to enter the Setup Menu then |
|
|
665 | select Terminal options, or press <c>T</c>. Scroll down and select the last |
|
|
666 | option <c>UTF-8 I/O</c> by pressing Enter. Then Save and exit the menu. On |
|
|
667 | <c>links</c> you may have to do a repeat <c>Alt+S</c> and then press <c>S</c> to |
|
|
668 | save. The config file option, is shown below. |
|
|
669 | </p> |
|
|
670 | |
|
|
671 | <pre caption="Enabling UTF-8 for elinks/links"> |
|
|
672 | <comment>(For elinks, edit /etc/elinks/elinks.conf or ~/.elinks/elinks.conf and |
|
|
673 | add the following line)</comment> |
|
|
674 | set terminal.linux.utf_8_io = 1 |
|
|
675 | |
|
|
676 | <comment>(For links, edit ~/.links/links.cfg and add the following |
|
|
677 | line)</comment> |
|
|
678 | terminal "xterm" 0 1 0 us-ascii utf-8 |
| 646 | </pre> |
679 | </pre> |
| 647 | |
680 | |
| 648 | </body> |
681 | </body> |
| 649 | </section> |
682 | </section> |
| 650 | <section> |
683 | <section> |