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
|
\documentclass{book}
\typeout{I am going to load five languages. Don't get desperate}
\usepackage[english,german,spanish,french,hebrew,american]{polyglot}
\raggedbottom
\begin{document}
\chapter{A sample document}
\section{1st language: English}
This document illustrates some points of the package \textsf{polyglot}.
For instance, the British date is \today.
The American one is
\uselanguage[date]{american}{\today}.\\
\verb=\uselanguage[date]{american}{\today}=
\unselectlanguage
\selectlanguage*{french}
\section{2\sptext{e} langue: fran/cais}
The first things you will notice in French is the indentation of the
first line after the title, which is in the \verb=layout= group, and the
small space just before the colon. Other features are:
\begin{itemize}
\item Dashes in every level of \verb=itemize= environment.
\item Ligatures for a lot of accents (and encyclop"aedic
task). \verb=encyclop"aedic=
\item French << guillemets >>. \verb=<< guillemets >>=.
\item French spacing.
\end{itemize}
Today is \today.
\unselectlanguage
\selectlanguage*{spanish}
\section{3\sptext{er} idioma: espa~nol}
Also ligatures, guillemets, new layout, etc. Today is \today.
\clearpage
\unselectlanguage
\selectlanguage*{german}
\section{4. Sprache: Deutsche}
The usual ligatures are implemented, as "`German quotes"'
\verb="`German quotes"'=, \verb="ck=, usw.
In \verb=OT1= you get low umlauts:
"a, "o, "u. Today is \today.
\section{5th language: hebrew}
In this section we illustrate the use of the package
for romanizing languages. In \verb=r_hebrew= we define
some ligatures which simplifly the typing of text (following
the ISO recomendations, with lots of diacritic marks). For example:
\let\k\c
\begin{quote}
\selectlanguage{hebrew}
b.ar-.a, tim-z-.en".a, te-z-e, r-o^s, y.av^o'', k.al^u'', n.av^i'',
p.ar".a, z".e, q'en"e, g.al"o, b.an.a(y)w, r'e''iyy".a, h.a--.ar.e-z,
w.e--'.e-d^om, r^ua.h
\end{quote}
\begin{verbatim}
b.ar-.a, tim-z-.en".a, te-z-e, r-o^s, y.av^o'',
k.al^u'', n.av^i'', p.ar".a, z".e, q'en"e,
g.al"o, b.an.a(y)w, r'e''iyy".a, h.a--.ar.e-z,
w.e--'.e-d^om, r^ua.h
\end{verbatim}
\end{document}
|