diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bezos/babeltools.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/bezos/babeltools.sty | 104 |
1 files changed, 28 insertions, 76 deletions
diff --git a/Master/texmf-dist/tex/latex/bezos/babeltools.sty b/Master/texmf-dist/tex/latex/bezos/babeltools.sty index 2818aa36519..a01d72e46f7 100644 --- a/Master/texmf-dist/tex/latex/bezos/babeltools.sty +++ b/Master/texmf-dist/tex/latex/bezos/babeltools.sty @@ -1,22 +1,13 @@ -% Copyright (c) 2010 by Javier Bezos. -% All Rights Reserved. % -% 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 Javier Bezos. +% Copyright (C) 2010-2019 Javier Bezos http://www.texnia.com +% +% This file may be distributed and/or modified under the conditions of +% the MIT License. A version can be found at the end of this file. % % TODO: % noshorthands -> shorthands=off, nocitations, nocrossrefs -\ProvidesPackage{babeltools}[2010/10/14 v0.2 Tools for the babel system (beta)] +\ProvidesPackage{babeltools}[2010/10/14 v1.1 Tools for the babel system (beta)] \edef\bbtl@savedcatcodes{% \catcode`\noexpand\~=\the\catcode`\~ @@ -48,19 +39,6 @@ \newcommand\BeforeBabel[1]{% \g@addto@macro\bbtl@beforebabelhook{#1}} -% Not to be redefined. The current value, saved by babel, is -% restored. More robust code is necessary, I think. - -\def\bbtl@restore@org#1{% - \@ifundefined{#1 }% Not robust? - {\expandafter\let\csname #1\expandafter\endcsname - \csname org@#1\endcsname}% - {\expandafter\let\csname #1 \expandafter\endcsname - \csname org@#1\endcsname}} - -\def\bbtl@save@org#1{% - \expandafter\let\csname org@#1\expandafter\endcsname - \csname #1\endcsname} % Citations and cross refs % ~~~~~~~~~~~~~~~~~~~~~~~~ @@ -84,18 +62,9 @@ \bbtl@restore@org{ref}% Robust \bbtl@restore@org{pageref}}}% Robust -% More cases are to be added, but they must be delayed at the end of -% begin document, because they are related to loaded packages (see -% babel.dtx) -% % Shorthands % ~~~~~~~~~~ -% Some languages use the shortand mechanism for tools not defined -% otherwise, so you can still use them with \babelshorthand{..}. -% Then you can use it conveniently to define your own macros. - -% ~ is an special case, as it's defined in babel.def - +% % New shorthands % -------------- @@ -179,38 +148,6 @@ {#1}% {\@nameuse{bbtl@@\languagename @@\bbtl@meaning\bbtl@tempa}}} -% Select -% ---------------------- -\let\bbtl@o@shorthands\@empty - -% TO DO: package options are expanded by LaTeX, and ~ raises -% an error, but not \string~. Is there a way to fix it? - -% This is done after 'adaptive', if present. - -\def\bbl@doshorthands{% - \let\bbtl@s@initiate@active@char\initiate@active@char - \def\initiate@active@char##1{% - \bbtl@ifshorthand{\string##1}% - {\bbtl@s@initiate@active@char{##1}}% - {}}% - \let\bbtl@s@declare@shorthand\declare@shorthand - \def\declare@shorthand##1##2{% - \bbtl@ifshorthand{\expandafter\string\@firstoftwo##2\@empty}% - {\bbtl@s@declare@shorthand{##1}{##2}}% - {\def\bbtl@tempa{##2}% - \@namedef{bbtl@@##1@@\bbtl@meaning\bbtl@tempa}}}% - \let\bbtl@s@activate\bbl@activate - \def\bbl@activate##1{% - \bbtl@ifshorthand{\string##1}% - {\bbtl@s@activate{##1}}% - {}}% - \let\bbtl@s@deactivate\bbl@deactivate - \def\bbl@deactivate##1{% - \bbtl@ifshorthand{\string##1}% - {\bbtl@s@deactivate{##1}}% - {}}} - % No config % ~~~~~~~~~ % Make sure an unexpected local config doesn't spoil your document. @@ -218,7 +155,7 @@ % use them \DeclareOption{noconfig} - {\AfterBabel{\let\loadlocalcfg\@gobble}} + {\PassOptionToPackage{babel}{noconfig}} % Captions % ~~~~~~~~ @@ -298,8 +235,6 @@ % shorthands=... option is handled here. -\show\bbtl@o@shorthands - \ifx\bbtl@o@shorthands\@empty\else \edef\bbtl@o@shorthands{\bbtl@meaning\bbtl@o@shorthands}% \bbtl@ifshorthand{'}% @@ -351,11 +286,28 @@ \endinput -============================== -============================== +MIT License +----------- + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -- Attributes? -- Quotes '' |