From 038b125b57620c4bc3d908e8e22035040d2583cf Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Wed, 25 Jun 2008 12:55:51 +0000 Subject: isodate update, entring tlpkg-ctan-check git-svn-id: svn://tug.org/texlive/trunk@9042 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/isodate/ChangeLog | 4 + Master/texmf-dist/doc/latex/isodate/README | 4 - Master/texmf-dist/doc/latex/isodate/install.bat | 50 ----- Master/texmf-dist/doc/latex/isodate/install.sh | 48 ----- Master/texmf-dist/doc/latex/isodate/isodate.pdf | Bin 242045 -> 246336 bytes Master/texmf-dist/doc/latex/isodate/isodate.xml | 6 +- Master/texmf-dist/doc/latex/isodate/testdate.pdf | Bin 86628 -> 89120 bytes Master/texmf-dist/doc/latex/isodate/testdate.tex | 7 +- .../latex/isodate/testisodate_without_babel.pdf | Bin 11499 -> 0 bytes Master/texmf-dist/source/latex/isodate/isodate.dtx | 211 +++++++++++++++++++-- Master/texmf-dist/source/latex/isodate/isodate.ins | 1 + Master/texmf-dist/tex/latex/isodate/danish.idf | 2 +- Master/texmf-dist/tex/latex/isodate/english.idf | 25 ++- Master/texmf-dist/tex/latex/isodate/french.idf | 2 +- Master/texmf-dist/tex/latex/isodate/german.idf | 2 +- Master/texmf-dist/tex/latex/isodate/isodate.sty | 22 ++- Master/texmf-dist/tex/latex/isodate/italian.idf | 96 ++++++++++ Master/texmf-dist/tex/latex/isodate/norsk.idf | 2 +- Master/texmf-dist/tex/latex/isodate/swedish.idf | 2 +- 19 files changed, 334 insertions(+), 150 deletions(-) delete mode 100644 Master/texmf-dist/doc/latex/isodate/install.bat delete mode 100755 Master/texmf-dist/doc/latex/isodate/install.sh delete mode 100644 Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.pdf create mode 100644 Master/texmf-dist/tex/latex/isodate/italian.idf (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/isodate/ChangeLog b/Master/texmf-dist/doc/latex/isodate/ChangeLog index 1e0ea150c46..3d9722aff32 100644 --- a/Master/texmf-dist/doc/latex/isodate/ChangeLog +++ b/Master/texmf-dist/doc/latex/isodate/ChangeLog @@ -1,3 +1,7 @@ +2005/04/15 v2.28 Harald Harders (h.harders@tu-bs.de) + - Add Italian language by Philip Ratcliffe. + - Introduce option cleanlook for English date format. + 2005/03/11 v2.27 Harald Harders (h.harders@tu-bs.de) - Add option british. diff --git a/Master/texmf-dist/doc/latex/isodate/README b/Master/texmf-dist/doc/latex/isodate/README index 0a43d34fa9c..656020c7509 100644 --- a/Master/texmf-dist/doc/latex/isodate/README +++ b/Master/texmf-dist/doc/latex/isodate/README @@ -23,10 +23,6 @@ The command \daterange prints a date range and leaves out unnecessary year or month entries. E.g. 2000-05-03 to 2000-05-08 leads to `2000-05-03 to 08'. -This package supports Danish, English (UK, US, Australian, New Zealand), -French, German (old and new orthography, Austrian), Norwegian (by Svend -Tollak Munkejord), and Swedish (by Christian Schlauer). - The idea for this package was taken from the akletter class. diff --git a/Master/texmf-dist/doc/latex/isodate/install.bat b/Master/texmf-dist/doc/latex/isodate/install.bat deleted file mode 100644 index 5c169c27781..00000000000 --- a/Master/texmf-dist/doc/latex/isodate/install.bat +++ /dev/null @@ -1,50 +0,0 @@ -rem This file is not tested due to not having DOS or Windows - -rem Generate package file -latex isodate.ins -latex isodateo.ins - -rem Generate documentation -latex isodate.dtx -latex isodate.dtx -makeindex -s gind.ist isodate -makeindex -s gglo.ist -o isodate.gls isodate.glo -latex isodate.dtx -dvips -o isodate.ps isodate -del isodate.glo -del isodate.gls -del isodate.idx -del isodate.ilg -del isodate.ind -del isodate.aux -del isodate.log -del isodate.toc - -latex isodateo.dtx -latex isodateo.dtx -makeindex -s gind.ist isodateo -makeindex -s gglo.ist -o isodateo.gls isodateo.glo -latex isodateo.dtx -dvips -o isodateo.ps isodateo -del isodateo.glo -del isodateo.gls -del isodateo.idx -del isodateo.ilg -del isodateo.ind -del isodateo.aux -del isodateo.log -del isodateo.toc - -rem Generate example -latex testdate -dvips -o testdate.ps testdate -del testdate.aux -del testdate.log - -rem test the package -latex tstlang - -echo . -echo . -echo "Please copy isodate.sty, *.idf, and isodateo.sty to a directory" -echo "in the LaTeX search path" diff --git a/Master/texmf-dist/doc/latex/isodate/install.sh b/Master/texmf-dist/doc/latex/isodate/install.sh deleted file mode 100755 index 72e1fd03d34..00000000000 --- a/Master/texmf-dist/doc/latex/isodate/install.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -if [ -z `kpsewhich substr.sty` ] -then - echo - echo "Error installing isodate:" - echo "This version of isodate needs the package substr.sty" - echo "which cannot be found in your system." - echo - echo "Please download it from CTAN:/macros/latex/contrib/supported/substr/." - echo "One of the possible CTAN nodes is ftp.dante.de." - echo "Try to execute install.sh after installing substr.sty again." - echo - exit -fi - -# Generate package files -latex isodate.ins -latex isodateo.ins - -# Generate documentation -latex isodate.dtx -latex isodate.dtx -makeindex -s gind.ist isodate -makeindex -s gglo.ist -o isodate.gls isodate.glo -latex isodate.dtx -dvips -o isodate.ps isodate -rm isodate.{glo,gls,idx,ilg,ind,aux,log,toc} - -latex isodateo.dtx -latex isodateo.dtx -makeindex -s gind.ist isodateo -makeindex -s gglo.ist -o isodateo.gls isodateo.glo -latex isodateo.dtx -dvips -o isodateo.ps isodateo -rm isodateo.{glo,gls,idx,ilg,ind,aux,log,toc} - -# Generate example -latex testdate -dvips -o testdate.ps testdate -rm testdate.{aux,log} - -# test the package -latex tstlang - -echo -echo -echo "Please copy isodate.sty, *.idf, and isodateo.sty to a directory" -echo "in the LaTeX search path" diff --git a/Master/texmf-dist/doc/latex/isodate/isodate.pdf b/Master/texmf-dist/doc/latex/isodate/isodate.pdf index 117c3f2ef8e..1d6a2afd445 100644 Binary files a/Master/texmf-dist/doc/latex/isodate/isodate.pdf and b/Master/texmf-dist/doc/latex/isodate/isodate.pdf differ diff --git a/Master/texmf-dist/doc/latex/isodate/isodate.xml b/Master/texmf-dist/doc/latex/isodate/isodate.xml index 93e6de239bc..80f2a95797c 100644 --- a/Master/texmf-dist/doc/latex/isodate/isodate.xml +++ b/Master/texmf-dist/doc/latex/isodate/isodate.xml @@ -1,7 +1,7 @@ isodate @@ -12,7 +12,7 @@ - 2.27 + 2.28 @@ -27,8 +27,6 @@ The commands \printdate and \printdateTeX print any date. The command \daterange prints a date range and leaves out unnecessary year or month entries. - This package supports German (old and new rules, Austrian), US - English, French, Danish, Swedish, and Norwegian. http://www.act.cmis.csiro.au/gjw/tex/docs/isodate.pdf diff --git a/Master/texmf-dist/doc/latex/isodate/testdate.pdf b/Master/texmf-dist/doc/latex/isodate/testdate.pdf index 7aa5112cb25..193cd75f042 100644 Binary files a/Master/texmf-dist/doc/latex/isodate/testdate.pdf and b/Master/texmf-dist/doc/latex/isodate/testdate.pdf differ diff --git a/Master/texmf-dist/doc/latex/isodate/testdate.tex b/Master/texmf-dist/doc/latex/isodate/testdate.tex index c7d8086589c..59daa5676b2 100644 --- a/Master/texmf-dist/doc/latex/isodate/testdate.tex +++ b/Master/texmf-dist/doc/latex/isodate/testdate.tex @@ -1,10 +1,10 @@ -\documentclass[spanish,swedish,norsk,danish,french,USenglish,english,newzealand,naustrian,ngerman,a4paper,fleqn,11pt]{article} +\documentclass[spanish,swedish,norsk,italian,danish,french,USenglish,english,newzealand,naustrian,ngerman,a4paper,fleqn,11pt]{article} \usepackage[T1]{fontenc} \usepackage{babel} -\usepackage[iso]{isodate} +\usepackage[iso,cleanlook]{isodate} %\usepackage{ngerman} %\usepackage{bibgerm} -\shortyearsign{'} +%\shortyearsign{'} %\printyearoff \setlength{\parindent}{0mm} @@ -83,6 +83,7 @@ %\example{american} \example{french} \example{danish} +\example{italian} \example{norsk} \example{swedish} \example[ (not defined in isodate)]{spanish} diff --git a/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.pdf b/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.pdf deleted file mode 100644 index 03a55b4db37..00000000000 Binary files a/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.pdf and /dev/null differ diff --git a/Master/texmf-dist/source/latex/isodate/isodate.dtx b/Master/texmf-dist/source/latex/isodate/isodate.dtx index 6d419e12145..6d657256e9b 100644 --- a/Master/texmf-dist/source/latex/isodate/isodate.dtx +++ b/Master/texmf-dist/source/latex/isodate/isodate.dtx @@ -44,7 +44,7 @@ \DoNotIndex{\begingroup,\endgroup,\begin,\end,\CurrentOption} \CodelineNumbered \RecordChanges -\CheckSum{2244} +\CheckSum{2471} \begin{document} \DocInput{isodate.dtx} \end{document} @@ -86,7 +86,7 @@ % Zealand English,\footnote{In order to use Australian or New Zealand, % you need a version of babel that supports the used language. It % should be available, soon.} -% French, Danish, Swedish, and Norwegian. +% French, Italian, Danish, Swedish, and Norwegian. % % The idea for this package was taken from the akletter class. % \end{abstract} @@ -103,7 +103,7 @@ % \verb|babel|. He also helped me to improve the documentation and % sent me a link to the ISO 8601 norm \cite{iso8601a}. % Svend Tollak Munkejord has added the Norwegian language, Christian -% Schlauer has added Swedish. +% Schlauer has added Swedish, Philip Ratcliffe has added Italian. % % \section*{Requirements} % @@ -174,7 +174,7 @@ % \end{tabular} % % This package supports German (old and new rules, Austrian), US -% English, French, Danish, Swedish, and Norwegian. +% English, French, Danish, Italian, Swedish, and Norwegian. % Switching the language by using \verb|\selectlanguage| does \emph{not} % switch back to the original date format. So the current date format % stays active when changing the language. @@ -328,6 +328,28 @@ % and ``|~|'' in the long format. % % +% \subsection{Changing the English format} +% +% \changes{2.28}{2005/04/15}{Introduce option cleanlook for English +% date format}% +% By default, the English date format looks like ``24th December +% 2000''. +% During the last years, a change has occured in many documents +% towards ``24 December 2000''. +% This new format is called ``clean look''. +% \DescribeMacro{\cleanlookdateon}% +% \DescribeMacro{\cleanlookdateoff}% +% Isodate's behaviour can be changed towards it using +% \cs{cleanlookdateon} and \cs{cleanlookdateoff}. +% This can also be done globally using the |cleanlook| package option. +% +% At the moment, the ``clean look'' functionality only affects British +% English. +% If this trend also counts for different languages, please tell it me +% that I can add support for them. +% +% +% % \subsection{User defined month formatting} % % Internally, the formats using Roman numerals for the month are just @@ -479,6 +501,7 @@ % \verb|german|&support German date format\\ % \verb|naustrian|&support new Austrian date format\\ % \verb|ngerman|&support new German date format\\ +% \verb|italian|&support Italian date format\\ % \verb|norsk|&support Norwegian date format\\ % \verb|norwegian|&support Norwegian date format\\ % \verb|swedish|&support Swedish date format\\ @@ -495,6 +518,9 @@ % \verb|inputlatex|& \TeX\ date input format\\ % \verb|inputLaTeX|& \TeX\ date input format\\ % \hline +% \verb|cleanlook|&use ``clean look'' for English dates\\ +% \verb|nocleanlook|&don't use ``clean look'' for English dates\\ +% \hline % \end{tabular} % \end{minipage} % \end{table} @@ -630,10 +656,11 @@ %\ProvidesFile{english.idf} %\ProvidesFile{french.idf} %\ProvidesFile{german.idf} +%\ProvidesFile{italian.idf} %\ProvidesFile{norsk.idf} %\ProvidesFile{swedish.idf} -% [2005/03/11 v2.27 Print dates with different formats (HH)] -% [2005/03/11 v2.27 Language definitions for isodate package (HH)] +% [2005/04/15 v2.28 Print dates with different formats (HH)] +% [2005/04/15 v2.28 Language definitions for isodate package (HH)] % \end{macrocode} % The package: % \begin{macrocode} @@ -662,6 +689,8 @@ \DeclareOption{roman}{\AtEndOfPackage{\romandate}} \DeclareOption{shortRoman}{\AtEndOfPackage{\shortRomandate}} \DeclareOption{shortroman}{\AtEndOfPackage{\shortromandate}} +\DeclareOption{cleanlook}{\AtEndOfPackage{\cleanlookdateon}} +\DeclareOption{nocleanlook}{\AtEndOfPackage{\cleanlookdateoff}} % \end{macrocode} % \changes{2.26}{2005/03/10}{Support different input formats % containing slashes}% @@ -678,7 +707,7 @@ \DeclareOption{inputLaTeX}{\AtEndOfPackage{\dateinputformat{tex}}} % \end{macrocode} % Declare the options for language support. -% \changes{2.07}{2003/07/29}{Added Swedish language}% +% \changes{2.07}{2003/07/29}{Add Swedish language}% % \changes{2.20}{2003/12/06}{Add Australian and New Zealand}% % \changes{2.24}{2005/02/17}{Add option frenchb}% % \changes{2.26}{2005/03/10}{Add option british}% @@ -692,6 +721,7 @@ \DeclareOption{french}{\input{french.idf}} \DeclareOption{frenchb}{\input{french.idf}} \DeclareOption{german}{\input{german.idf}} +\DeclareOption{italian}{\input{italian.idf}} \DeclareOption{naustrian}{\input{german.idf}} \DeclareOption{newzealand}{\input{english.idf}} \DeclareOption{ngerman}{\input{german.idf}} @@ -713,7 +743,7 @@ % \end{macrocode} % Set default option to \verb|orig|. % \begin{macrocode} -\ExecuteOptions{orig} +\ExecuteOptions{orig,nocleanlook} % \end{macrocode} % Process the options. % \begin{macrocode} @@ -1013,6 +1043,20 @@ % \end{macrocode} % \end{macro} % \end{macro} +% \begin{macro}{\cleanlookdateoff} +% \begin{macro}{\cleanlookdateon} +% \changes{2.28}{2005/04/15}{Introduce option cleanlook for English +% date format}% +% Switch on or off ``clean look'' for English dates. +% Default is not to use ``clean look''. +% \begin{macrocode} +\newif\ifiso@cleanlook +\DeclareRobustCommand*\cleanlookdateon{\iso@cleanlooktrue} +\DeclareRobustCommand*\cleanlookdateoff{\iso@cleanlookfalse} +\cleanlookdateoff +% \end{macrocode} +% \end{macro} +% \end{macro} % \begin{macro}{\iso@printdate} % Defines the command \verb|iso@printdate| which takes three arguments % (year, month, day) and prints the date by using the \cs{today} command. @@ -1027,7 +1071,7 @@ \@ifundefined{iso@printdate@\iso@languagename}{% \PackageWarning{isodate}{Language \iso@languagename\space unknown to isodate.\MessageBreak - Using default format.}% + Using default format}% }{}% % \end{macrocode} % \changes{2.25}{2005/02/21}{Changed \cs{year}, \cs{month}, and @@ -1237,7 +1281,8 @@ \@ifundefined{iso@daterange@\iso@languagename}{% \PackageWarning{isodate}{Language \iso@languagename\space unknown to isodate.\MessageBreak - Using default date range with range sign --.}% + Using default date range\MessageBreak + with range sign --}% \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% % \end{macrocode} % \changes{2.25}{2005/02/21}{Fall-back format for unknown languages}% @@ -1271,7 +1316,8 @@ \@ifundefined{iso@daterange@\iso@languagename}{% \PackageWarning{isodate}{Language \iso@languagename\space unknown to isodate.\MessageBreak - Using default date range with range sign --.}% + Using default date range\MessageBreak + with range sign --}% \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% % \end{macrocode} % \changes{2.25}{2005/02/21}{Fall-back format for unknown languages}% @@ -1305,7 +1351,8 @@ \@ifundefined{iso@daterange@\iso@languagename}{% \PackageWarning{isodate}{Language \iso@languagename\space unknown to isodate.\MessageBreak - Using default date range with range sign --.}% + Using default date range\MessageBreak + with range sign --}% \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% % \end{macrocode} % \changes{2.26}{2005/03/10}{Support different input formats @@ -1634,16 +1681,25 @@ \typeout{Define commands for English date format} % \end{macrocode} % \begin{macro}{\day@english} +% \changes{2.28}{2005/04/15}{Introduce option cleanlook for English +% date format}% % Prints today's day for the original date format. % \begin{macrocode} - \def\day@english{\ifcase\day\or - 1st\or 2nd\or 3rd\or 4th\or 5th\or - 6th\or 7th\or 8th\or 9th\or 10th\or - 11th\or 12th\or 13th\or 14th\or 15th\or - 16th\or 17th\or 18th\or 19th\or 20th\or - 21st\or 22nd\or 23rd\or 24th\or 25th\or - 26th\or 27th\or 28th\or 29th\or 30th\or - 31st\fi} + \def\day@english{% + \ifiso@cleanlook + \day + \else + \ifcase\day\or + 1st\or 2nd\or 3rd\or 4th\or 5th\or + 6th\or 7th\or 8th\or 9th\or 10th\or + 11th\or 12th\or 13th\or 14th\or 15th\or + 16th\or 17th\or 18th\or 19th\or 20th\or + 21st\or 22nd\or 23rd\or 24th\or 25th\or + 26th\or 27th\or 28th\or 29th\or 30th\or + 31st% + \fi + \fi + } % \end{macrocode} % \end{macro} % \begin{macro}{\iso@printmonthday@english} @@ -2519,6 +2575,119 @@ % % \end{macrocode} % +% \subsection{Language definition file italian.idf} +% \changes{2.28}{2005/04/15}{Add Italian language by Philip Ratcliffe}% +% +% \begin{macro}{\iso@languageloaded} +% Define the command \verb|\iso@languageloaded| in order to enable +% \verb|isodate.sty| to determine if at least one language is loaded. +% \begin{macrocode} +%<*italian> +\let\iso@languageloaded\active +\typeout{Define commands for Italian date format} +% \end{macrocode} +% \end{macro} +% \begin{macrocode} +\def\month@italian{\ifcase\month\or + gennaio\or febbraio\or marzo\or aprile\or maggio\or giugno\or + luglio\or agosto\or settembre\or ottobre\or novembre\or + dicembre\fi} +% \end{macrocode} +% \begin{macrocode} +\def\iso@printmonthday@italian#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \ifiso@printyear\iso@isodash\fi\iso@printmonth{#1}% + \iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear/\fi\iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \begingroup + \edef\lday{#2}\edef\day{\lday}% + \edef\lmonth{#1}\def\month{\lmonth}% + \number\day\ifnum1=\day \noexpand\textordmasculine\fi~\month@italian% + \endgroup + }{}}}}% + } +% \end{macrocode} +% \begin{macrocode} +\def\iso@printdate@italian#1#2#3{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear\iso@yearfour{\number#1}\fi}{}% + \iso@printmonthday@italian{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{}}}}% + \fi +} +% \end{macrocode} +% \begin{macrocode} +\def\iso@dateitalian{% + \def\today{\iso@printdate@italian{\year}{\month}{\day}}}% +% \end{macrocode} +% \begin{macro}{\iso@daterange@...} +% Define date-range commands for dialects. +% \begin{macrocode} + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@italian}% +% \end{macrocode} +% \end{macro} +% \begin{macrocode} +\def\iso@daterange@italian#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}% + \iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@italian{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}}{% +% \end{macrocode} +% \begin{macrocode} + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{% + \begingroup + \edef\lday{#3}\edef\day{\lday}% + \number\day\ifnum1=\day \noexpand\textordmasculine\fi + \endgroup}{\iso@printday{#3}}% + }{\iso@printmonthday@italian{#2}{#3}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% +}{% + }% +} +% \end{macrocode} +% \begin{macrocode} +\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~al~} +% \end{macrocode} +% Define the language name that will the active language for isodate +% if none of the packages babel.sty, german.sty, and ngerman.sty is +% loaded and if this is the last language that is used for isodate. +% If one of the above packages is used this definition will be +% overridden by the command \verb|\languagename| that will always +% return the current used language. +% \begin{macrocode} +\def\iso@languagename{italian}% +% \end{macrocode} +% \begin{macrocode} +\AtBeginDocument{% + \ifx\undefined\iso@dateitalian\else + \def\dateitalian{\iso@dateitalian}% + \fi +} +% +% \end{macrocode} +% % \changes{2.02}{2001/04/30}{Added Norwegian language by Svend Tollak % Munkejord} % \subsection{Language definition file norsk.idf} @@ -2709,7 +2878,7 @@ % % \end{macrocode} % -% \changes{2.07}{2003/07/29}{Added Swedish language by Christian +% \changes{2.07}{2003/07/29}{Add Swedish language by Christian % Schlauer} % \subsection{Language definition file swedish.idf} % \changes{2.26}{2005/03/10}{Force year in four digits for long formats}% diff --git a/Master/texmf-dist/source/latex/isodate/isodate.ins b/Master/texmf-dist/source/latex/isodate/isodate.ins index d7e2099d71d..81aff73ea62 100644 --- a/Master/texmf-dist/source/latex/isodate/isodate.ins +++ b/Master/texmf-dist/source/latex/isodate/isodate.ins @@ -24,6 +24,7 @@ \file{english.idf}{\from{isodate.dtx}{language,english}}% \file{french.idf}{\from{isodate.dtx}{language,french}}% \file{german.idf}{\from{isodate.dtx}{language,german}}% + \file{italian.idf}{\from{isodate.dtx}{language,italian}}% \file{norsk.idf}{\from{isodate.dtx}{language,norsk}}% \file{swedish.idf}{\from{isodate.dtx}{language,swedish}}% \file{isodateo.sty}{\from{isodateo.dtx}{package}}% diff --git a/Master/texmf-dist/tex/latex/isodate/danish.idf b/Master/texmf-dist/tex/latex/isodate/danish.idf index 2d2d9949668..bcf1a2bc9a4 100644 --- a/Master/texmf-dist/tex/latex/isodate/danish.idf +++ b/Master/texmf-dist/tex/latex/isodate/danish.idf @@ -18,7 +18,7 @@ %% h.harders@tu-bs.de %% \ProvidesFile{danish.idf} - [2005/03/11 v2.27 Language definitions for isodate package (HH)] + [2005/04/15 v2.28 Language definitions for isodate package (HH)] \let\iso@languageloaded\active \typeout{Define commands for Danish date format} \def\month@danish{\ifcase\month\or diff --git a/Master/texmf-dist/tex/latex/isodate/english.idf b/Master/texmf-dist/tex/latex/isodate/english.idf index f29a1d25e32..204600fcf11 100644 --- a/Master/texmf-dist/tex/latex/isodate/english.idf +++ b/Master/texmf-dist/tex/latex/isodate/english.idf @@ -18,7 +18,7 @@ %% h.harders@tu-bs.de %% \ProvidesFile{english.idf} - [2005/03/11 v2.27 Language definitions for isodate package (HH)] + [2005/04/15 v2.28 Language definitions for isodate package (HH)] \let\iso@languageloaded\active \def\month@english{\ifcase\month\or January\or February\or March\or April\or May\or June\or @@ -27,14 +27,21 @@ \equal{\CurrentOption}{british}\or \equal{\CurrentOption}{UKenglish}}{% \typeout{Define commands for English date format} - \def\day@english{\ifcase\day\or - 1st\or 2nd\or 3rd\or 4th\or 5th\or - 6th\or 7th\or 8th\or 9th\or 10th\or - 11th\or 12th\or 13th\or 14th\or 15th\or - 16th\or 17th\or 18th\or 19th\or 20th\or - 21st\or 22nd\or 23rd\or 24th\or 25th\or - 26th\or 27th\or 28th\or 29th\or 30th\or - 31st\fi} + \def\day@english{% + \ifiso@cleanlook + \day + \else + \ifcase\day\or + 1st\or 2nd\or 3rd\or 4th\or 5th\or + 6th\or 7th\or 8th\or 9th\or 10th\or + 11th\or 12th\or 13th\or 14th\or 15th\or + 16th\or 17th\or 18th\or 19th\or 20th\or + 21st\or 22nd\or 23rd\or 24th\or 25th\or + 26th\or 27th\or 28th\or 29th\or 30th\or + 31st% + \fi + \fi + } \def\iso@printmonthday@english#1#2{% \ifthenelse{\equal{\iso@dateformat}{numeric}\or% \equal{\iso@dateformat}{short}}{% diff --git a/Master/texmf-dist/tex/latex/isodate/french.idf b/Master/texmf-dist/tex/latex/isodate/french.idf index 6afd1fcfe8a..2a85daaf1bf 100644 --- a/Master/texmf-dist/tex/latex/isodate/french.idf +++ b/Master/texmf-dist/tex/latex/isodate/french.idf @@ -18,7 +18,7 @@ %% h.harders@tu-bs.de %% \ProvidesFile{french.idf} - [2005/03/11 v2.27 Language definitions for isodate package (HH)] + [2005/04/15 v2.28 Language definitions for isodate package (HH)] \let\iso@languageloaded\active \typeout{Define commands for French date format} \def\month@french{\ifcase\month\or diff --git a/Master/texmf-dist/tex/latex/isodate/german.idf b/Master/texmf-dist/tex/latex/isodate/german.idf index 730ad12879a..a9c08a5bb41 100644 --- a/Master/texmf-dist/tex/latex/isodate/german.idf +++ b/Master/texmf-dist/tex/latex/isodate/german.idf @@ -18,7 +18,7 @@ %% h.harders@tu-bs.de %% \ProvidesFile{german.idf} - [2005/03/11 v2.27 Language definitions for isodate package (HH)] + [2005/04/15 v2.28 Language definitions for isodate package (HH)] \let\iso@languageloaded\active \typeout{Define commands for German date format (\CurrentOption)} \def\iso@dmsepgerman{\,}% diff --git a/Master/texmf-dist/tex/latex/isodate/isodate.sty b/Master/texmf-dist/tex/latex/isodate/isodate.sty index 958d0628046..8d631358199 100644 --- a/Master/texmf-dist/tex/latex/isodate/isodate.sty +++ b/Master/texmf-dist/tex/latex/isodate/isodate.sty @@ -19,7 +19,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{isodate} - [2005/03/11 v2.27 Print dates with different formats (HH)] + [2005/04/15 v2.28 Print dates with different formats (HH)] \RequirePackage{ifthen} \IfFileExists{substr.sty}{\RequirePackage{substr}% }{\PackageError{isodate.sty}{Package file substr.sty not found} @@ -38,6 +38,8 @@ \DeclareOption{roman}{\AtEndOfPackage{\romandate}} \DeclareOption{shortRoman}{\AtEndOfPackage{\shortRomandate}} \DeclareOption{shortroman}{\AtEndOfPackage{\shortromandate}} +\DeclareOption{cleanlook}{\AtEndOfPackage{\cleanlookdateon}} +\DeclareOption{nocleanlook}{\AtEndOfPackage{\cleanlookdateoff}} \DeclareOption{inputenglish}{\AtEndOfPackage{\dateinputformat{english}}} \DeclareOption{inputbritish}{\AtEndOfPackage{\dateinputformat{english}}} \DeclareOption{inputUKenglish}{\AtEndOfPackage{\dateinputformat{english}}} @@ -56,6 +58,7 @@ \DeclareOption{french}{\input{french.idf}} \DeclareOption{frenchb}{\input{french.idf}} \DeclareOption{german}{\input{german.idf}} +\DeclareOption{italian}{\input{italian.idf}} \DeclareOption{naustrian}{\input{german.idf}} \DeclareOption{newzealand}{\input{english.idf}} \DeclareOption{ngerman}{\input{german.idf}} @@ -70,7 +73,7 @@ Isodate definition file \CurrentOption.idf not found}{% Maybe you misspelled the language option?}}% } -\ExecuteOptions{orig} +\ExecuteOptions{orig,nocleanlook} \ProcessOptions* \ifx\iso@languageloaded\@undefined \PackageError{isodate}{% @@ -197,12 +200,16 @@ \DeclareRobustCommand*\printyearon{\iso@printyeartrue} \DeclareRobustCommand*\printyearoff{\iso@printyearfalse} \printyearon +\newif\ifiso@cleanlook +\DeclareRobustCommand*\cleanlookdateon{\iso@cleanlooktrue} +\DeclareRobustCommand*\cleanlookdateoff{\iso@cleanlookfalse} +\cleanlookdateoff \newcommand*\iso@printdate[3]{% \begingroup% \@ifundefined{iso@printdate@\iso@languagename}{% \PackageWarning{isodate}{Language \iso@languagename\space unknown to isodate.\MessageBreak - Using default format.}% + Using default format}% }{}% \year=#1 % \month=#2 % @@ -292,7 +299,8 @@ \@ifundefined{iso@daterange@\iso@languagename}{% \PackageWarning{isodate}{Language \iso@languagename\space unknown to isodate.\MessageBreak - Using default date range with range sign --.}% + Using default date range\MessageBreak + with range sign --}% \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% \iso@printdate{#1}{#2}{#3}--\iso@printdate{#4}{#5}{#6}% }{% @@ -307,7 +315,8 @@ \@ifundefined{iso@daterange@\iso@languagename}{% \PackageWarning{isodate}{Language \iso@languagename\space unknown to isodate.\MessageBreak - Using default date range with range sign --.}% + Using default date range\MessageBreak + with range sign --}% \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% \iso@printdate{#3}{#2}{#1}--\iso@printdate{#6}{#5}{#4}% }{% @@ -322,7 +331,8 @@ \@ifundefined{iso@daterange@\iso@languagename}{% \PackageWarning{isodate}{Language \iso@languagename\space unknown to isodate.\MessageBreak - Using default date range with range sign --.}% + Using default date range\MessageBreak + with range sign --}% \expandafter\def\csname iso@printdate@\iso@languagename\endcsname{}% \ifthenelse{\equal{\iso@inputformat}{tex}}{% \iso@printdate{#1}{#2}{#3}--\iso@printdate{#4}{#5}{#6}% diff --git a/Master/texmf-dist/tex/latex/isodate/italian.idf b/Master/texmf-dist/tex/latex/isodate/italian.idf new file mode 100644 index 00000000000..b010384eee2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/isodate/italian.idf @@ -0,0 +1,96 @@ +%% +%% This is file `italian.idf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% isodate.dtx (with options: `language,italian') +%% +%% isodate package +%% +%% Copyright 2000--2005 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{italian.idf} + [2005/04/15 v2.28 Language definitions for isodate package (HH)] +\let\iso@languageloaded\active +\typeout{Define commands for Italian date format} +\def\month@italian{\ifcase\month\or + gennaio\or febbraio\or marzo\or aprile\or maggio\or giugno\or + luglio\or agosto\or settembre\or ottobre\or novembre\or + dicembre\fi} +\def\iso@printmonthday@italian#1#2{% + \ifthenelse{\equal{\iso@dateformat}{numeric}\or% + \equal{\iso@dateformat}{short}}{% + \iso@printday{#2}/\iso@printmonth{#1}\ifiso@printyear/\fi}{% + \ifthenelse{\equal{\iso@dateformat}{iso}}{% + \ifiso@printyear\iso@isodash\fi\iso@printmonth{#1}% + \iso@isodash\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear/\fi\iso@printmonth{#1}/\iso@printday{#2}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}\or + \equal{\iso@dateformat}{shortorig}}{% + \begingroup + \edef\lday{#2}\edef\day{\lday}% + \edef\lmonth{#1}\def\month{\lmonth}% + \number\day\ifnum1=\day \noexpand\textordmasculine\fi~\month@italian% + \endgroup + }{}}}}% + } +\def\iso@printdate@italian#1#2#3{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \ifiso@printyear\iso@yearfour{\number#1}\fi}{}% + \iso@printmonthday@italian{\number#2}{\number#3}% + \ifiso@printyear + \ifthenelse{\equal{\iso@dateformat}{numeric}}{\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{~\iso@yearfour{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{shortorig}}{% + ~\iso@twodigitsign\iso@yeartwo{\number#1}}{% + \ifthenelse{\equal{\iso@dateformat}{short}}{% + \iso@yeartwo{\number#1}}{}}}}% + \fi +} +\def\iso@dateitalian{% + \def\today{\iso@printdate@italian{\year}{\month}{\day}}}% + \expandafter\def\csname iso@daterange@\CurrentOption\endcsname{% + \iso@daterange@italian}% +\def\iso@daterange@italian#1#2#3#4#5#6{% + \ifthenelse{\equal{\iso@dateformat}{iso}\or% + \equal{\iso@dateformat}{TeX}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}% + \iso@rangesign% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{\iso@printday{#6}% + }{\iso@printmonthday@italian{#5}{#6}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#4}{#5}{#6}}}{% + \ifthenelse{\equal{\number#1}{\number#4}}{% + \ifthenelse{\equal{\number#2}{\number#5}}{% + \ifthenelse{\equal{\iso@dateformat}{orig}}{% + \begingroup + \edef\lday{#3}\edef\day{\lday}% + \number\day\ifnum1=\day \noexpand\textordmasculine\fi + \endgroup}{\iso@printday{#3}}% + }{\iso@printmonthday@italian{#2}{#3}}}{% + \csname iso@printdate@\iso@languagename\endcsname{#1}{#2}{#3}}% + \iso@rangesign\csname iso@printdate@\iso@languagename\endcsname{% + #4}{#5}{#6}% +}{% + }% +} +\expandafter\def\csname iso@rangesign@\CurrentOption\endcsname{~al~} +\def\iso@languagename{italian}% +\AtBeginDocument{% + \ifx\undefined\iso@dateitalian\else + \def\dateitalian{\iso@dateitalian}% + \fi +} +\endinput +%% +%% End of file `italian.idf'. diff --git a/Master/texmf-dist/tex/latex/isodate/norsk.idf b/Master/texmf-dist/tex/latex/isodate/norsk.idf index 53d95d50198..e41972bb4e9 100644 --- a/Master/texmf-dist/tex/latex/isodate/norsk.idf +++ b/Master/texmf-dist/tex/latex/isodate/norsk.idf @@ -18,7 +18,7 @@ %% h.harders@tu-bs.de %% \ProvidesFile{norsk.idf} - [2005/03/11 v2.27 Language definitions for isodate package (HH)] + [2005/04/15 v2.28 Language definitions for isodate package (HH)] \let\iso@languageloaded\active \typeout{Define commands for Norwegian date format} \def\month@norsk{\ifcase\month\or diff --git a/Master/texmf-dist/tex/latex/isodate/swedish.idf b/Master/texmf-dist/tex/latex/isodate/swedish.idf index 631465c031c..bbef8a82240 100644 --- a/Master/texmf-dist/tex/latex/isodate/swedish.idf +++ b/Master/texmf-dist/tex/latex/isodate/swedish.idf @@ -18,7 +18,7 @@ %% h.harders@tu-bs.de %% \ProvidesFile{swedish.idf} - [2005/03/11 v2.27 Language definitions for isodate package (HH)] + [2005/04/15 v2.28 Language definitions for isodate package (HH)] \let\iso@languageloaded\active \typeout{Define commands for Swedish date format} \def\month@swedish{\ifcase\month\or -- cgit v1.2.3