/ [gentium] / trunk / gentium / doc / fonts / gentium-tug / gentium.tex
To checkout: svn checkout http://svn.gnu.org.ua/sources/gentium/trunk/gentium/doc/fonts/gentium-tug/gentium.tex
Puszcza

Contents of /trunk/gentium/doc/fonts/gentium-tug/gentium.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (show annotations)
Mon Apr 6 22:50:47 2015 UTC (6 years, 5 months ago) by karl
File MIME type: application/x-tex
File size: 21424 byte(s)
update encodings to use *.sc, tweak doc
1 % !TEX TS-program = pdflatex
2 % !TEX encoding = UTF-8 Unicode
3
4 % $Id$
5 % This file is part of the Gentium package for TeX.
6 % It is licensed under the Expat License, see doc//README for details.
7
8 \documentclass[11pt, welsh, british]{article}
9 \usepackage{babel}
10 \usepackage[utf8x]{inputenc}
11 \usepackage[T1]{fontenc}
12 \usepackage{gentium}
13 \renewcommand{\ttdefault}{lmvtt}
14 \usepackage{fancyhdr,lastpage,fancyref}
15 \usepackage{array,longtable,verbatim}
16 \usepackage{booktabs}
17 \usepackage{multirow}
18 \usepackage{url}
19 \urlstyle{tt}
20 \usepackage[breaklinks,colorlinks,
21 linkcolor=black,citecolor=black,urlcolor=black]
22 {hyperref}
23 %\usepackage{microtype}
24 \usepackage[a4paper,headheight=14pt,scale=0.8]{geometry}
25 % use 14pt for 11pt text, 15pt for 12pt text
26
27 \title{Gentium for \TeX}
28 \author{Mojca Miklavec \and Pavel Farář
29 \and Thomas A. Schmitz \and Karl Berry}
30 \newcommand*{\dyddiad}{\today}
31 \newcommand*{\ofname}{of}
32 \date{\dyddiad}
33 \pagestyle{fancy}
34 \fancyhf[lh]{\itshape gentium-tug}
35 \fancyhf[rh]{\itshape\dyddiad}
36 \fancyhf[ch]{}
37 \fancyhf[lf]{}
38 \fancyhf[rf]{}
39 \fancyhf[cf]{\itshape --- \thepage~\ofname~\pageref{LastPage} ---}
40
41 \usepackage{textcomp}
42
43 \def\ConTeXt{Con{\TeX}t}
44 \def\ConTeXtMKII{Con{\TeX}t {\sc MkII}}
45 \def\ConTeXtMKIV{Con{\TeX}t {\sc MkIV}}
46 \def\XeTeX{Xe{\TeX}} % TODO: improve the first "e"--reversed and lowered
47 \def\pdfTeX{pdf{\TeX}}
48 \def\pdfLaTeX{pdf{\LaTeX}}
49 \def\TeXLive{\TeX~Live}
50 \def\MiKTeX{MiK\TeX}
51 \def\MacTeX{Mac\TeX}
52
53 \begin{document}
54 \maketitle
55 \thispagestyle{empty}
56 \pdfinfo{%
57 /Creator (TeX)
58 /Producer (pdfTeX)
59 /Author (Pavel Farář, Mojca Miklavec, Clea F.\ Rees)
60 /Title (Gentium for TeX)
61 /Subject (TeX)
62 /Keywords (TeX,LaTeX,font,fonts,tex,latex,gentium,GentiumPlus,GentiumBasic,Gentium,SIL,sil)}
63 \pdfcatalog{%
64 /URL ()
65 /PageMode /UseOutlines}
66 % other values: /UseNone, /UseOutlines, /UseThumbs, /FullScreen
67 %[openaction <actionspec>]
68 % \pagestyle{empty}
69 % if you want this, you probably want to comment out \maketitle as well...?
70 \setlength{\parindent}{0pt}
71 \setlength{\parskip}{0.5em}
72
73
74 \newcommand*{\sil}{\textsc{sil}}
75 \newcommand*{\pkgname}[1]{\textsf{#1}}
76 \newcommand*{\fname}[1]{\textsf{#1}}
77
78 \begin{abstract}
79 \hspace*{-\parindent}This document outlines the
80 \TeX/\LaTeX/\ConTeXt\ support provided by this
81 package, \pkgname{gentium-tug}, for the Gentium font collection
82 released by \sil.
83 \end{abstract}
84
85 \tableofcontents
86
87
88 \section{Introduction}
89
90 This document explains how to use the \TeX/\LaTeX/\ConTeXt\ support in
91 the present package for the Gentium font collection developed by \sil.
92 This package includes fonts in PostScript Type~1 format converted from
93 the original TrueType files released by \sil\ (using the FontForge
94 routines found in this package). These Type~1 fonts use the name
95 `Gentium' by permission of \sil\ to the \TeX\ Users Group. Therefore
96 the name of this \TeX\ package, by request of \sil, is
97 \pkgname{gentium-tug}. Its home page is \url{http://tug.org/gentium}.
98
99 Further information about the fonts themselves can be found in the
100 included documentation and at \url{http://scripts.sil.org/gentium}. The
101 fonts are released under the \textsc{sil} Open Font License. For
102 details, see \url{ofl.txt} and \url{ofl-faq.txt}. (In the event of
103 releasing modified versions of the fonts, either TrueType or Type~1,
104 it's required to use a name that doesn't include ``Gentium'', per the
105 \textsc{ofl}.)
106
107 This \TeX/\LaTeX/\ConTeXt\ support package consists of metrics, map
108 files, style files, documentation, and so on. These files are released
109 under the Expat license. The text for both licenses is included at the
110 end of this document, and in files in the distribution.
111
112 If you have the package installed and just want to know how to use
113 Gentium in your \TeX\ documents, feel free to skip to
114 section~\ref{sec:latex-package} (\LaTeX\ usage) or
115 section~\ref{sec:context-package} (\ConTeXt\ usage).
116
117 Please report any problems (contact info on the web page). If you can
118 also send a fix, so much the better.
119
120
121 \section{Gentium collection background}
122
123 This package uses the original fonts GentiumPlus to make the regular and
124 italic styles and GentiumBasic to make the bold and bold italic styles,
125 and combines them into one \TeX-world family.
126
127 GentiumPlus is a serif family designed to support a wide range of Latin,
128 Greek and Cyrillic characters. It currently includes just the regular
129 and italic style, as well as smallcaps.
130
131 GentiumBasic has just the Latin characters and it even lacks some Latin
132 characters found in GentiumPlus. Therefore, the bold and bold italic
133 styles of this package support fewer languages than the regular and
134 italic styles (e.g.\ Czech and Slovak are not fully
135 supported). Moreover, GentiumBasic has no smallcaps and no kerning
136 pairs. When and if \sil\ releases bold and bold italic GentiumPlus
137 fonts, we will switch to those, of course.
138
139 This package does not use the Berry fontname scheme, but longer names
140 similar to those of Latin Modern, etc. One disadvantage of this choice
141 is that you cannot use the additional font selection commands provided
142 by the package \pkgname{nfssext-cfr}.
143
144
145 \section{Installation}
146
147 If you are using a reasonably recent \MiKTeX\ or \TeXLive\ or distro
148 installation it should be enough to install the \pkgname{gentium-tug}
149 package (if it's not already present).
150
151 Otherwise, or if you want to install the font manually, you will in
152 general need to perform these steps:
153 \begin{enumerate}
154 \item choose whether to install the font system-wide or in a personal
155 directory;
156 \item move or copy the package files to the appropriate location;
157 \item refresh the \TeX\ database;
158 \item incorporate the included map file fragments for the different
159 engines.
160 \end{enumerate}
161
162 However, that's all that it make sense to say here. It's beyond the
163 scope of this Gentium documentation to explain all the myriad ways in
164 which \TeX-world map files can be installed and used; there are
165 differences between \TeXLive\ and \MiKTeX, too.
166
167 Instead, we refer you to an explanation of the system-wide installation,
168 with information for both \MiKTeX\ and \TeXLive, at
169 \url{http://tug.org/fonts/fontinstall.html}. A corresponding
170 explanation for personal installation is at
171 \url{http://tug.org/fonts/fontinstall-personal.html}.
172
173 Those pages describe using \path{testfont.tex} for a basic test of the
174 font; a tfm file name to use with that is \url{ec-gentiumplus-regular}.
175
176 To further test your installation and that the package works on your
177 system, run \LaTeX\ on this \path{gentium.tex} source file. (You'll
178 need some commonly-available \LaTeX\ packages too, or comment them at.)
179 The console output and/or log should tell you whether any fonts were not
180 found. You can also compare your output with the original
181 \path{gentium.pdf}.
182
183
184 \section{Gentium \TeX\ support packages}\label{sec:support}
185
186 In short, for \LaTeX\ it suffices to include \verb|\usepackage{gentium}|
187 in your document preamble, and for \ConTeXtMKIV,
188 \verb|\setupbodyfont[gentium]|. Details follow.
189
190 The only prerequisite is that the \LaTeX\ package (\path{gentium.sty})
191 requires \pkgname{xkeyval}, which you almost certainly already have.
192
193
194 \subsection{Encodings}\label{sec:encs}
195
196 The package supports not only the most common Latin encodings such as
197 \textsc{ot1}, TeXnANSI/\textsc{ly1}, Cork/\textsc{ec}/\textsc{t1} and
198 Text Companion/\textsc{ts1} encodings, but also (in regular and italic)
199 other Latin, Greek and Cyrillic encodings. Most characters in the text
200 encodings and some of those in the Text Companion encoding are
201 available, including the~\texteuro. You can see the available encodings
202 in table~\ref{encodings}. The Greek encoding LGR is supported only in
203 \LaTeX, AGR only in \ConTeXt.
204
205 \begin{table}[h]
206 \centering
207 \begin{tabular}{lll}
208 \toprule
209 script & available encodings & styles \\
210 \midrule
211 Latin & OT1, T1, LY1, L7x, QX, T5, TS1 & regular, italic, bold,
212 bold italic \\
213 Cyrillic & T2A, T2B, T2C, X2 & regular, italic\\
214 Greek & LGR (\LaTeX), AGR (\ConTeXt) & regular, italic \\
215 \bottomrule
216 \end{tabular}
217 \caption{Available encodings in \pkgname{gentium-tug}.}
218 \label{encodings}
219 \end{table}
220
221 The regular and italic styles support all these Latin, Greek and Cyrillic
222 encodings. They support also small caps for the Latin and Cyrillic encodings,
223 but there are no small caps for Greek.
224
225 The bold and bold italic styles support only the Latin encodings and they
226 have no small caps.
227
228 Cork/T1 encoding lacks visible space, cwm (compound work mark),
229 SS and the character for composing permille sign.
230
231 Missing characters in bold styles for Latin encodings:
232
233 T1: Aogonek / aogonek, Eogonek / eogonek, Lcaron / lcaron,
234 Scedilla / scedilla, uni021A (Tcommaaccent) / uni021B (tcommaaccent),
235 dcaron, tcaron
236
237 L7x: Rcommaaccent, Gcommaaccent, Kcommaaccent, Lcommaaccent, Ncommaaccent,
238 Aogonek, Eogonek, Iogonek, Uogonek
239
240 QX: Aogonek, Eogonek, Iogonek, uni021A (Tcommaaccent)
241
242
243 \subsection{\LaTeX}
244 \label{sec:latex-package}
245
246 To use Gentium fonts in a \LaTeX\ document, add
247 \verb|\usepackage{gentium}| to your document preamble. This will set
248 the default serif/roman family to \fname{gentium}.
249
250 If you want to use Gentium together with another font (sans or
251 typewriter) with a different x-height, you should consider using the
252 option \verb|scaled|. This scales Gentium font and if you choose the
253 right scaling factor, you will get the same x-height of both fonts.
254 Here is an example of this option:
255 \begin{verbatim}
256 \usepackage[scaled=0.9]{gentium}
257 \end{verbatim}
258
259
260 \subsection{\ConTeXt}
261 \label{sec:context-package}
262
263 In \ConTeXtMKIV, to switch to the Gentium typeface you only need:
264 \begin{verbatim}
265 \setupbodyfont[gentium]
266 \end{verbatim}
267
268 In \ConTeXtMKII, before doing that you need either (for \pdfTeX):
269 \begin{verbatim}
270 \usetypescriptfile[type-gentium]
271 \usetypescript[gentium][ec] % or whatever encoding
272 \end{verbatim}
273 or (for \XeTeX):
274 \begin{verbatim}
275 \usetypescriptfile[type-gentium]
276 \usetypescript[gentium]
277 \end{verbatim}
278
279
280 \subsection{Changes in the Type~1 fonts vs.\ the TrueType originals}
281
282 The shapes of all characters in the Type~1 fonts are the same as in the
283 original TrueType fonts, except for the unavoidable changes are induced
284 by the format conversion (that is, the spline representations are
285 necessarily different).
286
287 However, a few small changes---hopefully improvements---were made to the
288 metrics of the GentiumPlus family (that is, regular and italic; bold and
289 bold italic are untouched). The Type~1 fonts are used to generate the
290 \TeX\ font metric files (tfm), so these changes propagate to the 8-bit
291 engines like \pdfTeX.
292
293 The first change concerns Greek. 8-bit Greek encodings (LGR and AGR) do
294 not use precomposed accented capital letters. These letters are composed
295 as a sequence of two glyphs: accent + capital letter. The problem is
296 that this sequence does not look like the precomposed letter---there is
297 often big space between the accent and the letter. Therefore, there are
298 some extra kerning pairs between accents and capital Greek
299 letters. These kerning pairs are created automatically (the script is
300 included in the sources) and the goal is to have the same relative
301 position between the accent and the letter as in the precomposed
302 letter. Thanks to these extra kerning pairs you should get better
303 results for 8-bit engines. These changes are irrelevant for Unicode
304 engines---they use the precomposed letters.
305
306 The second change is in the letters dcaron (ď) and lcaron
307 (ľ) that are used in the Czech and Slovak languages. (There was
308 no need to change tcaron (ť) and Lcaron (Ľ) with the same
309 accent.) There is no change of their shapes, and their advance widths
310 are also untouched---the change is to add several kerning pairs with
311 quite big negative values. Without these changes there was often a large
312 space between dcaron or lcaron and the following letter, so the changes
313 make the words containing these letters much more compact. You get these
314 changes automatically if you use 8-bit engines. If you use Unicode
315 engines with the original TrueType fonts, you get the original
316 metrics. However, you can tell the Unicode engines to use the Type~1
317 fonts (which append \verb|PS| to the family name) like this:
318 \begin{verbatim}
319 \usepackage{fontspec}
320 \setmainfont{GentiumPlusPS}
321 \end{verbatim}
322 Then you get the additional kern pairs for dcaron and lcaron. The
323 unfortunately disadvantage is that you cannot use small caps.
324
325 The last (similar) change is that additional kerning pairs were added to
326 the Type~1 fonts for accented Latin letters and small caps. The original
327 TrueType fonts have no such kerning pairs. As with the Czech/Slovak
328 changes, you get these changes automatically if you use 8-bit
329 engines. If you use Unicode engines with the original TrueType fonts,
330 you get the original metrics, but you can override as above (but since
331 you cannot use small caps with that method, the kerning pairs for small
332 caps become irrelevant).
333
334
335 \section{Known bugs}
336
337 There are problems in older versions of \pdfTeX\ with small caps when
338 using TrueType fonts. Especially the Latin encoding \textsc{t5} and all
339 Cyrillic encodings are unusable. You can use the Type~1 version of the
340 fonts or at least \pdfTeX\ version 1.40.13 to avoid these problems.
341
342 The Gentium fonts are a work in progress and as such they still miss
343 some features like kerning pairs for some letters. Currently, there are
344 no kerning pairs in the GentiumBasic family at all and the GentiumPlus
345 family has kerning pairs just for Latin letters without accents and for
346 Greek letters; there are no kerning pairs for small caps, accented Latin
347 letters or Cyrillic letters. The Type~1 fonts in this package have some
348 additional kerning pairs for accented Latin letters and for small
349 caps. Kerning pairs for Cyrillic are under consideration.
350
351
352 \section{License}
353
354 The fonts in this page, both the \sil\ originals and the derived Type~1
355 versions, are released under \textsc{ofl}. The \TeX\ support files
356 are licensed under the Expat License. Here are the full license texts.
357
358
359 \subsection{SIL Open Font License}
360
361 Copyright (c) 2003-2011 SIL International (http://www.sil.org/),
362 with Reserved Font Names ``Gentium'' and ``SIL''.
363
364 This Font Software is licensed under the SIL Open Font License, Version 1.1.
365 This license is copied below, and is also available with a FAQ at:
366 http://scripts.sil.org/OFL
367
368
369 % TODO: Try to have the similar look as the text version
370 %-----------------------------------------------------------
371 SIL OPEN FONT LICENSE Version 1.1 --- 26 February 2007
372 %-----------------------------------------------------------
373
374
375 PREAMBLE
376
377 The goals of the Open Font License (OFL) are to stimulate worldwide
378 development of collaborative font projects, to support the font creation
379 efforts of academic and linguistic communities, and to provide a free and
380 open framework in which fonts may be shared and improved in partnership
381 with others.
382
383 The OFL allows the licensed fonts to be used, studied, modified and
384 redistributed freely as long as they are not sold by themselves. The
385 fonts, including any derivative works, can be bundled, embedded,
386 redistributed and/or sold with any software provided that any reserved
387 names are not used by derivative works. The fonts and derivatives,
388 however, cannot be released under any other type of license. The
389 requirement for fonts to remain under this license does not apply
390 to any document created using the fonts or their derivatives.
391
392
393 DEFINITIONS
394
395 ``Font Software'' refers to the set of files released by the Copyright
396 Holder(s) under this license and clearly marked as such. This may
397 include source files, build scripts and documentation.
398
399 ``Reserved Font Name'' refers to any names specified as such after the
400 copyright statement(s).
401
402 ``Original Version'' refers to the collection of Font Software components as
403 distributed by the Copyright Holder(s).
404
405 ``Modified Version'' refers to any derivative made by adding to, deleting,
406 or substituting---in part or in whole---any of the components of the
407 Original Version, by changing formats or by porting the Font Software to a
408 new environment.
409
410 ``Author'' refers to any designer, engineer, programmer, technical
411 writer or other person who contributed to the Font Software.
412
413
414 PERMISSION \& CONDITIONS
415
416 Permission is hereby granted, free of charge, to any person obtaining
417 a copy of the Font Software, to use, study, copy, merge, embed, modify,
418 redistribute, and sell modified and unmodified copies of the Font
419 Software, subject to the following conditions:
420
421 1) Neither the Font Software nor any of its individual components,
422 in Original or Modified Versions, may be sold by itself.
423
424 2) Original or Modified Versions of the Font Software may be bundled,
425 redistributed and/or sold with any software, provided that each copy
426 contains the above copyright notice and this license. These can be
427 included either as stand-alone text files, human-readable headers or
428 in the appropriate machine-readable metadata fields within text or
429 binary files as long as those fields can be easily viewed by the user.
430
431 3) No Modified Version of the Font Software may use the Reserved Font
432 Name(s) unless explicit written permission is granted by the corresponding
433 Copyright Holder. This restriction only applies to the primary font name as
434 presented to the users.
435
436 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
437 Software shall not be used to promote, endorse or advertise any
438 Modified Version, except to acknowledge the contribution(s) of the
439 Copyright Holder(s) and the Author(s) or with their explicit written
440 permission.
441
442 5) The Font Software, modified or unmodified, in part or in whole,
443 must be distributed entirely under this license, and must not be
444 distributed under any other license. The requirement for fonts to
445 remain under this license does not apply to any document created
446 using the Font Software.
447
448
449 TERMINATION
450
451 This license becomes null and void if any of the above conditions are
452 not met.
453
454
455 DISCLAIMER
456
457 \textsc{The font software is provided ``as is'', without warranty of any kind,
458 express or implied, including but not limited to any warranties of
459 merchantability, fitness for a particular purpose and noninfringement
460 of copyright, patent, trademark, or other right. In no event shall the
461 copyright holder be liable for any claim, damages or other liability,
462 including any general, special, indirect, incidental, or consequential
463 damages, whether in an action of contract, tort or otherwise, arising
464 from, out of the use or inability to use the font software or from
465 other dealings in the font software.}
466
467
468 \subsection{Expat License}
469
470 Copyright (c) 2008-2013 TeX Users Group
471
472 Permission is hereby granted, free of charge, to any person obtaining
473 a copy of this software and associated documentation files (the
474 ``Software''), to deal in the Software without restriction, including
475 without limitation the rights to use, copy, modify, merge, publish,
476 distribute, sublicense, and/or sell copies of the Software, and to
477 permit persons to whom the Software is furnished to do so, subject to
478 the following conditions:
479
480 The above copyright notice and this permission notice shall be included
481 in all copies or substantial portions of the Software.
482
483 \textsc{The software is provided ``as is'', without warranty of any kind,
484 express or implied, including but not limited to the warranties of
485 merchantability, fitness for a particular purpose and noninfringement.
486 In no event shall the authors or copyright holders be liable for any
487 claim, damages or other liability, whether in an action of contract,
488 tort or otherwise, arising from, out of or in connection with the
489 software or the use or other dealings in the software.}
490
491
492
493 % OT1 is the same for regular and italic style (like TeX Gyre, unlike
494 % Computer Modern)---this might go to the bugs section.
495
496 % Cyrillic encodings use some letters with tail instead of with descender.
497
498
499 % TODO
500
501 % Show the available encodings in a better way (probably something
502 % similar to README), probably use small caps. Look at Clea's tables
503 % if they are better than what I wrote.
504
505 % Improve the LaTeX logo in Gentium (not so much related to this
506 % documentation).
507
508 % Search for gentiumplus and vgx---the latter shouldn't be present.
509
510 % Scale the monospaced font to match the x-height.
511
512 % Change the license and other information in the header.
513
514
515 % NOTES TO CLEA
516
517 % Current (unlike Clea's) LY1 doesn't contain Wcircumflex and others.
518 % Look at it!
519 % \textsc{ly1} is
520 % necessary for access to Wcircumflex (Ŵ), wcircumflex (ŵ),
521 % Ycircumflex (Ŷ) and ycircumflex (ŷ) as pre-composed
522 % glyphs.
523
524 % Look what's different from Clea's package.
525
526
527 % Some Clea's texts that might be used:
528
529 % The final option controls whether Latin Modern is used for sans and
530 % typewriter text. Because Computer Modern does not support the
531 % TeXnANSI/\textsc{ly1} encoding, you will likely get strange results
532 % unless you redefine \path{\sfdefault} and \path{\ttdefault}. Latin
533 % Modern is used because it is close to the default Computer Modern fonts
534 % and is widely available. If you would prefer that the package not
535 % redefine the default sans and typewriter families, use \verb|lm=false|
536 % when loading \pkgname{gentiumplus}. To explicitly request the default
537 % behaviour, which does redefine these families, use \verb|lm| or
538 % \verb|lm=true|.
539
540 % Loading \path{gentium.sty} does not affect the setup for
541 % mathematics.
542
543 \end{document}

Properties

Name Value
svn:eol-style native
svn:keywords Date Author Id

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20