texlive[43743] Master/texmf-dist: datetime2-romanian

commits+karl at tug.org commits+karl at tug.org
Tue Apr 11 00:03:10 CEST 2017


Revision: 43743
          http://tug.org/svn/texlive?view=revision&revision=43743
Author:   karl
Date:     2017-04-11 00:03:09 +0200 (Tue, 11 Apr 2017)
Log Message:
-----------
datetime2-romanian

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/README
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian.pdf
    trunk/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.dtx
    trunk/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.ins
    trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf
    trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf
    trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.pdf
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.tex
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.pdf
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.tex
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.pdf
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.tex
    trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test.tex

Modified: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/datetime2-romanian/README	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/doc/latex/datetime2-romanian/README	2017-04-10 22:03:09 UTC (rev 43743)
@@ -1,14 +1,12 @@
 Romanian Language Module for datetime2 Package
 
 Author: Nicola L. C. Talbot (inactive)
+        Paul A. Patience <pap at papatience.com>
 
 Licence: LPPL
 
 Required Packages: datetime2, tracklang
 
-This module is unmaintained. If you want to volunteer to take over
-the maintenance contact me at www.dickimaw-books.com/contact.html
-
 Example usage:
 
 \documentclass{article}

Added: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.pdf	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.pdf	2017-04-10 22:03:09 UTC (rev 43743)

Property changes on: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.tex	2017-04-10 22:03:09 UTC (rev 43743)
@@ -0,0 +1,9 @@
+% arara: lualatex
+\documentclass{article}
+
+\usepackage{fontspec}
+\usepackage{polyglossia}
+\setdefaultlanguage{romanian}
+\setotherlanguage{english}
+
+\input{datetime2-romanian-test}


Property changes on: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-luatex.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.pdf	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.pdf	2017-04-10 22:03:09 UTC (rev 43743)

Property changes on: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.tex	2017-04-10 22:03:09 UTC (rev 43743)
@@ -0,0 +1,8 @@
+% arara: pdflatex
+\documentclass[english,romanian]{article}
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[english,main=romanian]{babel}
+
+\input{datetime2-romanian-test}


Property changes on: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-pdftex.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.pdf	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.pdf	2017-04-10 22:03:09 UTC (rev 43743)

Property changes on: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.tex	2017-04-10 22:03:09 UTC (rev 43743)
@@ -0,0 +1,9 @@
+% arara: xelatex
+\documentclass{article}
+
+\usepackage{fontspec}
+\usepackage{polyglossia}
+\setdefaultlanguage{romanian}
+\setotherlanguage{english}
+
+\input{datetime2-romanian-test}


Property changes on: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test-xetex.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test.tex	2017-04-10 22:03:09 UTC (rev 43743)
@@ -0,0 +1,30 @@
+\usepackage[en-GB,en-US]{datetime2}
+
+\newcommand*{\teststyle}[1]{%
+  \DTMsetstyle{#1}
+  \texttt{#1}:\par
+  \DTMnow\par
+  \DTMNow\par
+}
+
+\newcommand*{\testall}[1]{%
+  \DTMlangsetup*{#1}
+  \texttt{#1}:\par
+  \teststyle{default}
+  \teststyle{iso}
+  \teststyle{english}
+  \teststyle{en-GB}
+  \teststyle{en-GB-numeric}
+  \teststyle{en-US}
+  \teststyle{en-US-numeric}
+  \teststyle{romanian}
+  \teststyle{romanian-numeric}
+}
+
+\begin{document}
+
+\testall{showdayofmonth=true,abbr=false}
+\testall{showdayofmonth=false}
+\testall{abbr=true}
+
+\end{document}


Property changes on: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian-test.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/datetime2-romanian/datetime2-romanian.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.dtx	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.dtx	2017-04-10 22:03:09 UTC (rev 43743)
@@ -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.)
+% Copyright (C) 2017 Paul A. Patience <pap at papatience.com>, all rights reserved.
 % \fi
 % \iffalse
 %<*driver>
@@ -32,13 +32,13 @@
 \usepackage[colorlinks,
             bookmarks,
             hyperindex=false,
-            pdfauthor={Nicola L.C. Talbot},
+            pdfauthor={Nicola L.C. Talbot and Paul A. Patience},
             pdftitle={datetime2.sty Romanian Module}]{hyperref}
 
 \setmainfont{Liberation Serif}
 \setmonofont{Liberation Mono}
 
-\CheckSum{313}
+\CheckSum{478}
 
 \renewcommand*{\usage}[1]{\hyperpage{#1}}
 \renewcommand*{\main}[1]{\hyperpage{#1}}
@@ -61,14 +61,11 @@
 %\MakeShortVerb{"}
 %
 %\title{Romanian Module for datetime2 Package}
-%\author{Nicola L. C. Talbot (inactive)}
-%\date{2015-03-31 (v1.0)}
+%\author{Nicola L. C. Talbot (inactive) \\
+% Paul A. Patience\thanks{E-mail: pap at papatience.com}}
+%\date{2017-04-08 (v1.01)}
 %\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 Romanian language module for the \sty{datetime2}
 %package. If you want to use the settings in this module you must
@@ -82,24 +79,6 @@
 % depending on the value of the \opt{useregional} setting.
 %\end{abstract}
 %
-%I've copied the date style from \texttt{babel-romanian}'s \cs{today}.
-%
-%I don't know if these settings are correct as I can't speak Romanian.
-%In particular, I don't know if the "romanian" 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.
-%
-%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-romanian.ins} where Name
-%is the name of the maintainer(s) and replace
-%the `inactive' status to `maintained'.
-%
-%Currently there is only a regionless style.
-%
 %\StopEventually{%
 %\clearpage
 %\phantomsection
@@ -120,7 +99,7 @@
 %\changes{1.0}{2015-03-31}{Initial release}
 % Identify module
 %    \begin{macrocode}
-\ProvidesDateTimeModule{romanian-utf8}[2015/03/31 v1.0]
+\ProvidesDateTimeModule{romanian-utf8}[2017/04/08 v1.01]
 %    \end{macrocode}
 %\begin{macro}{\DTMromanianordinal}
 %    \begin{macrocode}
@@ -165,7 +144,7 @@
 %\end{macro}
 %
 %\begin{macro}{\DTMromanianMonthname}
-% As above but capitalize.
+% As above but start with a capital.
 %    \begin{macrocode}
 \newcommand*{\DTMromanianMonthname}[1]{%
   \ifcase#1
@@ -198,17 +177,84 @@
 %    \end{macrocode}
 %\end{macro}
 %
-%If abbreviated dates are supported, short month names should be
-%likewise provided.
+%\begin{macro}{\DTMromanianshortmonthname}
+% Abbreviated Romanian month names.
+%\changes{1.01}{2017-04-08}{Add abbreviated month names}
+%    \begin{macrocode}
+\newcommand*{\DTMromanianshortmonthname}[1]{%
+  \ifcase#1
+  \or
+  ian.%
+  \or
+  feb.%
+  \or
+  mart.%
+  \or
+  apr.%
+  \or
+  mai%
+  \or
+  iun.%
+  \or
+  iul.%
+  \or
+  aug.%
+  \or
+  sept.%
+  \or
+  oct.%
+  \or
+  nov.%
+  \or
+  dec.%
+  \fi
+}
+%    \end{macrocode}
+%\end{macro}
 %
+%\begin{macro}{\DTMromanianshortMonthname}
+% As above but start with a capital.
+%    \begin{macrocode}
+\newcommand*{\DTMromanianshortMonthname}[1]{%
+  \ifcase#1
+  \or
+  Ian.%
+  \or
+  Feb.%
+  \or
+  Mart.%
+  \or
+  Apr.%
+  \or
+  Mai%
+  \or
+  Iun.%
+  \or
+  Iul.%
+  \or
+  Aug.%
+  \or
+  Sept.%
+  \or
+  Oct.%
+  \or
+  Nov.%
+  \or
+  Dec.%
+  \fi
+}
+%    \end{macrocode}
+%\end{macro}
+%
 %\begin{macro}{\DTMromanianweekdayname}
-% Day of week names.
+% Romanian day of week names.
+%\changes{1.01}{2017-04-08}{Use T-comma}
 %    \begin{macrocode}
 \newcommand*{\DTMromanianweekdayname}[1]{%
   \ifcase#1
   luni%
   \or
-  marţi%
+  marți%
   \or
   miercuri%
   \or
@@ -231,7 +277,7 @@
   \ifcase#1
   Luni%
   \or
-  Marţi%
+  Marți%
   \or
   Miercuri%
   \or
@@ -247,6 +293,53 @@
 %    \end{macrocode}
 %\end{macro}
 %
+%\begin{macro}{\DTMromanianshortweekdayname}
+% Abbreviated Romanian day of week names.
+%\changes{1.01}{2017-04-08}{Add abbreviated day of week names}
+%    \begin{macrocode}
+\newcommand*{\DTMromanianshortweekdayname}[1]{%
+  \ifcase#1
+  lun.%
+  \or
+  mar.%
+  \or
+  mie.%
+  \or
+  joi%
+  \or
+  vin.%
+  \or
+  sâm.%
+  \or
+  dum.%
+  \fi
+}
+%    \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMromanianshortWeekdayname}
+% As above but start with a capital.
+%    \begin{macrocode}
+\newcommand*{\DTMromanianshortWeekdayname}[1]{%
+  \ifcase#1
+  Lun.%
+  \or
+  Mar.%
+  \or
+  Mie.%
+  \or
+  Joi%
+  \or
+  Vin.%
+  \or
+  Sâm.%
+  \or
+  Dum.%
+  \fi
+}
+%    \end{macrocode}
+%\end{macro}
+%
 %\iffalse
 %    \begin{macrocode}
 %</datetime2-romanian-utf8.ldf>
@@ -268,11 +361,9 @@
 %\changes{1.0}{2015-03-31}{Initial release}
 % Identify module
 %    \begin{macrocode}
-\ProvidesDateTimeModule{romanian-ascii}[2015/03/31 v1.0]
+\ProvidesDateTimeModule{romanian-ascii}[2017/04/08 v1.01]
 %    \end{macrocode}
 %
-%If abbreviated dates are supported, short month names should be
-%likewise provided.
 %\begin{macro}{\DTMromanianordinal}
 %    \begin{macrocode}
 \newcommand*{\DTMromanianordinal}[1]{%
@@ -316,7 +407,7 @@
 %\end{macro}
 %
 %\begin{macro}{\DTMromanianMonthname}
-% As above but capitalize.
+% As above but start with a capital.
 %    \begin{macrocode}
 \newcommand*{\DTMromanianMonthname}[1]{%
   \ifcase#1
@@ -349,8 +440,77 @@
 %    \end{macrocode}
 %\end{macro}
 %
+%\begin{macro}{\DTMromanianshortmonthname}
+% Abbreviated Romanian month names.
+%\changes{1.01}{2017-04-08}{Add abbreviated month names}
+%    \begin{macrocode}
+\newcommand*{\DTMromanianshortmonthname}[1]{%
+  \ifcase#1
+  \or
+  ian.%
+  \or
+  feb.%
+  \or
+  mart.%
+  \or
+  apr.%
+  \or
+  mai%
+  \or
+  iun.%
+  \or
+  iul.%
+  \or
+  aug.%
+  \or
+  sept.%
+  \or
+  oct.%
+  \or
+  nov.%
+  \or
+  dec.%
+  \fi
+}
+%    \end{macrocode}
+%\end{macro}
+%
+%\begin{macro}{\DTMromanianshortMonthname}
+% As above but start with a capital.
+%    \begin{macrocode}
+\newcommand*{\DTMromanianshortMonthname}[1]{%
+  \ifcase#1
+  \or
+  Ian.%
+  \or
+  Feb.%
+  \or
+  Mart.%
+  \or
+  Apr.%
+  \or
+  Mai%
+  \or
+  Iun.%
+  \or
+  Iul.%
+  \or
+  Aug.%
+  \or
+  Sept.%
+  \or
+  Oct.%
+  \or
+  Nov.%
+  \or
+  Dec.%
+  \fi
+}
+%    \end{macrocode}
+%\end{macro}
+%
 %\begin{macro}{\DTMromanianweekdayname}
-% Day of week names.
+% Romanian day of week names.
 %    \begin{macrocode}
 \newcommand*{\DTMromanianweekdayname}[1]{%
   \ifcase#1
@@ -395,7 +555,53 @@
 %    \end{macrocode}
 %\end{macro}
 %
+%\begin{macro}{\DTMromanianshortweekdayname}
+% Abbreviated Romanian day of week names.
+%\changes{1.01}{2017-04-08}{Add abbreviated day of week names}
+%    \begin{macrocode}
+\newcommand*{\DTMromanianshortweekdayname}[1]{%
+  \ifcase#1
+  lun.%
+  \or
+  mar.%
+  \or
+  mie.%
+  \or
+  joi%
+  \or
+  vin.%
+  \or
+  s\protect\^am.%
+  \or
+  dum.%
+  \fi
+}
+%    \end{macrocode}
+%\end{macro}
 %
+%\begin{macro}{\DTMromanianshortWeekdayname}
+% As above but start with a capital.
+%    \begin{macrocode}
+\newcommand*{\DTMromanianshortWeekdayname}[1]{%
+  \ifcase#1
+  Lun.%
+  \or
+  Mar.%
+  \or
+  Mie.%
+  \or
+  Joi%
+  \or
+  Vin.%
+  \or
+  S\protect\^am.%
+  \or
+  Dum.%
+  \fi
+}
+%    \end{macrocode}
+%\end{macro}
+%
 %\iffalse
 %    \begin{macrocode}
 %</datetime2-romanian-ascii.ldf>
@@ -413,7 +619,7 @@
 %
 % Identify Module
 %    \begin{macrocode}
-\ProvidesDateTimeModule{romanian}[2015/03/31 v1.0]
+\ProvidesDateTimeModule{romanian}[2017/04/08 v1.01]
 %    \end{macrocode}
 % Need to find out if XeTeX or LuaTeX are being used.
 %    \begin{macrocode}
@@ -438,12 +644,22 @@
 % 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. 
+% "english-base" module) is required.
 %
 % Allow the user a way of configuring the "romanian" and
 % "romanian-numeric" styles. This doesn't use the package wide
 % separators such as
 % \cs{dtm at datetimesep} in case other date formats are also required.
+%
+%\begin{macro}{\DTMromaniandowdaysep}
+% The separator between the day of week name and the day of month
+% number for the text format.
+%\changes{1.01}{2017-04-08}{Add support for showdow}
+%    \begin{macrocode}
+\newcommand*{\DTMromaniandowdaysep}{\space}
+%    \end{macrocode}
+%\end{macro}
+%
 %\begin{macro}{\DTMromaniandaymonthsep}
 % The separator between the day and month for the text format.
 %    \begin{macrocode}
@@ -493,6 +709,7 @@
 %Provide keys that can be used in \cs{DTMlangsetup} to set these
 %separators.
 %    \begin{macrocode}
+\DTMdefkey{romanian}{dowdaysep}{\renewcommand*{\DTMromaniandowdaysep}{#1}}
 \DTMdefkey{romanian}{daymonthsep}{\renewcommand*{\DTMromaniandaymonthsep}{#1}}
 \DTMdefkey{romanian}{monthyearsep}{\renewcommand*{\DTMromanianmonthyearsep}{#1}}
 \DTMdefkey{romanian}{datetimesep}{\renewcommand*{\DTMromaniandatetimesep}{#1}}
@@ -501,9 +718,16 @@
 \DTMdefkey{romanian}{timesep}{\renewcommand*{\DTMromaniantimesep}{#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.
+%\changes{1.01}{2017-04-08}{Add support for abbr}
+%    \begin{macrocode}
+\DTMdefboolkey{romanian}{abbr}[true]{}
+%    \end{macrocode}
+% The default is the full name.
+%    \begin{macrocode}
+\DTMsetbool{romanian}{abbr}{false}
+%    \end{macrocode}
 %
 % Define a boolean key that determines if the time zone mappings
 % should be used.
@@ -535,42 +759,108 @@
 \DTMsetbool{romanian}{showyear}{true}
 %    \end{macrocode}
 %
-% Define the "romanian" style. (TODO: implement day of week?)
+% Define the "romanian" style.
+%\changes{1.01}{2017-04-08}{Add support for abbr and showdow}
 %    \begin{macrocode}
 \DTMnewstyle
  {romanian}% label
  {% date style
    \renewcommand*\DTMdisplaydate[4]{%
-     \DTMifbool{romanian}{showdayofmonth}
-     {\DTMromanianordinal{##3}\DTMromaniandaymonthsep}%
-     {}%
-     \DTMromanianmonthname{##2}%
-     \DTMifbool{romanian}{showyear}%
+     \ifDTMshowdow
+       \ifnum##4>-1
+         \DTMifbool{romanian}{abbr}%
+         {\DTMromanianshortweekdayname{##4}}%
+         {\DTMromanianweekdayname{##4}}%
+         \DTMromaniandowdaysep
+       \fi
+     \fi
+     \DTMifbool{romanian}{showdayofmonth}%
      {%
-       \DTMromanianmonthyearsep
-       \number##1
+       \DTMromanianordinal{##3}%
+       \DTMromaniandaymonthsep
      }%
      {}%
-   }%
-   \renewcommand*\DTMDisplaydate[4]{%
-     \DTMifbool{romanian}{showdayofmonth}
-     {%
-       \DTMromanianordinal{##3}\DTMromaniandaymonthsep
-       \DTMromanianmonthname{##2}%
-     }%
-     {%
-       \DTMromanianMonthname{##2}%
-     }%
+     \DTMifbool{romanian}{abbr}%
+     {\DTMromanianshortmonthname{##2}}%
+     {\DTMromanianmonthname{##2}}%
      \DTMifbool{romanian}{showyear}%
      {%
        \DTMromanianmonthyearsep
-       \number##1
+       \number##1 % space intended
      }%
      {}%
    }%
+   \renewcommand*\DTMDisplaydate[4]{%
+     \ifDTMshowdow
+       \ifnum##4>-1
+         \DTMifbool{romanian}{abbr}%
+         {\DTMromanianshortWeekdayname{##4}}%
+         {\DTMromanianWeekdayname{##4}}%
+         \DTMromaniandowdaysep
+         \DTMifbool{romanian}{showdayofmonth}%
+         {%
+           \DTMromanianordinal{##3}%
+           \DTMromaniandaymonthsep
+         }%
+         {}%
+         \DTMifbool{romanian}{abbr}%
+         {\DTMromanianshortmonthname{##2}}%
+         {\DTMromanianmonthname{##2}}%
+         \DTMifbool{romanian}{showyear}%
+         {%
+           \DTMromanianmonthyearsep
+           \number##1 % space intended
+         }%
+         {}%
+       \else
+         \DTMifbool{romanian}{showdayofmonth}
+         {%
+           \DTMromanianordinal{##3}%
+           \DTMromaniandaymonthsep
+           \DTMifbool{romanian}{abbr}%
+           {\DTMromanianshortmonthname{##2}}%
+           {\DTMromanianmonthname{##2}}%
+         }%
+         {%
+           \DTMifbool{romanian}{abbr}%
+           {\DTMromanianshortMonthname{##2}}%
+           {\DTMromanianMonthname{##2}}%
+         }%
+         \DTMifbool{romanian}{showyear}%
+         {%
+           \DTMromanianmonthyearsep
+           \number##1 % space intended
+         }%
+         {}%
+       \fi
+     \else
+       \DTMifbool{romanian}{showdayofmonth}
+       {%
+        \DTMromanianordinal{##3}%
+        \DTMromaniandaymonthsep
+        \DTMifbool{romanian}{abbr}%
+        {\DTMromanianshortmonthname{##2}}%
+        {\DTMromanianmonthname{##2}}%
+       }%
+       {%
+        \DTMifbool{romanian}{abbr}%
+        {\DTMromanianshortMonthname{##2}}%
+        {\DTMromanianMonthname{##2}}%
+       }%
+       \DTMifbool{romanian}{showyear}%
+       {%
+        \DTMromanianmonthyearsep
+        \number##1 % space intended
+       }%
+       {}%
+     \fi
+   }%
  }%
- {% time style (use default)
-   \DTMsettimestyle{default}%
+ {% time style (ignores seconds)
+   \renewcommand*\DTMdisplaytime[3]{%
+     \number##1
+     \DTMromaniantimesep\DTMtwodigits{##2}%
+   }%
  }%
  {% zone style
    \DTMresetzones

Modified: trunk/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.ins	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/source/latex/datetime2-romanian/datetime2-romanian.ins	2017-04-10 22:03:09 UTC (rev 43743)
@@ -4,17 +4,20 @@
 
  datetime2-romanian.dtx
  Copyright 2015 Nicola Talbot
+ Copyright 2017 Paul A. Patience <pap at papatience.com>
 
  This work may be distributed and/or modified under the
  conditions of the LaTeX Project Public License, either version 1.3
- of this license of (at your option) any later version.
+ of this license or (at your option) any later version.
  The latest version of this license is in
    http://www.latex-project.org/lppl.txt
  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 Paul A. Patience.
+
  This work consists of the files datetime2-romanian.dtx and
  datetime2-romanian.ins and the derived files
  datetime2-romanian-utf8.ldf, datetime2-romanian-ascii.ldf and

Modified: trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-ascii.ldf	2017-04-10 22:03:09 UTC (rev 43743)
@@ -8,17 +8,20 @@
 %% 
 %%  datetime2-romanian.dtx
 %%  Copyright 2015 Nicola Talbot
+%%  Copyright 2017 Paul A. Patience <pap at papatience.com>
 %% 
 %%  This work may be distributed and/or modified under the
 %%  conditions of the LaTeX Project Public License, either version 1.3
-%%  of this license of (at your option) any later version.
+%%  of this license or (at your option) any later version.
 %%  The latest version of this license is in
 %%    http://www.latex-project.org/lppl.txt
 %%  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 Paul A. Patience.
+%% 
 %%  This work consists of the files datetime2-romanian.dtx and
 %%  datetime2-romanian.ins and the derived files
 %%  datetime2-romanian-utf8.ldf, datetime2-romanian-ascii.ldf and
@@ -39,7 +42,7 @@
 %%   Right bracket \]     Circumflex    \^     Underscore    \_
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
-\ProvidesDateTimeModule{romanian-ascii}[2015/03/31 v1.0]
+\ProvidesDateTimeModule{romanian-ascii}[2017/04/08 v1.01]
 \newcommand*{\DTMromanianordinal}[1]{%
   \number#1
 }
@@ -99,6 +102,62 @@
   Decembrie%
   \fi
 }
+\newcommand*{\DTMromanianshortmonthname}[1]{%
+  \ifcase#1
+  \or
+  ian.%
+  \or
+  feb.%
+  \or
+  mart.%
+  \or
+  apr.%
+  \or
+  mai%
+  \or
+  iun.%
+  \or
+  iul.%
+  \or
+  aug.%
+  \or
+  sept.%
+  \or
+  oct.%
+  \or
+  nov.%
+  \or
+  dec.%
+  \fi
+}
+\newcommand*{\DTMromanianshortMonthname}[1]{%
+  \ifcase#1
+  \or
+  Ian.%
+  \or
+  Feb.%
+  \or
+  Mart.%
+  \or
+  Apr.%
+  \or
+  Mai%
+  \or
+  Iun.%
+  \or
+  Iul.%
+  \or
+  Aug.%
+  \or
+  Sept.%
+  \or
+  Oct.%
+  \or
+  Nov.%
+  \or
+  Dec.%
+  \fi
+}
 \newcommand*{\DTMromanianweekdayname}[1]{%
   \ifcase#1
   luni%
@@ -133,6 +192,40 @@
   Duminic\protect\u a%
   \fi
 }
+\newcommand*{\DTMromanianshortweekdayname}[1]{%
+  \ifcase#1
+  lun.%
+  \or
+  mar.%
+  \or
+  mie.%
+  \or
+  joi%
+  \or
+  vin.%
+  \or
+  s\protect\^am.%
+  \or
+  dum.%
+  \fi
+}
+\newcommand*{\DTMromanianshortWeekdayname}[1]{%
+  \ifcase#1
+  Lun.%
+  \or
+  Mar.%
+  \or
+  Mie.%
+  \or
+  Joi%
+  \or
+  Vin.%
+  \or
+  S\protect\^am.%
+  \or
+  Dum.%
+  \fi
+}
 \endinput
 %%
 %% End of file `datetime2-romanian-ascii.ldf'.

Modified: trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian-utf8.ldf	2017-04-10 22:03:09 UTC (rev 43743)
@@ -8,17 +8,20 @@
 %% 
 %%  datetime2-romanian.dtx
 %%  Copyright 2015 Nicola Talbot
+%%  Copyright 2017 Paul A. Patience <pap at papatience.com>
 %% 
 %%  This work may be distributed and/or modified under the
 %%  conditions of the LaTeX Project Public License, either version 1.3
-%%  of this license of (at your option) any later version.
+%%  of this license or (at your option) any later version.
 %%  The latest version of this license is in
 %%    http://www.latex-project.org/lppl.txt
 %%  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 Paul A. Patience.
+%% 
 %%  This work consists of the files datetime2-romanian.dtx and
 %%  datetime2-romanian.ins and the derived files
 %%  datetime2-romanian-utf8.ldf, datetime2-romanian-ascii.ldf and
@@ -39,7 +42,7 @@
 %%   Right bracket \]     Circumflex    \^     Underscore    \_
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
-\ProvidesDateTimeModule{romanian-utf8}[2015/03/31 v1.0]
+\ProvidesDateTimeModule{romanian-utf8}[2017/04/08 v1.01]
 \newcommand*{\DTMromanianordinal}[1]{%
   \number#1
 }
@@ -99,11 +102,67 @@
   Decembrie%
   \fi
 }
+\newcommand*{\DTMromanianshortmonthname}[1]{%
+  \ifcase#1
+  \or
+  ian.%
+  \or
+  feb.%
+  \or
+  mart.%
+  \or
+  apr.%
+  \or
+  mai%
+  \or
+  iun.%
+  \or
+  iul.%
+  \or
+  aug.%
+  \or
+  sept.%
+  \or
+  oct.%
+  \or
+  nov.%
+  \or
+  dec.%
+  \fi
+}
+\newcommand*{\DTMromanianshortMonthname}[1]{%
+  \ifcase#1
+  \or
+  Ian.%
+  \or
+  Feb.%
+  \or
+  Mart.%
+  \or
+  Apr.%
+  \or
+  Mai%
+  \or
+  Iun.%
+  \or
+  Iul.%
+  \or
+  Aug.%
+  \or
+  Sept.%
+  \or
+  Oct.%
+  \or
+  Nov.%
+  \or
+  Dec.%
+  \fi
+}
 \newcommand*{\DTMromanianweekdayname}[1]{%
   \ifcase#1
   luni%
   \or
-  marţi%
+  marți%
   \or
   miercuri%
   \or
@@ -120,7 +179,7 @@
   \ifcase#1
   Luni%
   \or
-  Marţi%
+  Marți%
   \or
   Miercuri%
   \or
@@ -133,6 +192,40 @@
   Duminică%
   \fi
 }
+\newcommand*{\DTMromanianshortweekdayname}[1]{%
+  \ifcase#1
+  lun.%
+  \or
+  mar.%
+  \or
+  mie.%
+  \or
+  joi%
+  \or
+  vin.%
+  \or
+  sâm.%
+  \or
+  dum.%
+  \fi
+}
+\newcommand*{\DTMromanianshortWeekdayname}[1]{%
+  \ifcase#1
+  Lun.%
+  \or
+  Mar.%
+  \or
+  Mie.%
+  \or
+  Joi%
+  \or
+  Vin.%
+  \or
+  Sâm.%
+  \or
+  Dum.%
+  \fi
+}
 \endinput
 %%
 %% End of file `datetime2-romanian-utf8.ldf'.

Modified: trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf	2017-04-10 22:02:53 UTC (rev 43742)
+++ trunk/Master/texmf-dist/tex/latex/datetime2-romanian/datetime2-romanian.ldf	2017-04-10 22:03:09 UTC (rev 43743)
@@ -8,17 +8,20 @@
 %% 
 %%  datetime2-romanian.dtx
 %%  Copyright 2015 Nicola Talbot
+%%  Copyright 2017 Paul A. Patience <pap at papatience.com>
 %% 
 %%  This work may be distributed and/or modified under the
 %%  conditions of the LaTeX Project Public License, either version 1.3
-%%  of this license of (at your option) any later version.
+%%  of this license or (at your option) any later version.
 %%  The latest version of this license is in
 %%    http://www.latex-project.org/lppl.txt
 %%  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 Paul A. Patience.
+%% 
 %%  This work consists of the files datetime2-romanian.dtx and
 %%  datetime2-romanian.ins and the derived files
 %%  datetime2-romanian-utf8.ldf, datetime2-romanian-ascii.ldf and
@@ -39,7 +42,7 @@
 %%   Right bracket \]     Circumflex    \^     Underscore    \_
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
-\ProvidesDateTimeModule{romanian}[2015/03/31 v1.0]
+\ProvidesDateTimeModule{romanian}[2017/04/08 v1.01]
 \RequirePackage{ifxetex,ifluatex}
 \ifxetex
  \RequireDateTimeModule{romanian-utf8}
@@ -50,6 +53,7 @@
    \RequireDateTimeModule{romanian-ascii}
  \fi
 \fi
+\newcommand*{\DTMromaniandowdaysep}{\space}
 \newcommand*{\DTMromaniandaymonthsep}{%
  \DTMtexorpdfstring{\protect~}{\space}%
 }
@@ -58,6 +62,7 @@
 \newcommand*{\DTMromaniantimezonesep}{\space}
 \newcommand*{\DTMromaniandatesep}{.}
 \newcommand*{\DTMromaniantimesep}{:}
+\DTMdefkey{romanian}{dowdaysep}{\renewcommand*{\DTMromaniandowdaysep}{#1}}
 \DTMdefkey{romanian}{daymonthsep}{\renewcommand*{\DTMromaniandaymonthsep}{#1}}
 \DTMdefkey{romanian}{monthyearsep}{\renewcommand*{\DTMromanianmonthyearsep}{#1}}
 \DTMdefkey{romanian}{datetimesep}{\renewcommand*{\DTMromaniandatetimesep}{#1}}
@@ -64,6 +69,8 @@
 \DTMdefkey{romanian}{timezonesep}{\renewcommand*{\DTMromaniantimezonesep}{#1}}
 \DTMdefkey{romanian}{datesep}{\renewcommand*{\DTMromaniandatesep}{#1}}
 \DTMdefkey{romanian}{timesep}{\renewcommand*{\DTMromaniantimesep}{#1}}
+\DTMdefboolkey{romanian}{abbr}[true]{}
+\DTMsetbool{romanian}{abbr}{false}
 \DTMdefboolkey{romanian}{mapzone}[true]{}
 \DTMsetbool{romanian}{mapzone}{true}
 \DTMdefboolkey{romanian}{showdayofmonth}[true]{}
@@ -74,36 +81,101 @@
  {romanian}% label
  {% date style
    \renewcommand*\DTMdisplaydate[4]{%
-     \DTMifbool{romanian}{showdayofmonth}
-     {\DTMromanianordinal{##3}\DTMromaniandaymonthsep}%
-     {}%
-     \DTMromanianmonthname{##2}%
-     \DTMifbool{romanian}{showyear}%
+     \ifDTMshowdow
+       \ifnum##4>-1
+         \DTMifbool{romanian}{abbr}%
+         {\DTMromanianshortweekdayname{##4}}%
+         {\DTMromanianweekdayname{##4}}%
+         \DTMromaniandowdaysep
+       \fi
+     \fi
+     \DTMifbool{romanian}{showdayofmonth}%
      {%
-       \DTMromanianmonthyearsep
-       \number##1
+       \DTMromanianordinal{##3}%
+       \DTMromaniandaymonthsep
      }%
      {}%
-   }%
-   \renewcommand*\DTMDisplaydate[4]{%
-     \DTMifbool{romanian}{showdayofmonth}
-     {%
-       \DTMromanianordinal{##3}\DTMromaniandaymonthsep
-       \DTMromanianmonthname{##2}%
-     }%
-     {%
-       \DTMromanianMonthname{##2}%
-     }%
+     \DTMifbool{romanian}{abbr}%
+     {\DTMromanianshortmonthname{##2}}%
+     {\DTMromanianmonthname{##2}}%
      \DTMifbool{romanian}{showyear}%
      {%
        \DTMromanianmonthyearsep
-       \number##1
+       \number##1 % space intended
      }%
      {}%
    }%
+   \renewcommand*\DTMDisplaydate[4]{%
+     \ifDTMshowdow
+       \ifnum##4>-1
+         \DTMifbool{romanian}{abbr}%
+         {\DTMromanianshortWeekdayname{##4}}%
+         {\DTMromanianWeekdayname{##4}}%
+         \DTMromaniandowdaysep
+         \DTMifbool{romanian}{showdayofmonth}%
+         {%
+           \DTMromanianordinal{##3}%
+           \DTMromaniandaymonthsep
+         }%
+         {}%
+         \DTMifbool{romanian}{abbr}%
+         {\DTMromanianshortmonthname{##2}}%
+         {\DTMromanianmonthname{##2}}%
+         \DTMifbool{romanian}{showyear}%
+         {%
+           \DTMromanianmonthyearsep
+           \number##1 % space intended
+         }%
+         {}%
+       \else
+         \DTMifbool{romanian}{showdayofmonth}
+         {%
+           \DTMromanianordinal{##3}%
+           \DTMromaniandaymonthsep
+           \DTMifbool{romanian}{abbr}%
+           {\DTMromanianshortmonthname{##2}}%
+           {\DTMromanianmonthname{##2}}%
+         }%
+         {%
+           \DTMifbool{romanian}{abbr}%
+           {\DTMromanianshortMonthname{##2}}%
+           {\DTMromanianMonthname{##2}}%
+         }%
+         \DTMifbool{romanian}{showyear}%
+         {%
+           \DTMromanianmonthyearsep
+           \number##1 % space intended
+         }%
+         {}%
+       \fi
+     \else
+       \DTMifbool{romanian}{showdayofmonth}
+       {%
+        \DTMromanianordinal{##3}%
+        \DTMromaniandaymonthsep
+        \DTMifbool{romanian}{abbr}%
+        {\DTMromanianshortmonthname{##2}}%
+        {\DTMromanianmonthname{##2}}%
+       }%
+       {%
+        \DTMifbool{romanian}{abbr}%
+        {\DTMromanianshortMonthname{##2}}%
+        {\DTMromanianMonthname{##2}}%
+       }%
+       \DTMifbool{romanian}{showyear}%
+       {%
+        \DTMromanianmonthyearsep
+        \number##1 % space intended
+       }%
+       {}%
+     \fi
+   }%
  }%
- {% time style (use default)
-   \DTMsettimestyle{default}%
+ {% time style (ignores seconds)
+   \renewcommand*\DTMdisplaytime[3]{%
+     \number##1
+     \DTMromaniantimesep\DTMtwodigits{##2}%
+   }%
  }%
  {% zone style
    \DTMresetzones



More information about the tex-live-commits mailing list