summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/babel-turkish
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-01-15 00:30:25 +0000
committerKarl Berry <karl@freefriends.org>2014-01-15 00:30:25 +0000
commit6c1d55d86cd79dc40f66222e8dcb23a12ae00200 (patch)
tree04ae755459d88ae75dfec6255caca266272cbe3b /Master/texmf-dist/source/generic/babel-turkish
parentc962d256a999db55ed41a020dd81b0bdec7d94a1 (diff)
babel-turkish (14jan14)
git-svn-id: svn://tug.org/texlive/trunk@32676 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic/babel-turkish')
-rw-r--r--Master/texmf-dist/source/generic/babel-turkish/turkish.dtx182
-rw-r--r--Master/texmf-dist/source/generic/babel-turkish/turkish.ins8
2 files changed, 164 insertions, 26 deletions
diff --git a/Master/texmf-dist/source/generic/babel-turkish/turkish.dtx b/Master/texmf-dist/source/generic/babel-turkish/turkish.dtx
index 2ec69bc6bee..573bfcd43f6 100644
--- a/Master/texmf-dist/source/generic/babel-turkish/turkish.dtx
+++ b/Master/texmf-dist/source/generic/babel-turkish/turkish.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1989-2005 Johannes L. Braams and any individual authors
+% Copyright 1989-2014 Johannes L. Braams and any individual authors
% listed elsewhere in this file. All rights reserved.
%
% This file is part of the Babel system.
@@ -16,7 +16,7 @@
%
% This work has the LPPL maintenance status "maintained".
%
-% The Current Maintainer of this work is Johannes Braams.
+% The Current Maintainer of this work is Javier Bezos.
%
% The list of all files belonging to the Babel system is
% given in the file `manifest.bbl. See also `legal.bbl' for additional
@@ -26,7 +26,7 @@
% and covered by LPPL is defined by the unpacking scripts (with
% extension .ins) which are part of the distribution.
% \fi
-% \CheckSum{179}
+% \CheckSum{352}
% \iffalse
% Tell the \LaTeX\ system who we are and write an entry on the
% transcript.
@@ -36,15 +36,9 @@
%<code>\ProvidesLanguage{turkish}
%\fi
%\ProvidesFile{turkish.dtx}
- [2005/03/31 v1.2m Turkish support from the babel system]
+ [2014/01/14 v1.3a Turkish support from the babel system]
%\iffalse
%% File `turkish.dtx'
-%% Babel package for LaTeX version 2e
-%% Copyright (C) 1989 - 2005
-%% by Johannes Braams, TeXniek
-%
-%% Please report errors to: J.L. Braams
-%% babel at braams.cistron.nl
%
%% Turkish Language Definition File
%% Copyright (C) 1994 - 2005
@@ -56,6 +50,10 @@
% code for the Turkish language definition file.
%<*filedriver>
\documentclass{ltxdoc}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\title{The Turkish style for babel}
+\author{Mustafa Burc, Johannes Braams, Javier Bezos}
\newcommand*\TeXhax{\TeX hax}
\newcommand*\babel{\textsf{babel}}
\newcommand*\langvar{$\langle \it lang \rangle$}
@@ -63,6 +61,7 @@
\newcommand*\Lopt[1]{\textsf{#1}}
\newcommand*\file[1]{\texttt{#1}}
\begin{document}
+ \maketitle
\DocInput{turkish.dtx}
\end{document}
%</filedriver>
@@ -87,7 +86,7 @@
% \texttt{z6001@rziris01.rrz.uni-hamburg.de} provided the code for
% this file. It is based on the work by Pierre Mackay; Turgut Uyar,
% \texttt{uyar@cs.itu.edu.tr} supplied additional translations in
-% version 1.2j and later}.
+% version 1.2j and later. Version 1.3 was prepared by Javier Bezos.}.
%
% Turkish typographic rules specify that a little `white space'
% should be added before the characters `\texttt{:}', `\texttt{!}'
@@ -95,8 +94,47 @@
% automatically these characters are made `active'. Also
% |\frenhspacing| is set.
%
+% Typical usage with pdf\TeX{} is:
+%\begin{verbatim}
+%\usepackage[T1]{fontenc}
+%\usepackage[utf8]{inputenc} % also latin5
+%\usepackage[turkish]{babel}
+%\end{verbatim}
+%
+% The |=| shorthand is potentially dangerous. You can deactivate
+% with the \textsf{babel} option |shorthands| or with |shorthandoff|:
+%
+%\begin{verbatim}
+%\usepackage[turkish,shorthands=:!]{babel}
+%\end{verbatim}
+%
+%
+% This style doesn't handle the fi ligature (yet). You can break it by
+% hand with |f{}i| or |f{\kern0pt}i|, but this can be
+% done automatically, too. With pdf\TeX{} and monolingual documents,
+% use \textsf{microtype}, as for example:
+%\begin{verbatim}
+%\usepackage{microtype}
+%\DisableLigatures[f]{encoding = *, family = *}
+%\end{verbatim}
+%
+% With Xe\TeX, ligatures are handled internally by the font, provided the
+% corresponding feature has been implemented (not all fonts do); e.~g.:
+%\begin{verbatim}
+%\usepackage{fontspec}
+%\setmainfont[Language=Turkish]{Iwona}
+%\end{verbatim}
+%
+% With Lua\TeX{} you can use either method (remember with
+% \textsf{microtype} you have also to set |Renderer=Basic|, at
+% least at the time of this writing). Alternative approachs with
+% Lua\TeX{} are the \textsf{setnolig} package or a |fea| file (not
+% provided here).
+%
% \StopEventually{}
%
+% \subsection*{The code}
+%
% The macro |\LdfInit| takes care of preventing that this file is
% loaded more than once, checking the category code of the
% \texttt{@} sign, etc.
@@ -159,7 +197,7 @@
\def\seename{bkz.}%
\def\alsoname{ayr\i ca bkz.}%
\def\proofname{Kan\i t}%
- \def\glossaryname{Glossary}% <-- Needs translation
+ \def\glossaryname{L\"ugat\c ce}% <-- Tentative
}%
% \end{macrocode}
% \end{macro}
@@ -179,11 +217,111 @@
% \begin{macrocode}
\def\dateturkish{%
\def\today{\number\day~\ifcase\month\or
- Ocak\or \c Subat\or Mart\or Nisan\or May\i{}s\or Haziran\or
- Temmuz\or A\u gustos\or Eyl\"ul\or Ekim\or Kas\i{}m\or
- Aral\i{}k\fi
+ Ocak\or \c Subat\or Mart\or Nisan\or May\i s\or Haziran\or
+ Temmuz\or A\u gustos\or Eyl\"ul\or Ekim\or Kas\i m\or
+ Aral\i k\fi
\space\number\year}}
% \end{macrocode}
+%
+% The following code is taken into account only with babel 3.9g and
+% later. Defines case and hyphen mapping, as well as UTF-8
+% strings. First the Unicode branch.
+% \changes{turkish-1.3a}{2014/01/02}{Code for babel 3.9: case and
+% hyphen mapping, utf8 strings}
+% \changes{turkish-1.3a}{2014/01/03}{Use space instead of braces after
+% \cs{i}}
+% \begin{macrocode}
+\ifx\SetHyphenMap\@undefined\else
+\ifx\@iforloop\@undefined\else
+\StartBabelCommands*{turkish}{captions}
+ [unicode, charset=utf8, fontenc=EU1 EU2]
+ \SetString\prefacename{Önsöz}
+ \SetString\refname{Kaynaklar}
+ \SetString\abstractname{Özet}
+ \SetString\bibname{Kaynakça}
+ \SetString\chaptername{Bölüm}
+ \SetString\appendixname{Ek}
+ \SetString\contentsname{İçindekiler}
+ \SetString\listfigurename{Şekil Listesi}
+ \SetString\listtablename{Tablo Listesi}
+ \SetString\indexname{Dizin}
+ \SetString\figurename{Şekil}
+ \SetString\tablename{Tablo}
+ \SetString\partname{Kısım}
+ \SetString\enclname{İlişik}
+ \SetString\ccname{Diğer Alıcılar}
+ \SetString\headtoname{Alıcı}
+ \SetString\pagename{Sayfa}
+ \SetString\subjectname{İlgili}
+ \SetString\seename{bkz.}
+ \SetString\alsoname{ayrıca bkz.}
+ \SetString\proofname{Kanıt}
+ \SetString\glossaryname{Lügatçe}% <-- Tentative
+ \SetCase
+ {\uccode`i=`İ\relax
+ \uccode`ı=`I\relax}
+ {\lccode`İ=`i\relax
+ \lccode`I=`ı\relax}
+ \SetHyphenMap{%
+ \BabelLower{`İ}{`i}%
+ \BabelLower{`I}{`ı}}
+\StartBabelCommands*{turkish}{date}
+ [unicode, charset=utf8, fontenc=EU1 EU2]
+ \SetStringLoop{month#1name}{%
+ Ocak,Şubat,Mart,Nisan,Mayıs,Haziran,%
+ Temmuz,Ağustos,Eylül,Ekim,Kasım,Aralık}
+% \end{macrocode}
+% Now the OT1 branch, only partially, because this encoding is not
+% suited for Turkish (no dotted I).
+% \begin{macrocode}
+\StartBabelCommands{turkish}{}[ot1enc, fontenc=OT1]
+ \SetCase
+ {\uccode"10=`I\relax}
+ {\lccode`I="10\relax}
+% \end{macrocode}
+% And finally, the generic branch, using the LICR and assuming T1.
+% \begin{macrocode}
+\StartBabelCommands*{turkish}{captions}
+ \SetString\prefacename{\"Ons\"oz}
+ \SetString\refname{Kaynaklar}
+ \SetString\abstractname{\"Ozet}
+ \SetString\bibname{Kaynak\c ca}
+ \SetString\chaptername{B\"ol\"um}
+ \SetString\appendixname{Ek}
+ \SetString\contentsname{\.I\c cindekiler}
+ \SetString\listfigurename{\c Sekil Listesi}
+ \SetString\listtablename{Tablo Listesi}
+ \SetString\indexname{Dizin}
+ \SetString\figurename{\c Sekil}
+ \SetString\tablename{Tablo}
+ \SetString\partname{K\i s\i m}
+ \SetString\enclname{\.Ili\c sik}
+ \SetString\ccname{Di\u ger Al\i c\i lar}
+ \SetString\headtoname{Al\i c\i}
+ \SetString\pagename{Sayfa}
+ \SetString\subjectname{\.Ilgili}
+ \SetString\seename{bkz.}
+ \SetString\alsoname{ayr\i ca bkz.}
+ \SetString\proofname{Kan\i t}
+ \SetString\glossaryname{L\"ugat\c ce}% <-- Tentative
+ \SetCase
+ {\uccode`i="9D\relax
+ \uccode"19=`I\relax}
+ {\lccode"9D=`i\relax
+ \lccode`I="19\relax}
+ \SetHyphenMap{%
+ \BabelLower{"9D}{`i}%
+ \BabelLower{`I}{"19}}
+\StartBabelCommands*{turkish}{date}
+ \SetStringLoop{month#1name}{%
+ Ocak,\c Subat,Mart,Nisan,May\i s,Haziran,%
+ Temmuz,A\u gustos,Eyl\"ul,Ekim,Kas\i m,Aral\i k}
+ \SetString\today{%
+ \number\day~\@nameuse{month\romannumeral\month name}%
+ \space\number\year}
+\EndBabelCommands
+\fi\fi
+% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\extrasturkish}
@@ -201,17 +339,17 @@
% \begin{macrocode}
\initiate@active@char{:}
\initiate@active@char{!}
-\initiate@active@char{=}
% \end{macrocode}
% We specify that the turkish group of shorthands should be used.
-% \begin{macrocode}
-\addto\extrasturkish{\languageshorthands{turkish}}
-% \end{macrocode}
% These characters are `turned on' once, later their definition may
% vary.
% \begin{macrocode}
\addto\extrasturkish{%
- \bbl@activate{:}\bbl@activate{!}\bbl@activate{=}}
+ \languageshorthands{turkish}%
+ \bbl@activate{:}%
+ \bbl@activate{!}%
+ \bbl@activate{=}%
+ \bbl@frenchspacing}
% \end{macrocode}
%
% For Turkish texts |\frenchspacing| should be in effect. We
@@ -219,7 +357,6 @@
% \changes{turkish-1.2e}{1995/05/15}{now use \cs{bbl@frenchspacing}
% and \cs{bbl@nonfrenchspacing}}
% \begin{macrocode}
-\addto\extrasturkish{\bbl@frenchspacing}
\addto\noextrasturkish{\bbl@nonfrenchspacing}
% \end{macrocode}
% \end{macro}
@@ -235,8 +372,6 @@
% \changes{turkish-1.2d}{1995/01/31}{Added missing \cs{def}}
% \changes{turkish-1.2e}{1995/05/15}{Use the new mechanism of
% \cs{declare@shorthand}}
-%%^^A JLB:: this code breaks during \begin{document}
-%%^^A JLB: Needs fixing!!
% \begin{macrocode}
\declare@shorthand{turkish}{:}{%
\ifmmode
@@ -260,6 +395,7 @@
\fi
\string!%
\fi}
+\initiate@active@char{=}
\declare@shorthand{turkish}{=}{%
\ifmmode
\string=%
diff --git a/Master/texmf-dist/source/generic/babel-turkish/turkish.ins b/Master/texmf-dist/source/generic/babel-turkish/turkish.ins
index 9e7af81a31a..03b68c7b449 100644
--- a/Master/texmf-dist/source/generic/babel-turkish/turkish.ins
+++ b/Master/texmf-dist/source/generic/babel-turkish/turkish.ins
@@ -19,7 +19,7 @@
%%
%% This work has the LPPL maintenance status "maintained".
%%
-%% The Current Maintainer of this work is Johannes Braams.
+%% The Current Maintainer of this work is Javier Bezos.
%%
%% The list of all files belonging to the LaTeX base distribution is
%% given in the file `manifest.bbl. See also `legal.bbl' for additional
@@ -69,7 +69,7 @@ version 2003/12/01 or later.
This work has the LPPL maintenance status "maintained".
-The Current Maintainer of this work is Johannes Braams.
+The Current Maintainer of this work is Javier Bezos.
This file may only be distributed together with a copy of the Babel
system. You may however distribute the Babel system without
@@ -103,7 +103,7 @@ version 2003/12/01 or later.
This work has the LPPL maintenance status "maintained".
-The Current Maintainer of this work is Johannes Braams.
+The Current Maintainer of this work is Javier Bezos.
This file may only be distributed together with a copy of the Babel
system. You may however distribute the Babel system without
@@ -123,6 +123,8 @@ of this file under its original name.
\keepsilent
+\askforoverwritefalse
+
\usedir{tex/generic/babel}
\usepreamble\mainpreamble