summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/polyglossia/gloss-turkish.ldf
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-22 00:02:31 +0000
committerKarl Berry <karl@freefriends.org>2009-11-22 00:02:31 +0000
commit37c4a5be1d1d1c895526e9c5ae9e5918fb133d80 (patch)
tree6fde677a6e13e2677babd7003dfaa3d210feb973 /Master/texmf-dist/tex/xelatex/polyglossia/gloss-turkish.ldf
parentc8f25e8c064910cbdae63d68ad0b753dcd925264 (diff)
polyglossia update (20nov09)
git-svn-id: svn://tug.org/texlive/trunk@16115 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/polyglossia/gloss-turkish.ldf')
-rw-r--r--Master/texmf-dist/tex/xelatex/polyglossia/gloss-turkish.ldf30
1 files changed, 21 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-turkish.ldf b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-turkish.ldf
index e44ab1a8570..7ba1fb37f1f 100644
--- a/Master/texmf-dist/tex/xelatex/polyglossia/gloss-turkish.ldf
+++ b/Master/texmf-dist/tex/xelatex/polyglossia/gloss-turkish.ldf
@@ -5,23 +5,35 @@
\font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt
\@ifundefined{turkishfont}{%
\zf@check@ot@lang{TUR}%
- \if@tempswa\addfontfeature{Language=Turkish}\fi}
+ \if@tempswa
+ \addfontfeature{Language=Turkish}%
+ \else
+ \zf@check@ot@lang{TRK}%
+ \if@tempswa
+ \addfontfeature{Language=Turkish}\fi%
+ \fi}
{\turkishfont}%
}%
\ifx\l@turkish\@undefined
\xpg@nopatterns{turkish}
- \adddialect\l@turkish0
+ \adddialect\l@turkish\l@nohyphenation
\fi
+\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{%
\frenchspacing%
\XeTeXinterchartokenstate=1%
- \XeTeXcharclass `\! 7%
- \XeTeXcharclass `\= 8%
- \XeTeXcharclass `\: 7%
- \XeTeXinterchartoks 0 7 = {\unskip\penalty\@M\thinspace}%
- \XeTeXinterchartoks 0 8 = {\unskip\kern\fontdimen2\font\kern-1.4\fontdimen3\font}%
+ \XeTeXcharclass `\! \turkish@punctthin
+ \XeTeXcharclass `\: \turkish@punctthin
+ \XeTeXcharclass `\= \turkish@punctthick
+ \XeTeXinterchartoks \z@ \turkish@punctthin = \turkish@punctthinspace
+ \XeTeXinterchartoks \z@ \turkish@punctthick = \turkish@punctthickspace
}
\def\noturkish@punctuation{%
@@ -51,7 +63,7 @@
\def\seename{bkz.}%
\def\alsoname{ayrıca bkz.}%
\def\proofname{Kanıt}%
- \def\glossaryname{Glossary}% <-- Needs translation
+ \def\glossaryname{Lügatçe}%
}
\def\dateturkish{%
\def\today{\number\day~\ifcase\month\or
@@ -61,7 +73,7 @@
\space\number\year}
}
-\def\turkish@language{\protect\language=\l@turkish}
+\def\turkish@language{\language=\l@turkish}
\setlocalhyphenmins{turkish}{2}{2}%