summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-12-06 21:16:42 +0000
committerKarl Berry <karl@freefriends.org>2022-12-06 21:16:42 +0000
commit4ef3da7511c0b4fa5799b0f27d44c97819e0f974 (patch)
treedb520118769bee6c466dbc9e574724f6c4a8f5d9 /Master/texmf-dist/source/latex
parentc2fffa5bc7dbf77e4250184f12a81908c823a442 (diff)
datetime2-icelandic (6dec22)
git-svn-id: svn://tug.org/texlive/trunk@65213 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.dtx43
-rw-r--r--Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.ins2
2 files changed, 23 insertions, 22 deletions
diff --git a/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.dtx b/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.dtx
index 560bcdb1d2f..c8dc7570e14 100644
--- a/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.dtx
+++ b/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.dtx
@@ -19,7 +19,7 @@
%\fi
% \iffalse
% Doc-Source file to use with LaTeX2e
-% Copyright (C) 2018 Nicola Talbot, all rights reserved.
+% Copyright (C) 2018-2022 Nicola Talbot, all rights reserved.
% (New maintainer add relevant lines here.)
% \fi
% \iffalse
@@ -30,8 +30,6 @@
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage[colorlinks,
- bookmarks,
- hyperindex=false,
pdfauthor={Nicola L.C. Talbot},
pdftitle={datetime2.sty Icelandic Module}]{hyperref}
@@ -40,13 +38,10 @@
\CheckSum{300}
-\renewcommand*{\usage}[1]{\hyperpage{#1}}
-\renewcommand*{\main}[1]{\hyperpage{#1}}
-\IndexPrologue{\section*{\indexname}\markboth{\indexname}{\indexname}}
\setcounter{IndexColumns}{2}
\newcommand*{\sty}[1]{\textsf{#1}}
-\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}}
+\newcommand*{\opt}[1]{\texttt{#1}}
\RecordChanges
\PageIndex
@@ -62,12 +57,12 @@
%
%\title{Icelandic Module for datetime2 Package}
%\author{Nicola L. C. Talbot (inactive)}
-%\date{2018-04-24 (v1.1)}
+%\date{2022-12-06 (v1.2)}
%\maketitle
%
%This module is currently unmaintained and may be subject to change.
-%If you want to volunteer to take over maintanance, contact me at
-%\url{http://www.dickimaw-books.com/contact.html}
+%If you want to volunteer to take over maintenance, contact me at
+%\url{https://www.dickimaw-books.com/contact.html}
%
%\begin{abstract}
%This is the Icelandic language module for the \sty{datetime2}
@@ -103,9 +98,7 @@
%\StopEventually{%
%\clearpage
%\phantomsection
-%\addcontentsline{toc}{section}{Change History}%
%\PrintChanges
-%\addcontentsline{toc}{section}{\indexname}%
%\PrintIndex}
%\section{The Code}
%\iffalse
@@ -120,7 +113,7 @@
%\changes{1.0}{2015-03-30}{Initial release}
% Identify module
% \begin{macrocode}
-\ProvidesDateTimeModule{icelandic-utf8}[2018/04/24 v1.1]
+\ProvidesDateTimeModule{icelandic-utf8}[2022/12/06 v1.2]
% \end{macrocode}
%\begin{macro}{\DTMicelandicordinal}
% \begin{macrocode}
@@ -133,6 +126,7 @@
%
%\begin{macro}{\DTMicelandicmonthname}
% Icelandic month names.
+%\changes{1.2}{2022-12-06}{corrected desember}
% \begin{macrocode}
\newcommand*{\DTMicelandicmonthname}[1]{%
\ifcase#1
@@ -159,7 +153,7 @@
\or
nóvember%
\or
- desembe%
+ desember%
\fi
}
% \end{macrocode}
@@ -167,6 +161,7 @@
%
%\begin{macro}{\DTMicelandicMonthname}
% As above but capitalize.
+%\changes{1.2}{2022-12-06}{corrected Desember}
% \begin{macrocode}
\newcommand*{\DTMicelandicMonthname}[1]{%
\ifcase#1
@@ -193,7 +188,7 @@
\or
Nóvember%
\or
- Desembe%
+ Desember%
\fi
}
% \end{macrocode}
@@ -223,7 +218,7 @@
%\changes{1.0}{2015-03-30}{Initial release}
% Identify module
% \begin{macrocode}
-\ProvidesDateTimeModule{icelandic-ascii}[2018/04/24 v1.1]
+\ProvidesDateTimeModule{icelandic-ascii}[2022/12/06 v1.2]
% \end{macrocode}
%
%If abbreviated dates are supported, short month names should be
@@ -238,6 +233,7 @@
%
%\begin{macro}{\DTMicelandicmonthname}
% Icelandic month names.
+%\changes{1.2}{2022-12-06}{corrected desember}
% \begin{macrocode}
\newcommand*{\DTMicelandicmonthname}[1]{%
\ifcase#1
@@ -264,13 +260,14 @@
\or
n\protect\'ovember%
\or
- desembe%
+ desember%
\fi
}
% \end{macrocode}
%\end{macro}
%
%\begin{macro}{\DTMicelandicMonthname}
+%\changes{1.2}{2022-12-06}{corrected Desember}
% As above but capitalize.
% \begin{macrocode}
\newcommand*{\DTMicelandicMonthname}[1]{%
@@ -298,7 +295,7 @@
\or
N\protect\'ovember%
\or
- Desembe%
+ Desember%
\fi
}
% \end{macrocode}
@@ -322,15 +319,19 @@
%
% Identify Module
% \begin{macrocode}
-\ProvidesDateTimeModule{icelandic}[2018/04/24 v1.1]
+\ProvidesDateTimeModule{icelandic}[2022/12/06 v1.2]
% \end{macrocode}
% Need to find out if XeTeX or LuaTeX are being used.
+%\changes{1.2}{2022-12-06}{switched to iftex}
% \begin{macrocode}
-\RequirePackage{ifxetex,ifluatex}
+\RequirePackage{iftex}
% \end{macrocode}
% XeTeX and LuaTeX natively support UTF-8, so load
% \texttt{icelandic-utf8} if either of those engines are used
% otherwise load \texttt{icelandic-ascii}.
+% Modern LaTeX kernels have much better support for UTF-8, so
+% a test could also be added to determine if \cs{inputencoding} is
+% \texttt{utf8}.
% \begin{macrocode}
\ifxetex
\RequireDateTimeModule{icelandic-utf8}
@@ -543,7 +544,7 @@
}%
{% time style
\renewcommand*\DTMdisplaytime[3]{%
- \number##1
+ \number##1 % space intended
\DTMicelandictimesep\DTMtwodigits{##2}%
\ifDTMshowseconds\DTMicelandictimesep\DTMtwodigits{##3}\fi
}%
diff --git a/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.ins b/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.ins
index c2d0571be56..664141dbb6a 100644
--- a/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.ins
+++ b/Master/texmf-dist/source/latex/datetime2-icelandic/datetime2-icelandic.ins
@@ -3,7 +3,7 @@
\preamble
datetime2-icelandic.dtx
- Copyright 2018 Nicola Talbot
+ Copyright 2018-2022 Nicola Talbot
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3