summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-13 22:15:54 +0000
committerKarl Berry <karl@freefriends.org>2013-05-13 22:15:54 +0000
commit1ff28b17fa5479687257ee4525e3a06c8aa0a2c7 (patch)
tree22d0f15f3680a26ce6a158e96b25bf1908471b9e /Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf
parente26fdd32ad8dc28823e2f351c31afa0dad690da9 (diff)
polyglossia (13may13)
git-svn-id: svn://tug.org/texlive/trunk@30442 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf')
-rw-r--r--Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf82
1 files changed, 82 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf b/Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf
new file mode 100644
index 00000000000..6f40cf2cd3d
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/polyglossia/gloss-turkish.ldf
@@ -0,0 +1,82 @@
+\ProvidesFile{gloss-turkish.ldf}[polyglossia: module for turkish]
+\RequirePackage{hijrical}
+\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%
+}
+
+\endinput