diff options
author | Karl Berry <karl@freefriends.org> | 2013-09-30 22:16:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-09-30 22:16:42 +0000 |
commit | 9d155da090955e2c64b8d6ad5c461e972e5803d9 (patch) | |
tree | b7484c41503f51253603e71d273a9d205269a206 /Master/texmf-dist/tex/generic/babel-italian | |
parent | 60b5596f568a026a7b457e62c5a274d5adcb1b00 (diff) |
babel-italian (30sep13)
git-svn-id: svn://tug.org/texlive/trunk@31799 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel-italian')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel-italian/italian.ldf | 223 |
1 files changed, 122 insertions, 101 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-italian/italian.ldf b/Master/texmf-dist/tex/generic/babel-italian/italian.ldf index 28faf1b8485..d4398b4cc0d 100644 --- a/Master/texmf-dist/tex/generic/babel-italian/italian.ldf +++ b/Master/texmf-dist/tex/generic/babel-italian/italian.ldf @@ -5,47 +5,28 @@ %% The original source files were: %% %% italian.dtx (with options: `code') -%% This is a generated file. -%% -%% Copyright 1989-2008 Johannes L. Braams and any individual authors -%% listed elsewhere in this file. All rights reserved. -%% -%% This file was generated from file(s) of the Babel system. -%% --------------------------------------------------------- -%% -%% It may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2003/12/01 or later. -%% -%% This work has the LPPL maintenance status "maintained". %% -%% The Current Maintainer of this work is Johannes Braams. +%% This is a generated file. %% -%% This file may only be distributed together with a copy of the Babel -%% system. You may however distribute the Babel system without -%% such generated files. +%% Copyright (C) 2013 Claudio Beccari. %% -%% The list of all files belonging to the Babel distribution is -%% given in the file `manifest.bbl'. See also `legal.bbl for additional -%% information. +%% This file is part of the babel-italian bundle release 1.3. +%% -------------------------------------------------- %% -%% The list of derived (unpacked) files belonging to the distribution -%% and covered by LPPL is defined by the unpacking scripts (with -%% extension .ins) which are part of the distribution. +%% It may be distributed under the terms of the LaTeX Project Public +%% License, as described in lppl.txt in the base LaTeX distribution. +%% Either version 1.3 or, at your option, any later version. \ProvidesLanguage{italian} - [2008/03/14 v1.2t Italian support from the babel system] + [2013/09/27 v1.3 Italian support from the babel system] %% File `italian.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 - 2008 +%% Copyright (C) 1989 - 2004 %% by Johannes Braams, TeXniek -%% Please report errors to: J.L. Braams -%% babel at braams.xs4all.nl -%% Claudio Beccari -%% claudio.beccari at gmail.it +%% Italian support for the babel package +%% Copyright (C) 2013 +%% by Claudio Beccari +%% +%% Please report errors to: claudio dot beccari at gmail dot com \LdfInit{italian}{captionsitalian}% \ifx\l@italian\@undefined \@nopatterns{Italian}% @@ -67,7 +48,7 @@ \def\enclname{Allegati}% \def\ccname{e~p.~c.}% \def\headtoname{Per}% - \def\pagename{Pag.}% % in Italian the abbreviation is preferred + \def\pagename{Pag.}% \def\seename{vedi}% \def\alsoname{vedi anche}% \def\proofname{Dimostrazione}% @@ -91,6 +72,35 @@ \lccode`'=`'}% \addto\noextrasitalian{% \lccode`'=0}% +\newcount\it@lettering \it@lettering=\@ne +\newcommand*\XXIletters{\it@lettering=\z@} +\newcommand*\XXVIletters{\it@lettering=\@ne} +\let\bbl@alph\@alph \let\bbl@Alph\@Alph +\addto\extrasitalian{\babel@savevariable\it@lettering + \let\@alph\it@alph \let\@Alph\it@Alph} +\addto\noextrasitalian{\let\@alph\bbl@alph\let\@Alph\bbl@Alph} +\def\it@alph#1{% +\ifcase\it@lettering + \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or + l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or + z\else\@ctrerr\fi +\or + \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or + j\or k\or l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or + w\or x\or y\or z\else\@ctrerr\fi +\fi}% +\def\it@Alph#1{% +\ifcase\it@lettering + \ifcase#1\or A\or B\or C\or D\or E\or F\or G\or H\or I\or + L\or M\or N\or O\or P\or Q\or R\or S\or T\or U\or V\or + Z\else\@ctrerr\fi +\or + \ifcase#1\or A\or B\or C\or D\or E\or F\or G\or H\or I\or + J\or K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or U\or V\or + W\or X\or Y\or Z\else\@ctrerr\fi +\fi}% + + \initiate@active@char{"}% \addto\extrasitalian{\bbl@activate{"}\languageshorthands{italian}}% \declare@shorthand{italian}{"}{% @@ -101,7 +111,7 @@ \fi \it@next }% -\def\it@@cwm{\nobreak\discretionary{-}{}{}\nobreak\hskip\z@skip}% +\def\it@@cwm{\nobreak\discretionary{-}{}{}\hskip\z@skip}% \def\it@@ocap#1{\it@ocap}\def\it@@ccap#1{\it@ccap}% \DeclareRobustCommand*{\it@cwm}{\let\it@@next\relax \ifcat\noexpand\it@temp a% @@ -117,7 +127,7 @@ \def\it@@next{\it@@ccap}% \else \if\noexpand\it@temp\string/% - \def\it@@next{\slash\@gobble}% + \def\it@next{\slash\@gobble}% \else \ifx\it@temp"% \def\it@@next{``\@gobble}% @@ -128,23 +138,58 @@ \fi \fi \it@@next}% -\@ifpackageloaded{units}{}{% - \DeclareRobustCommand*{\bbl@unit}[1]{% - \textormath{\,\mbox{#1}}{\,\mathrm{#1}}}% - }% -\DeclareRobustCommand*{\bbl@ap}[1]{% +\def\activate@it@unit{\DeclareRobustCommand*{\bbl@it@unit}[1]{% + \textormath{\,\textup{##1}}{\,\mathrm{##1}}}} +\AtBeginDocument{% +\@ifpackageloaded{units}{}{\@ifpackageloaded{siunitx}{}{% + \@ifpackageloaded{SIunits}{}{% + \activate@it@unit\addto\extrasitalian{% + \babel@save\unit\let\unit\bbl@it@unit}\selectlanguage{italian}% + }}}% +} +\DeclareRobustCommand*{\bbl@it@ap}[1]{% \textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}}% -\DeclareRobustCommand*{\bbl@ped}[1]{% +\DeclareRobustCommand*{\bbl@it@ped}[1]{% \textormath{$_{\mbox{\fontsize\sf@size\z@ \selectfont#1}}$}{_\mathrm{#1}}}% -\@ifpackageloaded{units}{}{% - \addto\extrasitalian{% - \babel@save\unit\let\unit\bbl@unit}% - }% \addto\extrasitalian{% - \babel@save\ap\let\ap\bbl@ap - \babel@save\ped\let\ped\bbl@ped + \babel@save\ap\let\ap\bbl@it@ap + \babel@save\ped\let\ped\bbl@it@ped }% +\newcount\Virgola +\Virgola=\z@ +\newcommand*\IntelligentComma{\Virgola=\@ne} +\newcommand*\NoIntelligentComma{\Virgola=\z@} +\addto\extrasitalian{\babel@savevariable\Virgola} +\AtEndOfPackage{\RequirePackage{etoolbox}} + \DeclareMathSymbol{\virgola}{\mathpunct}{letters}{"3B} + \DeclareMathSymbol{\virgoladecimale}{\mathord}{letters}{"3B} +\AtEndOfPackage{% +\AtEndPreamble{% + \@ifpackageloaded{polyglossia}{% + \ifcsstring{xpg@main@language}{english}{\relax}{% + \mathcode`\,=\string"8000} + }{% + \ifcsstring{languagename}{english}{\relax}{% + \mathcode`\,=\string"8000} + } +}} +{\catcode `,=\active \gdef,{\futurelet\let@token\m@thcomma}}% +\AtEndOfPackage{% +\AtEndPreamble{% +\gdef\m@thcomma#1{% +\ifnumequal{\Virgola}{\z@}{\virgola#1}{% + \unless\ifcat\noexpand\let@token*% + \virgola + \else + \ifcsundef{\expandafter\@gobble\string #1}{% + \ifnumless{`#1}{`0}{\virgola}% + {\ifnumgreater{`#1}{`9}{\virgola}% + {\virgoladecimale}% + }% + }{\virgola}% + \fi#1}}% +}} \def\LtxSymbCaporali{% \DeclareRobustCommand*{\it@ocap}{\mbox{% \fontencoding{U}\fontfamily{lasy}\selectfont(\kern-0.20em(}% @@ -153,6 +198,9 @@ \mbox{% \fontencoding{U}\fontfamily{lasy}\selectfont)\kern-0.20em)}}% }% +\def\T@unoCaporali{\DeclareRobustCommand*{\it@ocap}{<<\ignorespaces}% + \DeclareRobustCommand*{\it@ccap}{\ifdim\lastskip>\z@\unskip\fi>>}}% +\T@unoCaporali \def\CaporaliFrom#1#2#3#4{% \DeclareFontEncoding{#1}{}{}% \DeclareTextCommand{\it@ocap}{T1}{% @@ -163,64 +211,37 @@ {\fontencoding{#1}\fontfamily{#2}\selectfont\char#3\ignorespaces}}% \DeclareTextCommand{\it@ccap}{OT1}{\ifdim\lastskip>\z@\unskip\fi% {\fontencoding{#1}\fontfamily{#2}\selectfont\char#4}}} + \def\get@ae#1#2#3!{\def\bbl@ae{#1#2}}% \def\@ifT@one@noCap{\expandafter\get@ae\f@family!% \def\bbl@temp{ae}\ifx\bbl@ae\bbl@temp\expandafter\@firstoftwo\else \expandafter\@secondoftwo\fi}% -\newif\if@CBgreekEncKnown -\IfFileExists{lgrcmr.fd}% - {\@CBgreekEncKnowntrue}{\@CBgreekEncKnownfalse} -\newif\if@CyrEncKnown -\IfFileExists{ot2cmr.fd}% - {\@CyrEncKnowntrue}{\@CyrEncKnownfalse}% -\def\CBgreekCaporali{\@ifclassloaded{slides}{% - \IfFileExists{lgrlcmss.fd}{\DeclareFontEncoding{LGR}{}{}% - \DeclareRobustCommand*{\it@ccap}% - {\ifdim\lastskip>\z@\unskip\fi - {\fontencoding{LGR}\selectfont))}}% - \DeclareRobustCommand*{\it@ocap}% - {{\fontencoding{LGR}\selectfont((}\ignorespaces}}% - {\LtxSymbCaporali}}% - {\DeclareFontEncoding{LGR}{}{}% - \DeclareRobustCommand*{\it@ccap}% - {\ifdim\lastskip>\z@\unskip - \fi{\fontencoding{LGR}\selectfont))}}% - \DeclareRobustCommand*{\it@ocap}% - {{\fontencoding{LGR}\selectfont((}\ignorespaces}}% +\AtBeginDocument{\normalfont\def\bbl@temp{OT1}% + \ifx\cf@encoding\bbl@temp + \LtxSymbCaporali + \GenericWarning{italian.ldf\space}{% + File italian.ldf warning: \MessageBreak\space\space\space + With OT1 encoding guillemets are poorly faked\MessageBreak + \space\space\space + Use T1 encoding\MessageBreak\space\space\space + or specify a font with command \string\CaporaliFrom\MessageBreak + \space\space\space + See the documentation concerning the babel-italian typesetting + \MessageBreak\space\space}% + \else + \ifx\cf@encoding\bbl@t@one + \@ifT@one@noCap{% + \LtxSymbCaporali + \GenericWarning{italian.ldf\space}{% + File italian.ldf warning: \MessageBreak\space\space\space + The AE font collection does not contain the guillemets + \MessageBreak\space\space\space + Use the Latin Modern font collection instead + \MessageBreak\space} }% -\def\CyrillicCaporali{\@ifclassloaded{slides}{\relax}% - {\DeclareFontEncoding{OT2}{}{}% - \DeclareRobustCommand*{\it@ccap}% - {\ifdim\lastskip>\z@\unskip\fi - {\fontencoding{OT2}\selectfont\char62\relax}}% - \DeclareRobustCommand*{\it@ocap}% - {{\fontencoding{OT2}\selectfont\char60\relax}\ignorespaces}}}% -\@onlypreamble{\CBgreekCaporali}\@onlypreamble{\CyrillicCaporali}% -\def\T@unoCaporali{\DeclareRobustCommand*{\it@ocap}{<<\ignorespaces}% - \DeclareRobustCommand*{\it@ccap}{\ifdim\lastskip>\z@\unskip\fi>>}}% -\ifx\cf@encoding\bbl@t@one - \@ifT@one@noCap{% - \if@CBgreekEncKnown - \CBgreekCaporali - \else - \if@CyrEncKnown - \CyrilicCaporali - \else - \LtxSymbCaporali - \fi - \fi}% - {\T@unoCaporali}% -\else - \if@CBgreekEncKnown - \CBgreekCaporali - \else - \if@CyrEncKnown - \CyrilicCaporali - \else - \LtxSymbCaporali - \fi - \fi -\fi + {\T@unoCaporali}\fi + \fi +} \ldf@finish{italian}% %% %% \CharacterTable |