diff options
Diffstat (limited to 'macros/latex/contrib/babel-contrib/samin/samin.dtx')
-rw-r--r-- | macros/latex/contrib/babel-contrib/samin/samin.dtx | 75 |
1 files changed, 36 insertions, 39 deletions
diff --git a/macros/latex/contrib/babel-contrib/samin/samin.dtx b/macros/latex/contrib/babel-contrib/samin/samin.dtx index b3d951204c..bca9dffe90 100644 --- a/macros/latex/contrib/babel-contrib/samin/samin.dtx +++ b/macros/latex/contrib/babel-contrib/samin/samin.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors +% Copyright 1989-2024 Johannes L. Braams and any individual authors % listed elsewhere in this file. All rights reserved. % % This file is part of the Babel system. @@ -16,17 +16,12 @@ % % This work has the LPPL maintenance status "maintained". % -% The Current Maintainer of this work is Johannes Braams. -% -% The list of all files belonging to the Babel system is -% given in the file `manifest.bbl. See also `legal.bbl' for additional -% information. +% The Current Maintainer of this work is Javier Bezos % % 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. % \fi -% \CheckSum{120} % % \iffalse % Tell the \LaTeX\ system who we are and write an entry on the @@ -34,20 +29,19 @@ %<*dtx> \ProvidesFile{samin.dtx} %</dtx> -%<code>\ProvidesLanguage{samin} +%<code>\ProvidesLanguage{northernsami} +%<samin>\ProvidesLanguage{samin} %\fi %\ProvidesFile{samin.dtx} - [2004/02/20 v1.0c North Sami support from the babel system] + [2024/01/26 v1.0d Northern Sami support from the babel system] %\iffalse %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 -- 2004 +%% Copyright (C) 1989 -- 2024 %% by Johannes Braams, TeXniek -% -%% Please report errors to: J.L. Braams -%% babel at braams.cistron.nl +%% by Javier Bezos % % This file is part of the babel system, it provides the source code for -% the North Sami language definition file. +% the Northern Sami language definition file. %<*filedriver> \documentclass{ltxdoc} \newcommand*{\TeXhax}{\TeX hax} @@ -63,6 +57,8 @@ %\fi % \GetFileInfo{samin.dtx} % +% \changes{samin-1.0d}{2024/01/23}{Dual load northernsami/samin} +% % \section{The North Sami language} % % The file \file{\filename}\footnote{The file described in this @@ -113,9 +109,19 @@ % something here. % % \begin{macrocode} -\ifx\undefined\l@samin - \@nopatterns{Samin} - \adddialect\l@samin0\fi +\ifx\l@northernsami\@undefined + \ifx\l@samin\@undefined + \@nopatterns{Northern Sami} + \adddialect\l@northernsami\z@ + \let\l@samin\l@northernsami + \else + \let\l@northernsami\l@samin + \fi +\else + \ifx\l@samin\@undefined + \let\l@samin\l@northernsami + \fi +\fi % \end{macrocode} % % The next step consists of defining commands to switch to (and @@ -126,7 +132,7 @@ % parameters |\lefthyphenmin| and |\righthyphenmin|. % \changes{samin-1.0b}{2000/09/26}{use \cs{providehyphenmins}} % \begin{macrocode} -\providehyphenmins{samin}{\tw@\tw@} +\providehyphenmins{\CurrentOption}{\tw@\tw@} % \end{macrocode} % \end{macro} % @@ -137,7 +143,7 @@ % \changes{samin-1.0c}{2000/10/04}{Provided the translation for % glossary} % \begin{macrocode} -\def\captionssamin{% +\@namedef{captions\CurrentOption}{% \def\prefacename{Ovdas\'atni}% \def\refname{\v Cujuhusat}% \def\abstractname{\v Coahkk\'aigeassu}% @@ -167,7 +173,7 @@ % The macro |\datesamin| redefines the command |\today| to % produce North Sami dates. % \begin{macrocode} -\def\datesamin{% +\@namedef{date\CurrentOption}{% \def\today{\ifcase\month\or o\dj{}\dj{}ajagem\'anu\or guovvam\'anu\or @@ -197,8 +203,8 @@ % language definition files. % % \begin{macrocode} -\addto\extrassamin{} -\addto\noextrassamin{} +\expandafter\addto\csname extras\CurrentOption\endcsname{} +\expandafter\addto\csname noextras\CurrentOption\endcsname{} % \end{macrocode} % \end{macro} % \end{macro} @@ -208,25 +214,16 @@ % at |\begin{document}| and resetting the category code of % \texttt{@} to its original value. % \begin{macrocode} -\ldf@finish{samin} +\ldf@finish{\CurrentOption} %</code> +% Finally, We create a proxy file. +% +% \begin{macrocode} +%<*samin> +\input northernsami.ldf\relax +%</samin> % \end{macrocode} % % \Finale %\endinput -%% \CharacterTable -%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z -%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z -%% Digits \0\1\2\3\4\5\6\7\8\9 -%% Exclamation \! Double quote \" Hash (number) \# -%% Dollar \$ Percent \% Ampersand \& -%% Acute accent \' Left paren \( Right paren \) -%% Asterisk \* Plus \+ Comma \, -%% Minus \- Point \. Solidus \/ -%% Colon \: Semicolon \; Less than \< -%% Equals \= Greater than \> Question mark \? -%% Commercial at \@ Left bracket \[ Backslash \\ -%% Right bracket \] Circumflex \^ Underscore \_ -%% Grave accent \` Left brace \{ Vertical bar \| -%% Right brace \} Tilde \~} -%% + |