summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/greek-fontenc/README.html
blob: 78dcb3cef04b5432bb0660b65b5331f8c7524c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" />
<title>greek-fontenc</title>
<meta name="author" content="Günter Milde" />
<meta name="date" content="2013-05-16" />
<meta name="copyright" content="© 2013 Günter Milde &lt;milde&#64;users.sf.net&gt;" />
<link rel="stylesheet" href="../../../../../../Code/Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" />
<link rel="stylesheet" href="../../../../../../Code/Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" />
</head>
<body>
<div class="document" id="greek-fontenc">
<h1 class="title">greek-fontenc</h1>
<h2 class="subtitle" id="greek-font-encoding-definition-files">Greek font encoding definition files</h2>

<dl class="docinfo simple">
<dt class="author">Author</dt>
<dd class="author">Günter Milde</dd>
<dt class="date">Date</dt>
<dd class="date">2013-05-16</dd>
<dt class="copyright">Copyright</dt>
<dd class="copyright">© 2013 Günter Milde &lt;<a class="reference external" href="mailto:milde&#64;users.sf.net">milde&#64;users.sf.net</a>&gt;</dd>
<dt>Licence</dt>
<dd><p>This work may be distributed and/or modified under the
conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either
version&nbsp;1.3 of this license or any later version.</p>
</dd>
</dl>
<div class="abstract topic">
<p class="topic-title first">Abstract</p>
<p>The <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> standard package supports TeX font encodings via
<cite>encoding definition files</cite>. The mechanism is explained in
[<a class="reference internal" href="#fntguide">fntguide</a>], section&nbsp;5. This package provides encoding definition
files for <a class="reference internal" href="#greek-text-font-encodings">Greek text font encodings</a> for use with <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> and
8-bit TeX engines. Currently, only <a class="reference internal" href="#lgr">LGR</a> is supported.</p>
</div>
<div class="section" id="files">
<h1>Files</h1>
<dl class="docutils">
<dt><a class="reference external" href="lgrenc.def">lgrenc.def</a></dt>
<dd><p>font encoding definitions for LGR</p>
<p>This file is the successor of the basic LGR encoding definition file which
comes with <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a>’s Greek support and <tt class="literal">lgrxenc.def</tt> from the <a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a>
bundle. It defines LICR macros for Greek characters that select
pre-composed glyphs if possible and places the diacritics according to
Greek typesetting rules else. Combined accents can be specified as
backslash + transliteration (<tt class="literal"><span class="pre">\~&gt;\textalpha</span></tt>) or iteratively
(<tt class="literal"><span class="pre">\~\&gt;\textalpha</span></tt>).</p>
</dd>
<dt><a class="reference external" href="lgrenc.def.html">lgrenc.def.html</a></dt>
<dd><p>literate source (HTML format)</p>
</dd>
<dt><a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a></dt>
<dd><p>test example</p>
</dd>
<dt><a class="reference external" href="lgrenc-test.pdf">lgrenc-test.pdf</a></dt>
<dd><p>test output</p>
</dd>
</dl>
<p>The literate source was converted with <a class="reference external" href="http://pylit.berlios.de">PyLit</a> to <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> and with
<a class="reference external" href="http://docutils.sourceforge.net/rst.html">Docutils</a> to HTML format.</p>
</div>
<div class="section" id="installation">
<h1>Installation</h1>
<p>If possible, get this package from your distribution using its installation
manager.</p>
<p>Otherwise, make sure LaTeX can find the file <cite>lgrenc.def</cite>:</p>
<ul class="simple">
<li><p>Download and unpack <cite>greek-fontenc.zip</cite> or just download <a class="reference external" href="lgrenc.def">lgrenc.def</a>.</p></li>
<li><p>Copy/Move/Link <tt class="literal">lgrenc.def</tt> to a suitable place in the <a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=tds">TDS</a> and run
<tt class="literal">texhash</tt>, or place it in the current working directory (e.g. for
testing).</p></li>
</ul>
</div>
<div class="section" id="usage">
<h1>Usage</h1>
<p>Pass the encoding name as option to <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>.  For example, specify T1
(Latin) as default font encoding and LGR for Greek with</p>
<pre class="literal-block">\usepackage[LGR,T1]{fontenc}
</pre>
<p>See <a class="citation-reference" href="#fntguide" id="id2">[fntguide]</a> for details and <a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a> for an example.</p>
</div>
<div class="section" id="greek-text-font-encodings">
<h1>Greek text font encodings</h1>
<p>Greek TeX font encodings are the envisaged <a class="reference internal" href="#t7">T7</a>, <a class="reference internal" href="#lgr">LGR</a>, and <a class="reference internal" href="#lgi">LGI</a>.
Greek letters and symbols are also defined in the Unicode-based font
encodings EU1 (XeTeX), EU2 (LuaTeX) and PU (<a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a>).</p>
<div class="section" id="t7">
<h2>T7</h2>
<p>The <a class="citation-reference" href="#encguide" id="id4">[encguide]</a> reserves the name T7 for a Greek <cite>standard font encoding</cite>.
However, up to now, there is no agreement on an implementation because the
restrictions for general text encodings are too severe for typesetting
polytonic Greek.</p>
</div>
<div class="section" id="lgr">
<h2>LGR</h2>
<p>The LGR font encoding is the de-facto standard for typesetting Greek with
(8-bit) LaTeX. Fonts in this encoding include the <a class="reference external" href="http://www.ctan.org/pkg/cbgreek-complete">CB fonts</a> (matching CM),
<a class="reference external" href="http://www.ctan.org/pkg/grtimes">grtimes</a> (Greek Times), <a class="reference external" href="http://www.ctan.org/pkg/kerkis">Kerkis</a> (matching URW Bookman), and the <a class="reference external" href="http://www.ctan.org/pkg/gfs">GFS font
collection</a>. Setup of these fonts as Greek variant to matching Latin fonts
is facilitated by the <a class="reference external" href="http://www.ctan.org/pkg/substitutefont">substitutefont</a> package.</p>
<p>The LGR font encoding allows to access Greek characters via an ASCII
transliteration. This enables simple input with a Latin keyboard.
Characters with diacritics can be selected by ligature definitions in the
font (see <a class="citation-reference" href="#greek-usage" id="id5">[greek-usage]</a>, <a class="citation-reference" href="#teubner-doc" id="id6">[teubner-doc]</a>, <a class="citation-reference" href="#cbfonts" id="id7">[cbfonts]</a>).</p>
<p>A major drawback of the transliteration is, that you cannot access Latin
letters if LGR is the active font encoding (e.g. in documents or parts of
documents given the <cite>Babel</cite> language <tt class="literal">greek</tt> or <tt class="literal">polutionikogreek</tt>).
This means that for every Latin-written word or acronym an explicit
language-switch is required. This problem can only be solved via a
font-encoding comprising Latin and Greek like the envisaged <a class="reference internal" href="#t7">T7</a> or
Unicode (with XeTeX or LuaTeX).</p>
</div>
<div class="section" id="lgi">
<h2>LGI</h2>
<p>The ‘Ibycus’ fonts from the package <a class="reference external" href="http://www.ctan.org/pkg/ibygrk">ibygrk</a> implement an alternative
transliteration scheme (also explained in <a class="citation-reference" href="#babel-patch" id="id8">[babel-patch]</a>).
It is currently not supported by <cite>greek-fontenc</cite>.</p>
<p>The font encoding file <tt class="literal">lgienc.def</tt> from <a class="reference external" href="http://www.ctan.org/pkg/ibycus-babel">ibycus-babel</a> provides a basic
setup (without LICR macros or composite definitions).</p>
</div>
</div>
<div class="section" id="references">
<h1>References</h1>
<dl class="citation"><dt class="label"><a class="fn-backref" href="#id2">[fntguide]</a></dt>
<dd id="fntguide">
<p class="first last">LaTeX3 Project Team, <cite>LaTeX2ε font selection</cite>, 2005.
<a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">http://mirror.ctan.org/macros/latex/doc/fntguide.pdf</a></p>
</dd>
</dl>
<dl class="citation"><dt class="label"><a class="fn-backref" href="#id4">[encguide]</a></dt>
<dd id="encguide">
<p class="first last">Frank Mittelbach, Robin Fairbairns, Werner Lemberg,
LaTeX3 Project Team, <cite>LaTeX font encodings</cite>, 2006.
<a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/encguide.pdf">http://mirror.ctan.org/macros/latex/doc/encguide.pdf</a></p>
</dd>
</dl>
<dl class="citation"><dt class="label"><a class="fn-backref" href="#id5">[greek-usage]</a></dt>
<dd id="greek-usage">
<p class="first last">Apostolos Syropoulos, <cite>Writing Greek with the greek option
of the babel package</cite>, 1997.
<a class="reference external" href="http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf">http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf</a></p>
</dd>
</dl>
<dl class="citation"><dt class="label"><a class="fn-backref" href="#id7">[cbfonts]</a></dt>
<dd id="cbfonts">
<p class="first last">Claudio Beccari, <cite>The CB Greek fonts</cite>, Εὔτυπον, τεῦχος № 21, 2008.
<a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf">http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf</a></p>
</dd>
</dl>
<dl class="citation"><dt class="label"><a class="fn-backref" href="#id6">[teubner-doc]</a></dt>
<dd id="teubner-doc">
<p class="first last">Claudio Beccari, <tt class="literal">teubner.sty</tt>
<cite>An extension to the greek option of the babel package</cite>, 2011.
<a class="reference external" href="http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf">http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf</a></p>
</dd>
</dl>
<dl class="citation"><dt class="label"><a class="fn-backref" href="#id8">[babel-patch]</a></dt>
<dd id="babel-patch">
<p class="first last">Werner Lemberg, <cite>Unicode support for the Greek LGR
encoding</cite> Εὔτυπον, τεῦχος  № 20, 2008.
<a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf">http://www.eutypon.gr/eutypon/pdf/e2008-20/e20-a03.pdf</a></p>
</dd>
</dl>
</div>
</div>
</body>
</html>