diff options
author | Karl Berry <karl@freefriends.org> | 2014-02-16 23:14:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-02-16 23:14:06 +0000 |
commit | 06cb33c105d29fb7a1a104a11c4c866ce6d6c48f (patch) | |
tree | 6dd13d8f4e302d3c60911772cd3b74051bf205b1 /Master/texmf-dist/tex | |
parent | c0bb6850b2ead23f99d568bb84f8819f57e90757 (diff) |
babel-italian
git-svn-id: svn://tug.org/texlive/trunk@32979 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel-italian/italian.ldf | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-italian/italian.ldf b/Master/texmf-dist/tex/generic/babel-italian/italian.ldf index da6c6f46052..a0608f642f3 100644 --- a/Master/texmf-dist/tex/generic/babel-italian/italian.ldf +++ b/Master/texmf-dist/tex/generic/babel-italian/italian.ldf @@ -17,7 +17,7 @@ %% License, as described in lppl.txt in the base LaTeX distribution. %% Either version 1.3 or, at your option, any later version. \ProvidesLanguage{italian} - [2013/11/22 v1.3f Italian support from the babel system] + [2014/01/22 v1.3f Italian support from the babel system] %% %% Please report errors to: claudio dot beccari at gmail dot com %% @@ -95,6 +95,11 @@ \fi}% +\newcount\it@doublequoteactive \it@doublequoteactive=\z@ +\def\setactivedoublequote{\it@doublequoteactive=\@ne} +{\catcode`"=12 \global\let\it@doublequote"} +{\catcode`"=13 \global\let\it@@dqactive"} +\AtBeginDocument{\unless\ifnum\it@doublequoteactive=\z@ \initiate@active@char{"}% \addto\extrasitalian{\bbl@activate{"}\languageshorthands{italian}}% \declare@shorthand{italian}{"}{% @@ -104,10 +109,11 @@ \def\it@next{\futurelet\it@temp\it@cwm}% \fi \it@next -}% +}\fi}% \def\it@@cwm{\bbl@allowhyphens\discretionary{-}{}{}\bbl@allowhyphens}% +\def\it@@slash{\bbl@allowhyphens\discretionary{/}{}{/}\bbl@allowhyphens}% \def\it@@ocap#1{\it@ocap}\def\it@@ccap#1{\it@ccap}% -\DeclareRobustCommand*{\it@cwm}{\let\it@@next\relax +\DeclareRobustCommand*{\it@cwm}{\let\it@@next\it@doublequote \ifcat\noexpand\it@temp a% \def\it@@next{\it@@cwm}% \else @@ -121,9 +127,10 @@ \def\it@@next{\it@@ccap}% \else \if\noexpand\it@temp\string/% - \def\it@next{\slash\@gobble}% + \def\it@@next{\it@@slash\@gobble}% \else - \ifx\it@temp"% + \ifcat\noexpand\it@temp\noexpand\it@@dqactive + \def\it@@next{``\@gobble}% \else \if\noexpand\it@temp\string-% \def\it@@next{\bbl@allowhyphens-\bbl@allowhyphens @@ -136,15 +143,17 @@ \fi \fi \it@@next}% +\newcount\it@ISOcompliance \it@ISOcompliance=\z@ +\def\setISOcompliance{\it@ISOcompliance=\@ne} +\AtBeginDocument{\unless\ifnum\it@ISOcompliance=\z@% \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}% }}}\ifcsstring{bbl@main@language}{italian}{\selectlanguage{italian}}{}% -} +\fi} \DeclareRobustCommand*{\bbl@it@ap}[1]{% \textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}}% \DeclareRobustCommand*{\bbl@it@ped}[1]{% |