blob: 8f3772591a1dfe227d2d3d6adff8aa92a32656ec (
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
|
\ProvidesFile{gloss-hindi.ldf}[polyglossia: module for hindi]
% UTF-8 strings kindly provided by Zdenek Wagner, 10-03-2008
% TODO: add option for velthuis transliteration with link to
% Velthuis Devanagari project: http://devnag.sarovar.org.
\makeatletter
\ifx\l@hindi\@undefined%
\ifx\l@sanskrit\@undefined%
\xpg@nopatterns{Hindi}%
\adddialect\l@hindi\l@nohyphenation%
\else
\let\l@hindi\l@sanskrit%
\fi
\fi
\def\captionshindi{%
\def\abstractname{सारांश}%
\def\appendixname{परिशिष्ट}%
\def\bibname{संदर ग्रन्थ}% (?)
\def\ccname{}%
\def\chaptername{अध्याय}%
\def\contentsname{विषय सूची}%
\def\enclname{}%
\def\figurename{चित्र}% रेखाचित्र
\def\headpagename{पृषठ}%
\def\headtoname{}%
\def\indexname{सूची}%
% सूचक
% अनुक्रमणिका
% अनुक्रमणि
\def\listfigurename{चित्रों की सूची}%
\def\listtablename{तालिकाओं की सूची}%
\def\pagename{पृषठ}%
\def\partname{खणड}%
\def\prefacename{प्रस्तावना}% प्राक्कथन
\def\refname{हवाले}%
\def\tablename{तालिका}%
\def\seename{देखिए}%
\def\alsoname{और देखिए}%
\def\alsoseename{और देखिए}%
}
\def\datehindi{%
\def\today{\number\day\space\ifcase\month\or
जनवरी\or
फ़रवरी\or
मार्च\or
अपरैल\or
मई\or
जून\or
जलाई\or
अगस्त\or
सितम्बर\or
अक्तूबर\or
नवम्बर\or
दिसम्बर\fi
\space\number\year}%
}
\def\hindi@language{\language=\l@hindi}
\def\hindi@font{%
\@ifundefined{hindifont}{%
\normalfontlatin%
\font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt
\@ifundefined{devanagarifont}{%
\zf@check@ot@script{deva}%
\if@tempswa%
\addfontfeature{Script=Devanagari}%
\else%
\PackageError{polyglossia}{^^J
The current font does not contain the Devanagari script!^^J
Please define \string\devanagarifont\space or \string\hindifont\space with \string\newfontfamily}%
\fi%
\zf@check@ot@lang{HIN}%
\if@tempswa\addfontfeature{Language=Hindi}\fi%
}%
{\devanagarifont%
\zf@check@ot@lang{HIN}%
\if@tempswa\addfontfeature{Language=Hindi}\fi%
}}%
{\hindifont}%
}
\def\selectnormalfonthindi{%
\let\normalfont=\hindi@font%
\let\rmfamily=\hindi@font%
% TODO add setup to define Sans and Mono fonts if desired
\let\sffamily=\hindi@font%
\let\ttfamily=\hindi@font%
\def\reset@font{\normalfont}}
\def\blockextras@hindi{%
\let\@@MakeUppercase\MakeUppercase%
\def\MakeUppercase##1{##1}%
}
\def\noextras@hindi{%
\let\MakeUppercase\@@MakeUppercase%
}
\endinput
|