summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/polyglossia/test-polyglossia-setup.tex
blob: 27691075c6e6fcbdbdf9ece6627eadff9a961ba0 (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
\documentclass[12pt]{article} 
\usepackage[no-math]{fontspec}
\defaultfontfeatures{Scale=MatchLowercase}
\setromanfont{Linux Libertine}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\newfontfamily\arabicfont[Script=Arabic]{Scheherazade}
\newfontfamily\arabicfontsf[Script=Arabic]{DejaVu Sans}
\newfontfamily\arabicfonttt[Script=Arabic]{DejaVu Sans Mono}
\usepackage{polyglossia}
%\tracingall
\setdefaultlanguage{french}
\setotherlanguage{bahasai}
\setotherlanguage{turkish}
\setotherlanguage{ukrainian}
\setotherlanguage{arabic}
\def\showfamily{\fbox{\small\familytype}}
\begin{document}\showfamily

Bonjour! 

\textukrainian{\today}

\textbahasai{\today}

\textturkish{\today}


\newpage
%
Some normal text. \showfamily
\itshape Some italic text.
\scshape Some upshape text. 

\ttfamily some code… \showfamily

\rmfamily Some normal text. \showfamily
\normalfont normal \showfamily

texte «normal». \textit{\textturkish{türkçe metin}}. \textturkish{\textit{türkçe metin}}.

texte «normal». \textit{\begin{turkish} türkçe metin.\end{turkish}} \begin{turkish}\textit{türkçe metin.}\end{turkish}

\textarabic{متن عربي / \today = \Hijritoday}


\sffamily\showfamily

texte «normal». \textbf{\textarabic{\showfamily متن عربي}} \textarabic{\textbf{متن عربي}}

\bfseries
texte «normal». 

\begin{Arabic}\mdseries متن عربي\end{Arabic} 
  
\begin{Arabic}\textmd{متن عربي}\end{Arabic}

\end{document}