diff options
Diffstat (limited to 'Master/texmf-dist/source/generic/babel-welsh/welsh.dtx')
-rw-r--r-- | Master/texmf-dist/source/generic/babel-welsh/welsh.dtx | 100 |
1 files changed, 54 insertions, 46 deletions
diff --git a/Master/texmf-dist/source/generic/babel-welsh/welsh.dtx b/Master/texmf-dist/source/generic/babel-welsh/welsh.dtx index 95965fcfaed..d39ced66225 100644 --- a/Master/texmf-dist/source/generic/babel-welsh/welsh.dtx +++ b/Master/texmf-dist/source/generic/babel-welsh/welsh.dtx @@ -1,7 +1,8 @@ % \iffalse meta-comment % -% Copyright 1989-2005 Johannes L. Braams and any individual authors -% listed elsewhere in this file. All rights reserved. +% Copyright 1989-2015 Johannes L. Braams, Javier Bezos and any +% individual authors listed elsewhere in this file. All rights +% reserved. % % This file is part of the Babel system. % -------------------------------------- @@ -16,17 +17,17 @@ % % 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 +% given in the file `manifest.bbl. See also `legal.bbl' for additional % information. % % 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{97} +% \CheckSum{81} % % \iffalse % Tell the \LaTeX\ system who we are and write an entry on the @@ -37,15 +38,13 @@ %<code>\ProvidesLanguage{welsh} %\fi %\ProvidesFile{welsh.dtx} - [2005/03/31 v1.0d Welsh support from the babel system] + [2015/09/03 v1.1a Welsh support from the babel system] %\iffalse %% File `welsh.dtx' %% Babel package for LaTeX version 2e -%% Copyright (C) 1989 -- 2005 +%% Copyright (C) 1989 -- 2015 %% 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 Welsh language definition file. @@ -76,6 +75,8 @@ % % \StopEventually{} % +% \section{Code} +% % The macro |\ldf@init| takes care of preventing that this file is % loaded more than once, checking the category code of the % \texttt{@} sign, etc. @@ -114,34 +115,6 @@ % \changes{welsh-1.0c}{2000/09/20}{Added \cs{glossaryname}} % \changes{welsh-1.0d}{2005/03/31}{Provided the translation for % Glossary} -% \begin{macrocode} -\def\captionswelsh{% - \def\prefacename{Rhagair}% - \def\refname{Cyfeiriadau}% - \def\abstractname{Crynodeb}% - \def\bibname{Llyfryddiaeth}% - \def\chaptername{Pennod}% - \def\appendixname{Atodiad}% - \def\contentsname{Cynnwys}% - \def\listfigurename{Rhestr Ddarluniau}% - \def\listtablename{Rhestr Dablau}% - \def\indexname{Mynegai}% - \def\figurename{Darlun}% - \def\tablename{Taflen}% - \def\partname{Rhan}% - \def\enclname{amgae\"edig}% - \def\ccname{cop\"\i au}% - \def\headtoname{At}% % `at' on letters meaning `to ( a person)' - % `to (a place)' is `i' in Welsh - \def\pagename{tudalen}% - \def\seename{gweler}% - \def\alsoname{gweler hefyd}% - \def\proofname{Prawf}% - \def\glossaryname{Rhestr termau}% - } -% \end{macrocode} -% \end{macro} -% % \begin{macro}{\datewelsh} % The macro |\datewelsh| redefines the command |\today| to % produce welsh dates. @@ -151,15 +124,49 @@ % \cs{edef}} % \changes{welsh-1.0d}{2005/03/31}{removed `a viz' from the definition % of \cs{today}} +% \changes{welsh-1.1a}{2015/09/03}{Strings are defined in the 3.9 way. +% Also Unicode strings} % \begin{macrocode} -\def\datewelsh{% - \def\today{\ifnum\day=1\relax 1\/$^{\mathrm{a\tilde{n}}}$\else - \number\day\fi\space\ifcase\month\or - Ionawr\or Chwefror\or Mawrth\or Ebrill\or - Mai\or Mehefin\or Gorffennaf\or Awst\or - Medi\or Hydref\or Tachwedd\or Rhagfyr\fi - \space\number\year}} +\StartBabelCommands*{welsh}{captions} + [unicode, charset=utf8, fontenc=EU1 EU2] + \SetString{\enclname}{amgaeëdig} + \SetString{\ccname}{copï au} % \end{macrocode} +% +% And now, the generic branch, using the LICR and assuming T1. +% +% \begin{macrocode} +\StartBabelCommands*{welsh}{captions} + \SetString{\prefacename}{Rhagair} + \SetString{\refname}{Cyfeiriadau} + \SetString{\abstractname}{Crynodeb} + \SetString{\bibname}{Llyfryddiaeth} + \SetString{\chaptername}{Pennod} + \SetString{\appendixname}{Atodiad} + \SetString{\contentsname}{Cynnwys} + \SetString{\listfigurename}{Rhestr Ddarluniau} + \SetString{\listtablename}{Rhestr Dablau} + \SetString{\indexname}{Mynegai} + \SetString{\figurename}{Darlun} + \SetString{\tablename}{Taflen} + \SetString{\partname}{Rhan} + \SetString{\enclname}{amgae\"edig} + \SetString{\ccname}{cop\"\i au} + \SetString{\headtoname}{At} + \SetString{\pagename}{tudalen} + \SetString{\seename}{gweler} + \SetString{\alsoname}{gweler hefyd} + \SetString{\proofname}{Prawf} + \SetString{\glossaryname}{Rhestr termau} +\StartBabelCommands*{welsh}{date} + \SetStringLoop{month#1name}{% + Ionawr,Chwefror,Mawrth,Ebrill,Mai,Mehefin,% + Gorffennaf,Awst,Medi,Hydref,Tachwedd,Rhagfyr} + \SetString\today{% + {\number\day} \@nameuse{month\romannumeral\month name} {\number\year}} +\EndBabelCommands +% \end{macrocode} +% \end{macro} % \end{macro} % % \begin{macro}{\extraswelsh} @@ -184,6 +191,7 @@ % \texttt{@} to its original value. % \begin{macrocode} \ldf@finish{welsh} +\endinput %</code> % \end{macrocode} % @@ -204,4 +212,4 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -%% +\endinput |