Debian Codegraph @

docs/locale.xml

raw
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
4 <section xmlns:xi="http://www.w3.org/2001/XInclude">
5 <title>Locale Support</title>
6
7 <section id="sec-doc-encode">
8 <title>Document Encoding</title>
9
10 <para>By default the latex document produced by <command>dblatex</command> is
11 encoded in latin1, that fits well for roman-characters. This said,
12 a real international support involves some kind of Unicode (UTF8)
13 support.</para>
14
15 <para>In dblatex, the Unicode support is done by two methods that can be selected
16 by some parameters:
17
18 <itemizedlist>
19 <listitem><para><parameter>latex.unicode.use</parameter>=1 asks for including the
20 unicode package (initially provided by Passivetex) in order to
21 handle many of the unicode characters in a latin1 encoded document.</para>
22 </listitem>
23 <listitem><para><parameter>latex.encoding</parameter>=utf8 produces a document
24 encoded in UTF8, that is compiled in UTF8. It requires to have the
25 <literal>ucs</literal> package installed.</para>
26 </listitem>
27 </itemizedlist>
28 </para>
29
30 <para>In some languages like Chinese, Japanese or Korean, the latex document
31 must be in UTF8. Therefore, the UTF8 encoding is forced for these languages
32 whatever the parameter values are.</para>
33
34 </section>
35 <section><title>Babel Languages</title>
36
37 <para>Dblatex should be able to handle most of the languages supported by the
38 babel package. Just set the
39 <literal>lang=<replaceable>lang</replaceable></literal> attribute in the root
40 document element and dblatex will load
41 the appropriate babel language.</para>
42
43 </section>
44 <section><title>CJK Languages</title>
45
46 <para>Dblatex can handle the CJK languages thanks to the CJK package. The CJK
47 package must be installed to have this support available.</para>
48
49 <para>As said in <xref linkend="sec-doc-encode"/> the latex file is encoded
50 in UTF8. Moreover, the Cyberbit fonts are then used.</para>
51
52 <para>The install of the CJK package and Cyberbit fonts are well described at:
53 <ulink url="http://kile.sourceforge.net/Documentation/html/cjk.html"/>.
54 </para>
55
56 <section><title>Korean Support</title>
57
58 <para>Dblatex does not use the HLatex package to drive Korean documents. It does
59 not use the <command>hmakeindex</command> nor the <command>hbibtex</command> tool.
60 Currently, Korean is handled like Chinese and Japanese with the CJK package.</para>
61
62 </section>
63 </section>
64
65 <section><title>Mixing the languages</title>
66
67 <para>Dblatex cannot handle correctly a document containing several elements
68 with different <sgmltag>lang</sgmltag> values. In particular, if the main
69 document lang is not one of the CJK language, a portion of text written in CJK
70 will not be handled correctly and it can result in a compilation crash.</para>
71 <para>Even if the langs mixed do not end to a compilation failure, only the
72 main document lang will be taken into account.</para>
73 </section>
74 </section>