| 1 |
% Language definition file (part of polyglossia v2.10 -- 2026/04/18) |
| 2 |
% |
| 3 |
\ProvidesFile{gloss-turkish.ldf}[polyglossia: module for Turkish] |
| 4 |
\RequirePackage{hijrical} |
| 5 |
\PolyglossiaSetup{turkish}{ |
| 6 |
bcp47=tr, |
| 7 |
bcp47-language=tr, |
| 8 |
bcp47-script=Latn, |
| 9 |
hyphennames={turkish}, |
| 10 |
hyphenmins={2,2}, |
| 11 |
langtag=TRK, |
| 12 |
frenchspacing=true, |
| 13 |
} |
| 14 |
|
| 15 |
% TODO Add \ifluatex branch everywhere |
| 16 |
\ifxetex |
| 17 |
\newXeTeXintercharclass\turkish@punctthin % ! : |
| 18 |
\newXeTeXintercharclass\turkish@punctthick % = |
| 19 |
\fi |
| 20 |
|
| 21 |
\def\turkish@punctthinspace{{\ifdim\lastskip>\z@\unskip\penalty\@M\thinspace\fi}} |
| 22 |
\def\turkish@punctthickspace{{\unskip\nobreakspace}} |
| 23 |
|
| 24 |
\def\turkish@punctuation{% |
| 25 |
\ifxetex |
| 26 |
\XeTeXinterchartokenstate=1% |
| 27 |
\XeTeXcharclass `\! \turkish@punctthin |
| 28 |
\XeTeXcharclass `\: \turkish@punctthin |
| 29 |
\XeTeXcharclass `\= \turkish@punctthick |
| 30 |
\XeTeXinterchartoks \z@ \turkish@punctthin = \turkish@punctthinspace |
| 31 |
\XeTeXinterchartoks \z@ \turkish@punctthick = \turkish@punctthickspace |
| 32 |
\fi |
| 33 |
} |
| 34 |
|
| 35 |
% BCP-47 compliant aliases |
| 36 |
\setlanguagealias*{turkish}{tr} |
| 37 |
|
| 38 |
\def\noturkish@punctuation{% |
| 39 |
\ifxetex |
| 40 |
\XeTeXcharclass `\! \z@ |
| 41 |
\XeTeXcharclass `\: \z@ |
| 42 |
\XeTeXcharclass `\= \z@ |
| 43 |
\XeTeXinterchartokenstate=0% |
| 44 |
\fi |
| 45 |
} |
| 46 |
|
| 47 |
\def\turkish@casing{% |
| 48 |
\lccode`\I=`\ı |
| 49 |
\uccode`\i=`\İ |
| 50 |
} |
| 51 |
|
| 52 |
\def\noturkish@casing{% |
| 53 |
\lccode`\I=`\i |
| 54 |
\uccode`\i=`\I |
| 55 |
} |
| 56 |
|
| 57 |
\def\captionsturkish{% |
| 58 |
\def\prefacename{Önsöz}% |
| 59 |
\def\refname{Kaynaklar}% |
| 60 |
\def\abstractname{Özet}% |
| 61 |
\def\bibname{Kaynakça}% |
| 62 |
\def\chaptername{Bölüm}% |
| 63 |
\def\appendixname{Ek}% |
| 64 |
\def\contentsname{İçindekiler}% |
| 65 |
\def\listfigurename{Şekil Listesi}% |
| 66 |
\def\listtablename{Tablo Listesi}% |
| 67 |
\def\indexname{Dizin}% |
| 68 |
\def\figurename{Şekil}% |
| 69 |
\def\tablename{Tablo}% |
| 70 |
\def\partname{Kısım}% |
| 71 |
\def\enclname{İlişik}% |
| 72 |
\def\ccname{Diğer Alıcılar}% |
| 73 |
\def\headtoname{Alıcı}% |
| 74 |
\def\pagename{Sayfa}% |
| 75 |
\def\subjectname{İlgili}% |
| 76 |
\def\seename{bkz.}% |
| 77 |
\def\alsoname{ayrıca bkz.}% |
| 78 |
\def\proofname{Kanıt}% |
| 79 |
\def\glossaryname{Lügatçe}% |
| 80 |
} |
| 81 |
\def\dateturkish{% |
| 82 |
\def\today{\number\day~\ifcase\month\or |
| 83 |
Ocak\or Şubat\or Mart\or Nisan\or Mayıs\or Haziran\or |
| 84 |
Temmuz\or Ağustos\or Eylül\or Ekim\or Kasım\or |
| 85 |
Aralık\fi |
| 86 |
\space\number\year}% |
| 87 |
} |
| 88 |
\def\hijrimonthturkish#1{\ifcase#1% |
| 89 |
\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} |
| 90 |
%%\Hijritoday is now locale-aware and will format the date with this macro: |
| 91 |
\DefineFormatHijriDate{turkish}{% |
| 92 |
\number\value{Hijriday}\space\hijrimonthturkish{\value{Hijrimonth}}\space\number\value{Hijriyear}} |
| 93 |
|
| 94 |
\def\noextras@turkish{% |
| 95 |
\noturkish@punctuation% |
| 96 |
\noturkish@casing% |
| 97 |
} |
| 98 |
|
| 99 |
\def\blockextras@turkish{% |
| 100 |
\turkish@punctuation% |
| 101 |
\turkish@casing% |
| 102 |
} |
| 103 |
|
| 104 |
\def\inlineextras@turkish{% |
| 105 |
\turkish@punctuation% |
| 106 |
\turkish@casing% |
| 107 |
} |
| 108 |
|
| 109 |
\endinput |