blob: dc1a429be09990aea3084ac773549165f6e9df8f (
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
|
% Translations provided by Abhijit Navale <abhi_navale@live.in>
% TODO implement Hindu calendar (not used in day-to-day practice)
\ProvidesFile{gloss-marathi.ldf}[polyglossia: module for marathi]
\ifluatex
\xpg@warning{Marathi is not supported with LuaTeX.\MessageBreak
I will proceed with the compilation, but\MessageBreak
the output is not guaranteed to be correct\MessageBreak
and may look very wrong.}
\fi
\RequirePackage{devanagaridigits}
\PolyglossiaSetup{marathi}{
script=Devanagari,
scripttag=deva,
langtag=MAR,
hyphennames={marathi},
hyphenmins={2,2},%CHECK
fontsetup=true,
%TODO nouppercase=true,
%TODO localnumber=marathinumber
}
\def\tmp@western{Western}
\newif\ifmarathi@devanagari@numerals
\marathi@devanagari@numeralstrue
\define@key{marathi}{numerals}[Devanagari]{%
\def\@tmpa{#1}%
\ifx\@tmpa\tmp@western
\marathi@devanagari@numeralsfalse
\fi}
\def\marathinumber#1{%
\ifmarathi@devanagari@numerals
\devanagaridigits{\number#1}%
\else
\number#1%
\fi}
\def\captionsmarathi{%
\def\refname{संदर्भ}%
\def\abstractname{सारांश}%
\def\bibname{संदर्भ ग्रंथांची यादी}%
\def\prefacename{प्रस्तावना}%
\def\chaptername{प्रकरण}%
\def\appendixname{परिशिष्ट}%
\def\contentsname{अनुक्रमणिका}%
\def\listfigurename{आकृत्यांची यादी}%
\def\listtablename{कॊष्टकांची यादी}%
\def\indexname{सूची}%
\def\figurename{आक्रुती}%
\def\tablename{कोष्टक}%
%\def\thepart{}% TODO
\def\partname{भाग}%
\def\pagename{पान}%
\def\seename{पहा}%
\def\alsoname{हे सुध्दा पहा}%
\def\enclname{समाविष्ट}%
\def\ccname{सि.सि.}%
\def\headtoname{प्रति}%
\def\proofname{सिद्धता}%
\def\glossaryname{स्पष्टीकरणांची यादी}%
}
\def\datemarathi{%
\def\marathimonth{%
\ifcase\month\or
जानेवारी\or
फेब्रुवारी\or
मार्च\or
एप्रिल\or
मे\or
जून\or
जुलै\or
ऑगस्ट\or
सप्टेंबर\or
ऑक्टोबर\or
नोव्हेंबर\or
डिसेंबर\fi
}%
\def\today{\marathinumber\day\space\marathimonth\space\marathinumber\year}%
}
\endinput
|