blob: 2d28dfa385004256a3462d71377bb659c757dfec (
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
|
\ProvidesFile{gloss-turkish.ldf}[polyglossia: module for turkish]
\RequirePackage{hijrical}
\makeatletter
\PolyglossiaSetup{turkish}{
hyphennames={turkish},
hyphenmins={2,2},
langtag=TRK,
frenchspacing=true,
fontsetup=true
}
\newXeTeXintercharclass\turkish@punctthin % ! :
\newXeTeXintercharclass\turkish@punctthick % =
\def\turkish@punctthinspace{{\ifdim\lastskip>\z@\unskip\penalty\@M\thinspace\fi}}
\def\turkish@punctthickspace{{\unskip\nobreakspace}}
\def\turkish@punctuation{%
\XeTeXinterchartokenstate=1%
\XeTeXcharclass `\! \turkish@punctthin
\XeTeXcharclass `\: \turkish@punctthin
\XeTeXcharclass `\= \turkish@punctthick
\XeTeXinterchartoks \z@ \turkish@punctthin = \turkish@punctthinspace
\XeTeXinterchartoks \z@ \turkish@punctthick = \turkish@punctthickspace
}
\def\noturkish@punctuation{%
\XeTeXcharclass `\! \z@
\XeTeXcharclass `\: \z@
\XeTeXcharclass `\= \z@
\XeTeXinterchartokenstate=0%
}
\def\captionsturkish{%
\def\prefacename{Önsöz}%
\def\refname{Kaynaklar}%
\def\abstractname{Özet}%
\def\bibname{Kaynakça}%
\def\chaptername{Bölüm}%
\def\appendixname{Ek}%
\def\contentsname{İçindekiler}%
\def\listfigurename{Şekil Listesi}%
\def\listtablename{Tablo Listesi}%
\def\indexname{Dizin}%
\def\figurename{Şekil}%
\def\tablename{Tablo}%
\def\partname{Kısım}%
\def\enclname{İlişik}%
\def\ccname{Diğer Alıcılar}%
\def\headtoname{Alıcı}%
\def\pagename{Sayfa}%
\def\subjectname{İlgili}%
\def\seename{bkz.}%
\def\alsoname{ayrıca bkz.}%
\def\proofname{Kanıt}%
\def\glossaryname{Lügatçe}%
}
\def\dateturkish{%
\def\today{\number\day~\ifcase\month\or
Ocak\or Şubat\or Mart\or Nisan\or Mayıs\or Haziran\or
Temmuz\or Ağustos\or Eylül\or Ekim\or Kasım\or
Aralık\fi
\space\number\year}
}
\def\hijrimonthturkish#1{\ifcase#1%
\or Muharrem\or Safer\or Rebiülevvel\or Rebiülahir\or Cemaziyelevvel\or Cemaziyelahir\or Recep\or Şaban\or Ramazan\or Şevval\or Zilkade\or Zilhicce\fi}
%%\Hijritoday is now locale-aware and will format the date with this macro:
\DefineFormatHijriDate{turkish}{%
\number\value{Hijriday}\space\hijrimonthturkish{\value{Hijrimonth}}\space\number\value{Hijriyear}}
\def\noextras@turkish{%
\noturkish@punctuation%
}
\def\blockextras@turkish{%
\turkish@punctuation%
}
\def\inlineextras@turkish{%
\turkish@punctuation%
}
\makeatother
\endinput
|