summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/datetime2-contrib/datetime2-icelandic/datetime2-icelandic.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/datetime2-contrib/datetime2-icelandic/datetime2-icelandic.dtx')
-rw-r--r--macros/latex/contrib/datetime2-contrib/datetime2-icelandic/datetime2-icelandic.dtx43
1 files changed, 22 insertions, 21 deletions
diff --git a/macros/latex/contrib/datetime2-contrib/datetime2-icelandic/datetime2-icelandic.dtx b/macros/latex/contrib/datetime2-contrib/datetime2-icelandic/datetime2-icelandic.dtx
index 560bcdb1d2..c8dc7570e1 100644
--- a/macros/latex/contrib/datetime2-contrib/datetime2-icelandic/datetime2-icelandic.dtx
+++ b/macros/latex/contrib/datetime2-contrib/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
}%