old-www/HOWTO/Indic-Fonts-HOWTO/apps.html

472 lines
9.0 KiB
HTML
Raw Permalink Blame History

<HTML
><HEAD
><TITLE
>Applications with Devanagri</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="HOME"
TITLE="The Indic Fonts HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Locale Setup"
HREF="locale.html"><LINK
REL="NEXT"
TITLE="References and sites"
HREF="references.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Indic Fonts HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="locale.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="references.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="apps"
>5. Applications with Devanagri</A
></H1
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN161"
>5.1. Browsers</A
></H2
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN163"
>5.1.1. Netscape Navigator</A
></H3
><P
>&#13; Netscape 6.01 or later can display HTML documents in UTF-8 encoding. All a document needs is the following line between the &#60;head&#62; and &#60;/head&#62; tags:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
> &#60;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&#62;</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>&#13; To setup Netscape so that it displays Hindi characters:
<P
></P
><OL
TYPE="1"
><LI
>Goto, Edit -&#62; Preferences </LI
><LI
>Select category, Appearance -&#62; Fonts</LI
><LI
>Select Language encoding "Unicode"</LI
><LI
>Set Variable-width and Fixed-width fonts to "raghu"</LI
><LI
>Check button "Always use my font settings, overriding web page font"</LI
></OL
>
</P
><P
>&#13; Also, ensure that the character coding scheme is set to UTF-8
</P
><P
>&#13; <P
></P
><OL
TYPE="1"
><LI
>Goto, View -&#62; Character Coding</LI
><LI
>Select "Unicode (UTF-8)" from the list</LI
></OL
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN179"
>5.1.2. Konqueror</A
></H3
><P
>&#13; Konqueror has good support for Unicode. To setup konqueror so that it displays Hindi characters:
<P
></P
><OL
TYPE="1"
><LI
>Goto, Settings -&#62; Configure Konqueror</LI
><LI
>Select "Konqueror Bowser" from the left pan</LI
><LI
>Goto "Appearance" tab on the right pan</LI
><LI
>Select charset "iso106460-1"</LI
><LI
>Set all fonts to "raghu" for this encoding and also set Default encoding to "utf8"</LI
></OL
>
</P
></DIV
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN188"
>5.2. Editors</A
></H2
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN190"
>5.2.1. yudit</A
></H3
><P
>&#13; <B
CLASS="command"
>yudit</B
> by G<>sp<73>r Sinai (<A
HREF="http://czyborra.com/yudit/"
TARGET="_top"
>http://czyborra.com/yudit/</A
>) is an excellent unicode text editor for the X Window System. It supports simultaneous processing of many languages, input methods, conversions for local character standards etc. It has facilities for entering text in all languages with only an English keyboard, using keyboard configuration maps. Customization is very easy. Typically you will first want to customize your font. From the font menu, choose "Unicode". Next, you should customize your input method. The input methods "Straight", "Unicode" and "SGML" are most remarkable. For details about the other built-in input methods, look in <TT
CLASS="filename"
>/usr/local/share/yudit/data/</TT
>. To make a change the default for the next session, edit your <TT
CLASS="filename"
>$HOME/.yuditrc</TT
> file. The general editor functionality is limited to editing, cut and paste and search and replace. There is no provision for an undo. <B
CLASS="command"
>yudit</B
> can display text using a TrueType font. But it doesn't seem to support combining characters.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN198"
>5.2.2. Vim</A
></H3
><P
>&#13; Vim (as of version 6.0) has good support for UTF-8. When started in an UTF-8 locale, it assumes UTF-8 encoding for the console and the text files being edited. It supports double-wide (CJK) characters as well and combining characters and therefore fits perfectly into UTF-8 enabled ncst-term.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN201"
>5.2.3. gedit</A
></H3
><P
>&#13; gedit is an editor developed using GtkText widget. gedit-0.9.0 does not support FontSet. This means that you can't edit both English and Hindi text simultaneously. But if you choose a proper font then you will be able to use any one language at a time.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN204"
>5.2.4. xedit</A
></H3
><P
>&#13; With XFree86-4.0.1, <B
CLASS="command"
>xedit</B
> is capable of editing UTF-8 files if your locale is set appropriately. Add the line
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
> "Xedit*international: true"</PRE
></FONT
></TD
></TR
></TABLE
>
to your <TT
CLASS="filename"
>$HOME/.Xdefaults</TT
> file.
</P
></DIV
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN210"
>5.3. Mailers</A
></H2
><P
>&#13; Mail clients released after January 1, 1999, should be capable of sending and displaying UTF-8 encoded mails, otherwise they are considered deficient. But these mails have to carry the MIME labels:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
> Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit</PRE
></FONT
></TD
></TR
></TABLE
>
</P
><P
>&#13; Simply piping an UTF-8 file into "mail" without caring about the MIME labels will not work. Mail client implementors should take a look at <A
HREF="http://www.imc.org/imc-intl/"
TARGET="_top"
>http://www.imc.org/imc-intl/</A
> and <A
HREF="http://www.imc.org/mail-i18n.html"
TARGET="_top"
>http://www.imc.org/mail-i18n.html</A
>.
</P
><P
>&#13; Now about some of the individual mail clients (or "mail user agents"):
</P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN218"
>5.3.1. kmail</A
></H3
><P
>&#13; kmail (as of KDE 1.0) does not support UTF-8 mails at all.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN221"
>5.3.2. Netscape Mail</A
></H3
><P
>&#13; Netscape Mail can send and display mails in UTF-8 encoding, but it needs a little bit of manual user intervention. To send an UTF-8 encoded mail:
<P
></P
><OL
TYPE="1"
><LI
><P
>After opening the "Mail" window, but before starting to compose the message, select from the menu "View -&#62; Character Coding -&#62; Unicode (UTF-8)".</P
></LI
><LI
><P
>Then compose the message and send it.</P
></LI
></OL
>
</P
><P
>&#13; When you receive an UTF-8 encoded mail, Netscape does not display it in UTF-8 right away, and does not even give a visual clue that the mail was encoded in UTF-8. You have to manually select from the menu
<SPAN
CLASS="guimenu"
>View</SPAN
> -&#62; <SPAN
CLASS="guisubmenu"
>Character Coding</SPAN
> -&#62; <SPAN
CLASS="guimenuitem"
>Unicode (UTF-8)</SPAN
>.
</P
><P
>&#13; For displaying UTF-8 mails, Netscape uses different fonts. You can adjust your font settings in the <SPAN
CLASS="guimenu"
>Edit</SPAN
> -&#62; <SPAN
CLASS="guisubmenu"
>Preferences</SPAN
> -&#62; <SPAN
CLASS="guimenuitem"
>Fonts</SPAN
>
dialog by selecting the "Unicode" font category.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN237"
>5.3.3. exmh</A
></H3
><P
>&#13; exmh 2.1.2 with Tk 8.4a1 can recognize and correctly display UTF-8 mails if you add the following lines to your <TT
CLASS="filename"
>$HOME/.Xdefaults</TT
> file.
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="programlisting"
> !
! Exmh
!
exmh.mimeUCharsets: utf-8
exmh.mime_utf-8_registry: iso10646
exmh.mime_utf-8_encoding: 1
exmh.mime_utf-8_plain_families: fixed
exmh.mime_utf-8_fixed_families: fixed
exmh.mime_utf-8_proportional_families: fixed
exmh.mime_utf-8_title_families: fixed</PRE
></FONT
></TD
></TR
></TABLE
>
</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="locale.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="references.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Locale Setup</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>References and sites</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>