% Language definition file (part of polyglossia v2.2 -- 2024/07/15) % \ProvidesFile{gloss-turkish.ldf}[polyglossia: module for Turkish] \RequirePackage{hijrical} \PolyglossiaSetup{turkish}{ bcp47=tr, bcp47-language=tr, bcp47-script=Latn, hyphennames={turkish}, hyphenmins={2,2}, langtag=TRK, frenchspacing=true, fontsetup=true } % TODO Add \ifluatex branch everywhere \ifxetex \newXeTeXintercharclass\turkish@punctthin % ! : \newXeTeXintercharclass\turkish@punctthick % = \fi \def\turkish@punctthinspace{{\ifdim\lastskip>\z@\unskip\penalty\@M\thinspace\fi}} \def\turkish@punctthickspace{{\unskip\nobreakspace}} \def\turkish@punctuation{% \ifxetex \XeTeXinterchartokenstate=1% \XeTeXcharclass `\! \turkish@punctthin \XeTeXcharclass `\: \turkish@punctthin \XeTeXcharclass `\= \turkish@punctthick \XeTeXinterchartoks \z@ \turkish@punctthin = \turkish@punctthinspace \XeTeXinterchartoks \z@ \turkish@punctthick = \turkish@punctthickspace \fi } % BCP-47 compliant aliases \setlanguagealias*{turkish}{tr} \def\noturkish@punctuation{% \ifxetex \XeTeXcharclass `\! \z@ \XeTeXcharclass `\: \z@ \XeTeXcharclass `\= \z@ \XeTeXinterchartokenstate=0% \fi } \def\turkish@casing{% \lccode`\I=`\ı \uccode`\i=`\İ } \def\noturkish@casing{% \lccode`\I=`\i \uccode`\i=`\I } \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% \noturkish@casing% } \def\blockextras@turkish{% \turkish@punctuation% \turkish@casing% } \def\inlineextras@turkish{% \turkish@punctuation% \turkish@casing% } \endinput