summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/datetime2-finnish
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-04 21:16:16 +0000
committerKarl Berry <karl@freefriends.org>2016-04-04 21:16:16 +0000
commitec6e661feaedf4ec85d0ca5b6d98cfb6dc3a71ae (patch)
tree1ee67b65d7b92219eb046fde3cc535b0bc19a96c /Master/texmf-dist/source/latex/datetime2-finnish
parent36a97343e705d797faf495299cf08caf177160f0 (diff)
datetime2-finnish (4apr16)
git-svn-id: svn://tug.org/texlive/trunk@40237 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/datetime2-finnish')
-rw-r--r--Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.dtx710
-rw-r--r--Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.ins4
2 files changed, 607 insertions, 107 deletions
diff --git a/Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.dtx b/Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.dtx
index 43e54a8be16..53dd572a1a9 100644
--- a/Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.dtx
+++ b/Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.dtx
@@ -20,7 +20,7 @@
% \iffalse
% Doc-Source file to use with LaTeX2e
% Copyright (C) 2015 Nicola Talbot, all rights reserved.
-% (New maintainer add relevant lines here.)
+% Maintainer Tuomas Välimäki.
% \fi
% \iffalse
%<*driver>
@@ -32,13 +32,10 @@
\usepackage[colorlinks,
bookmarks,
hyperindex=false,
- pdfauthor={Nicola L.C. Talbot},
+ pdfauthor={Tuomas V\"alim\"aki},
pdftitle={datetime2.sty Finnish Module}]{hyperref}
-\setmainfont{Liberation Serif}
-\setmonofont{Liberation Mono}
-
-\CheckSum{261}
+\CheckSum{464}
\renewcommand*{\usage}[1]{\hyperpage{#1}}
\renewcommand*{\main}[1]{\hyperpage{#1}}
@@ -47,6 +44,8 @@
\newcommand*{\sty}[1]{\textsf{#1}}
\newcommand*{\opt}[1]{\texttt{#1}\index{#1=\texttt{#1}|main}}
+\newcommand*{\utc}[2]{\textsc{utc}\ifnum#1<0 $-$\number-#1\else $+$\number#1\fi
+ \ifnum#2>0 :\number#2 \fi\relax}
\RecordChanges
\PageIndex
@@ -61,14 +60,10 @@
%\MakeShortVerb{"}
%
%\title{Finnish Module for datetime2 Package}
-%\author{Nicola L. C. Talbot (inactive)}
-%\date{2015-03-30 (v1.0)}
+%\author{Tuomas V\"alim\"aki \and Nicola L. C. Talbot (inactive)}
+%\date{2016-03-29 (v1.1)}
%\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}
-%
%\begin{abstract}
%This is the Finnish language module for the \sty{datetime2}
%package. If you want to use the settings in this module you must
@@ -80,25 +75,75 @@
% Alternatively, you can set the style in the document using
% \cs{DTMsetstyle}, but this may be changed by \cs{date}\meta{language}
% depending on the value of the \opt{useregional} setting.
+% Currently there is only a regionless style.
%\end{abstract}
%
-%I've copied the date style from \texttt{babel-finnish}'s \cs{today}.
+%\tableofcontents
+%\clearpage
+%
+%\section{Introduction}
+%\label{sec:intro}
+%This module defines the styles "finnish" and "finnish-numeric".
+%The "finnish" style will automatically be set if the \opt{useregional}
+%option is set to \texttt{text}, and the "finnish-numeric" style is automatically
+%set if the \opt{useregional} option is set to \texttt{numeric}.
+%
+%There are a number of settings provided that can be used in
+%\cs{DTMlangsetup} to modify the date-time style. These are:
+%
+%\begin{description}
+%\item[\opt{dowdaysep}] The separator between the day of week name and the
+%day of month number. This defaults to \cs{space}. Ignored if the
+%\opt{showdow} option is \texttt{false}.
+%
+%\item[\opt{daymonthsep}] The separator between the day and the month
+%name in the \texttt{finnish} style. This defaults to \cs{space}.
+%
+%\item[\opt{monthyearsep}] The separator between the month name and year
+% in the \texttt{finnish} style. This defaults to \cs{space}.
+%
+%\item[\opt{datesep}] The separator between the date numbers in the
+%"finnish-numeric" style. This defaults to "." (period).
%
-%I don't know if these settings are correct as I can't speak Finnish.
-%In particular, I don't know if the "finnish" time style is
-%correct. Currently this just uses the "default" time style. Please
-%be aware that this may change. Whoever takes over maintanance
-%of this module may can change it as appropriate.
+%\item[\opt{timesep}] The separator between the hours and minutes in both
+%"finnish" and "finnish-numeric" styles. This defaults to "." (period).
%
-%The new maintainer should add the line:
-%\begin{verbatim}
-% The Current Maintainer of this work is Name.
-%\end{verbatim}
-%to the preamble part in \texttt{datetime2-finnish.ins} where Name
-%is the name of the maintainer(s) and replace
-%the `inactive' status to `maintained'.
+%\item[\opt{datetimesep}] The separator between the date and time for the
+%full date-time format (as used by \cs{DTMdisplay}) for both the
+%"finnish" and "finnish-numeric" styles. This defaults
+%to \cs{space}.
%
-%Currently there is only a regionless style.
+%\item[\opt{timezonesep}] The separator between the time and zone for the
+%full date-time format (as used by \cs{DTMdisplay}) for both the
+%"finnish" and "finnish-numeric" styles. This defaults
+%to \cs{space}.
+%
+%\item[\opt{abbr}] This is a~boolean key. If "true", the month (and week
+%day name if shown) is abbreviated for the "finnish" style. The default is "false".
+%
+%\item[\opt{mapzone}] This is a~boolean key. If "true" the time zone
+%mappings are applied. (The default is \texttt{true}.) The "finnish"
+% and "finnish-numeric" styles set the mappings EET
+%(\utc{02}{00}) and EEST (\utc{03}{00}).
+%Other time zone mappings that have previously been set
+%(for example, by another regional style) will remain unchanged
+%unless you redefine \cs{DTMresetzones} to reset or unset them.
+%
+%\item[\opt{showdayofmonth}] A boolean key that determines whether
+%or not to show the day of the month. The default value is "true".
+%If "false" the day-month separator is also omitted.
+%
+%\item[\opt{showyear}] A boolean key that determines whether
+%or not to show the year. The default value is "true". If "false"
+%the month-year separator is also omitted.
+%\end{description}
+%
+%The above settings are specific to this module. In addition, the
+%\opt{showdow} boolean option provided by the \sty{datetime2} package is
+%checked to determine whether or not to show the day of the
+%week in the "finnish" style. The \opt{showdate}, \opt{showzone},
+%\opt{showseconds} and \opt{showzoneminutes} settings of \sty{datetime2}
+%are honoured.
%
%\StopEventually{%
%\clearpage
@@ -113,14 +158,17 @@
%<*datetime2-finnish-utf8.ldf>
% \end{macrocode}
%\fi
-%\subsection{UTF-8}
+%\subsection{UTF-8 (\texttt{datetime2-finnish-utf8.ldf})}
%This file contains the settings that use UTF-8 characters. This
%file is loaded if XeLaTeX or LuaLaTeX are used. Please make sure
%your text editor is set to UTF-8 if you want to view this code.
%\changes{1.0}{2015-03-30}{Initial release}
+%\changes{1.1}{2016-03-29}{separated partitive case from month names
+% and added support for abbreviations and day of week}
+%
% Identify module
% \begin{macrocode}
-\ProvidesDateTimeModule{finnish-utf8}[2015/03/30 v1.0]
+\ProvidesDateTimeModule{finnish-utf8}[2016/03/29 v1.1]
% \end{macrocode}
%\begin{macro}{\DTMfinnishordinal}
% \begin{macrocode}
@@ -134,31 +182,35 @@
% Finnish month names.
% \begin{macrocode}
\newcommand*{\DTMfinnishmonthname}[1]{%
+% \end{macrocode}
+% v1.1 separated partitive case from month names
+%\changes{1.1}{2016-03-29}{fixed}
+% \begin{macrocode}
\ifcase#1
\or
- tammikuuta%
+ tammikuu%
\or
- helmikuuta%
+ helmikuu%
\or
- maaliskuuta%
+ maaliskuu%
\or
- huhtikuuta%
+ huhtikuu%
\or
- toukokuuta%
+ toukokuu%
\or
- kesäkuuta%
+ kesäkuu%
\or
- heinäkuuta%
+ heinäkuu%
\or
- elokuuta%
+ elokuu%
\or
- syyskuuta%
+ syyskuu%
\or
- lokakuuta%
+ lokakuu%
\or
- marraskuuta%
+ marraskuu%
\or
- joulukuuta%
+ joulukuu%
\fi
}
% \end{macrocode}
@@ -168,38 +220,219 @@
% As above but capitalize.
% \begin{macrocode}
\newcommand*{\DTMfinnishMonthname}[1]{%
+% \end{macrocode}
+% v1.1 separated partitive case from month names
+%\changes{1.1}{2016-03-29}{fixed}
+% \begin{macrocode}
+ \ifcase#1
+ \or
+ Tammikuu%
+ \or
+ Helmikuu%
+ \or
+ Maaliskuu%
+ \or
+ Huhtikuu%
+ \or
+ Toukokuu%
+ \or
+ Kesäkuu%
+ \or
+ Heinäkuu%
+ \or
+ Elokuu%
+ \or
+ Syyskuu%
+ \or
+ Lokakuu%
+ \or
+ Marraskuu%
+ \or
+ Joulukuu%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+% Added support for abbreviations in v1.1.
+%\begin{macro}{\DTMfinnishshortmonthname}
+% Abbreviated Finnish month names.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishshortmonthname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ \or
+ tammi%
+ \or
+ helmi%
+ \or
+ maalis%
+ \or
+ huhti%
+ \or
+ touko%
+ \or
+ kesä%
+ \or
+ heinä%
+ \or
+ elo%
+ \or
+ syys%
+ \or
+ loka%
+ \or
+ marras%
+ \or
+ joulu%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMfinnishshortMonthname}
+% As above but capitalize.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishshortMonthname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ \or
+ Tammi%
+ \or
+ Helmi%
+ \or
+ Maalis%
+ \or
+ Huhti%
+ \or
+ Touko%
+ \or
+ Kesä%
+ \or
+ Heinä%
+ \or
+ Elo%
+ \or
+ Syys%
+ \or
+ Loka%
+ \or
+ Marras%
+ \or
+ Joulu%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%Added support for day of week names in v1.1.
+%\begin{macro}{\DTMfinnishweekdayname}
+% Finnish day of week names.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishweekdayname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ maanantai%
+ \or
+ tiistai%
+ \or
+ keskiviikko%
+ \or
+ torstai%
+ \or
+ perjantai%
+ \or
+ lauantai%
+ \or
+ sunnuntai%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMfinnishWeekdayname}
+% As above but capitalize.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishWeekdayname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
\ifcase#1
+ Maanantai%
\or
- Tammikuuta%
+ Tiistai%
\or
- Helmikuuta%
+ Keskiviikko%
\or
- Maaliskuuta%
+ Torstai%
\or
- Huhtikuuta%
+ Perjantai%
\or
- Toukokuuta%
+ Lauantai%
\or
- Kesäkuuta%
+ Sunnuntai%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMfinnishshortweekdayname}
+% Finnish abbreviated day of week names.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishshortweekdayname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ ma%
\or
- Heinäkuuta%
+ ti%
\or
- Elokuuta%
+ ke%
\or
- Syyskuuta%
+ to%
\or
- Lokakuuta%
+ pe%
\or
- Marraskuuta%
+ la%
\or
- Joulukuuta%
+ su%
\fi
}
% \end{macrocode}
%\end{macro}
%
-%If abbreviated dates are supported, short month names should be
-%likewise provided.
+%\begin{macro}{\DTMfinnishshortWeekdayname}
+% As above but capitalize.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishshortWeekdayname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ Ma%
+ \or
+ Ti%
+ \or
+ Ke%
+ \or
+ To%
+ \or
+ Pe%
+ \or
+ La%
+ \or
+ Su%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
%
%\iffalse
% \begin{macrocode}
@@ -211,7 +444,7 @@
%<*datetime2-finnish-ascii.ldf>
% \end{macrocode}
%\fi
-%\subsection{ASCII}
+%\subsection{ASCII (\texttt{datetime2-finnish-ascii.ldf})}
%This file contains the settings that use \LaTeX\ commands for
%non-ASCII characters. This should be input if neither XeLaTeX nor
%LuaLaTeX are used. Even if the user has loaded \sty{inputenc} with
@@ -220,13 +453,14 @@
%characters are made active in that situation and would need
%protecting against expansion.
%\changes{1.0}{2015-03-30}{Initial release}
+%\changes{1.1}{2016-03-29}{separated partitive case from month names
+% and added support for abbreviations and day of week}
+%
% Identify module
% \begin{macrocode}
-\ProvidesDateTimeModule{finnish-ascii}[2015/03/30 v1.0]
+\ProvidesDateTimeModule{finnish-ascii}[2016/03/29 v1.1]
% \end{macrocode}
%
-%If abbreviated dates are supported, short month names should be
-%likewise provided.
%\begin{macro}{\DTMfinnishordinal}
% \begin{macrocode}
\newcommand*{\DTMfinnishordinal}[1]{%
@@ -239,31 +473,35 @@
% Finnish month names.
% \begin{macrocode}
\newcommand*{\DTMfinnishmonthname}[1]{%
+% \end{macrocode}
+% v1.1 separated partitive case from month names
+%\changes{1.1}{2016-03-29}{fixed}
+% \begin{macrocode}
\ifcase#1
\or
- tammikuuta%
+ tammikuu%
\or
- helmikuuta%
+ helmikuu%
\or
- maaliskuuta%
+ maaliskuu%
\or
- huhtikuuta%
+ huhtikuu%
\or
- toukokuuta%
+ toukokuu%
\or
- kes\protect\"akuuta%
+ kes\protect\"akuu%
\or
- hein\protect\"akuuta%
+ hein\protect\"akuu%
\or
- elokuuta%
+ elokuu%
\or
- syyskuuta%
+ syyskuu%
\or
- lokakuuta%
+ lokakuu%
\or
- marraskuuta%
+ marraskuu%
\or
- joulukuuta%
+ joulukuu%
\fi
}
% \end{macrocode}
@@ -273,31 +511,215 @@
% As above but capitalize.
% \begin{macrocode}
\newcommand*{\DTMfinnishMonthname}[1]{%
+% \end{macrocode}
+% v1.1 separated partitive case from month names
+%\changes{1.1}{2016-03-29}{fixed}
+% \begin{macrocode}
\ifcase#1
\or
- Tammikuuta%
+ Tammikuu%
\or
- Helmikuuta%
+ Helmikuu%
\or
- Maaliskuuta%
+ Maaliskuu%
\or
- Huhtikuuta%
+ Huhtikuu%
\or
- Toukokuuta%
+ Toukokuu%
\or
- Kes\protect\"akuuta%
+ Kes\protect\"akuu%
\or
- Hein\protect\"akuuta%
+ Hein\protect\"akuu%
\or
- Elokuuta%
+ Elokuu%
\or
- Syyskuuta%
+ Syyskuu%
\or
- Lokakuuta%
+ Lokakuu%
\or
- Marraskuuta%
+ Marraskuu%
\or
- Joulukuuta%
+ Joulukuu%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+% Added support for abbreviations in v1.1.
+%\begin{macro}{\DTMfinnishshortmonthname}
+% Abbreviated Finnish month names.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishshortmonthname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ \or
+ tammi%
+ \or
+ helmi%
+ \or
+ maalis%
+ \or
+ huhti%
+ \or
+ touko%
+ \or
+ kes\protect\"a%
+ \or
+ hein\protect\"a%
+ \or
+ elo%
+ \or
+ syys%
+ \or
+ loka%
+ \or
+ marras%
+ \or
+ joulu%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMfinnishshortMonthname}
+% As above but capitalize.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishshortMonthname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ \or
+ Tammi%
+ \or
+ Helmi%
+ \or
+ Maalis%
+ \or
+ Huhti%
+ \or
+ Touko%
+ \or
+ Kes\protect\"a%
+ \or
+ Hein\protect\"a%
+ \or
+ Elo%
+ \or
+ Syys%
+ \or
+ Loka%
+ \or
+ Marras%
+ \or
+ Joulu%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%Added support for day of week names in v1.1.
+%\begin{macro}{\DTMfinnishweekdayname}
+% Finnish day of week names.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishweekdayname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ maanantai%
+ \or
+ tiistai%
+ \or
+ keskiviikko%
+ \or
+ torstai%
+ \or
+ perjantai%
+ \or
+ lauantai%
+ \or
+ sunnuntai%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMfinnishWeekdayname}
+% As above but capitalize.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishWeekdayname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ Maanantai%
+ \or
+ Tiistai%
+ \or
+ Keskiviikko%
+ \or
+ Torstai%
+ \or
+ Perjantai%
+ \or
+ Lauantai%
+ \or
+ Sunnuntai%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMfinnishshortweekdayname}
+% Finnish abbreviated day of week names.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishshortweekdayname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ ma%
+ \or
+ ti%
+ \or
+ ke%
+ \or
+ to%
+ \or
+ pe%
+ \or
+ la%
+ \or
+ su%
+ \fi
+}
+% \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMfinnishshortWeekdayname}
+% As above but capitalize.
+% \begin{macrocode}
+\newcommand*{\DTMfinnishshortWeekdayname}[1]{%
+% \end{macrocode}
+%\changes{1.1}{2016-03-29}{new}
+% \begin{macrocode}
+ \ifcase#1
+ Ma%
+ \or
+ Ti%
+ \or
+ Ke%
+ \or
+ To%
+ \or
+ Pe%
+ \or
+ La%
+ \or
+ Su%
\fi
}
% \end{macrocode}
@@ -311,6 +733,8 @@
%
%\subsection{Main Finnish Module (\texttt{datetime2-finnish.ldf})}
%\changes{1.0}{2015-03-30}{Initial release}
+%\changes{1.1}{2016-03-29}{separated partitive case from month names
+% and added support for abbreviations and day of week}
%
%\iffalse
% \begin{macrocode}
@@ -320,7 +744,7 @@
%
% Identify Module
% \begin{macrocode}
-\ProvidesDateTimeModule{finnish}[2015/03/30 v1.0]
+\ProvidesDateTimeModule{finnish}[2016/03/29 v1.1]
% \end{macrocode}
% Need to find out if XeTeX or LuaTeX are being used.
% \begin{macrocode}
@@ -343,14 +767,22 @@
%
% Define the \texttt{finnish} style.
% The time style is the same as the "default" style
-% provided by \sty{datetime2}. This may need correcting. For
-% example, if a 12 hour style similar to the "englishampm" (from the
-% "english-base" module) is required.
+% provided by \sty{datetime2}.
%
% Allow the user a way of configuring the "finnish" and
% "finnish-numeric" styles. This doesn't use the package wide
% separators such as
% \cs{dtm@datetimesep} in case other date formats are also required.
+%
+%\begin{macro}{\DTMfinnishdowdaysep}
+%\changes{1.1}{2016-03-29}{new}
+% The separator between the day of week name and the day of month
+% number for the text format (v1.1).
+% \begin{macrocode}
+\newcommand*{\DTMfinnishdowdaysep}{\space}
+% \end{macrocode}
+%\end{macro}
+%
%\begin{macro}{\DTMfinnishdaymonthsep}
% The separator between the day and month for the text format.
% \begin{macrocode}
@@ -400,6 +832,7 @@
%Provide keys that can be used in \cs{DTMlangsetup} to set these
%separators.
% \begin{macrocode}
+\DTMdefkey{finnish}{dowdaysep}{\renewcommand*{\DTMfinnishdowdaysep}{#1}}
\DTMdefkey{finnish}{daymonthsep}{\renewcommand*{\DTMfinnishdaymonthsep}{#1}}
\DTMdefkey{finnish}{monthyearsep}{\renewcommand*{\DTMfinnishmonthyearsep}{#1}}
\DTMdefkey{finnish}{datetimesep}{\renewcommand*{\DTMfinnishdatetimesep}{#1}}
@@ -408,9 +841,17 @@
\DTMdefkey{finnish}{timesep}{\renewcommand*{\DTMfinnishtimesep}{#1}}
% \end{macrocode}
%
-% TODO: provide a boolean key to switch between full and abbreviated
-% formats if appropriate. (I don't know how the date should be
-% abbreviated.)
+% Define a boolean key that can switch between full and abbreviated
+% formats for the month and day of week names in the text format (v1.1).
+%\changes{1.1}{2016-03-29}{separated partitive case from month names
+% and added support for abbreviations and day of week}
+% \begin{macrocode}
+\DTMdefboolkey{finnish}{abbr}[true]{}
+% \end{macrocode}
+% The default is the full name.
+% \begin{macrocode}
+\DTMsetbool{finnish}{abbr}{false}
+% \end{macrocode}
%
% Define a boolean key that determines if the time zone mappings
% should be used.
@@ -442,42 +883,99 @@
\DTMsetbool{finnish}{showyear}{true}
% \end{macrocode}
%
-% Define the "finnish" style. (TODO: implement day of week?)
+% Define the "finnish" style.
% \begin{macrocode}
\DTMnewstyle
{finnish}% label
{% date style
\renewcommand*\DTMdisplaydate[4]{%
+% \end{macrocode}
+% v1.1 separated partitive case from month names
+% and added support for abbreviations and day of week
+%\changes{1.1}{2016-03-29}{separated partitive case from month names
+% and added support for abbreviations and day of week}
+% \begin{macrocode}
+ \ifDTMshowdow
+ \ifnum##4>-1
+ \DTMifbool{finnish}{abbr}%
+ {\DTMfinnishshortweekdayname{##4}}%
+ {\DTMfinnishweekdayname{##4}}%
+ \DTMfinnishdowdaysep
+ \fi
+ \fi
\DTMifbool{finnish}{showdayofmonth}
- {\DTMfinnishordinal{##3}\DTMfinnishdaymonthsep}%
- {}%
- \DTMfinnishmonthname{##2}%
+ {%
+ \DTMfinnishordinal{##3}\DTMfinnishdaymonthsep
+ \DTMifbool{finnish}{abbr}%
+ {\DTMfinnishshortmonthname{##2}}%
+ {\DTMfinnishmonthname{##2}ta}%
+ }%
+ {%
+ \DTMifbool{finnish}{abbr}%
+ {\DTMfinnishshortmonthname{##2}}%
+ {\DTMfinnishmonthname{##2}}%
+ }%
\DTMifbool{finnish}{showyear}%
{%
\DTMfinnishmonthyearsep
- \number##1
+ \number##1 % space intended
}%
{}%
}%
\renewcommand*\DTMDisplaydate[4]{%
- \DTMifbool{finnish}{showdayofmonth}
- {%
- \DTMfinnishordinal{##3}\DTMfinnishdaymonthsep
- \DTMfinnishmonthname{##2}%
- }%
- {%
- \DTMfinnishMonthname{##2}%
- }%
+% \end{macrocode}
+% v1.1 separated partitive case from month names
+% and added support for abbreviations and day of week
+%\changes{1.1}{2016-03-29}{separated partitive case from month names
+% and added support for abbreviations and day of week}
+% \begin{macrocode}
+ \ifDTMshowdow
+ \ifnum##4>-1
+ \DTMifbool{finnish}{abbr}%
+ {\DTMfinnishshortWeekdayname{##4}}%
+ {\DTMfinnishWeekdayname{##4}}%
+ \DTMfinnishdowdaysep
+ \fi
+ \DTMifbool{finnish}{showdayofmonth}
+ {%
+ \DTMfinnishordinal{##3}\DTMfinnishdaymonthsep
+ \DTMifbool{finnish}{abbr}%
+ {\DTMfinnishshortmonthname{##2}}%
+ {\DTMfinnishmonthname{##2}ta}%
+ }%
+ {%
+ \DTMifbool{finnish}{abbr}%
+ {\DTMfinnishshortmonthname{##2}}%
+ {\DTMfinnishmonthname{##2}}%
+ }%
+ \else
+ \DTMifbool{finnish}{showdayofmonth}
+ {%
+ \DTMfinnishordinal{##3}\DTMfinnishdaymonthsep
+ \DTMifbool{finnish}{abbr}%
+ {\DTMfinnishshortmonthname{##2}}%
+ {\DTMfinnishmonthname{##2}ta}%
+ }%
+ {%
+ \DTMifbool{finnish}{abbr}%
+ {\DTMfinnishshortMonthname{##2}}%
+ {\DTMfinnishMonthname{##2}}%
+ }%
+ \fi
\DTMifbool{finnish}{showyear}%
{%
\DTMfinnishmonthyearsep
- \number##1
+ \number##1 % space intended
}%
{}%
}%
}%
- {% time style (use default)
- \DTMsettimestyle{default}%
+ {% time style
+ \renewcommand*\DTMdisplaytime[3]{%
+ \number##1
+ \DTMfinnishtimesep\DTMtwodigits{##2}%
+ \ifDTMshowseconds\DTMfinnishtimesep\DTMtwodigits{##3}\fi
+ }%
}%
{% zone style
\DTMresetzones
@@ -577,7 +1075,7 @@
%\begin{macro}{\DTMfinnishzonemaps}
% The time zone mappings are set through this command, which can be
% redefined if extra mappings are required or mappings need to be
-% removed. No default mappings are provided at the moment.
+% removed.
% \begin{macrocode}
\newcommand*{\DTMfinnishzonemaps}{%
\DTMdefzonemap{02}{00}{EET}%
diff --git a/Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.ins b/Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.ins
index 382a2c2ca16..ed8fd2fa7ba 100644
--- a/Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.ins
+++ b/Master/texmf-dist/source/latex/datetime2-finnish/datetime2-finnish.ins
@@ -13,7 +13,9 @@
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.
- This work has the LPPL maintenance status `inactive'.
+ This work has the LPPL maintenance status `maintained'.
+
+ The Current Maintainer of this work is Tuomas Välimäki.
This work consists of the files datetime2-finnish.dtx and
datetime2-finnish.ins and the derived files