% \iffalse meta-comment
%
%% regulatory-dutch.def
%% Copyright 2024-2026 E. Nijenhuis
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
% 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.3c or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status ‘maintained’.
%
% The Current Maintainer of this work is E. Nijenhuis.
%
% This work consists of the files listed in the meta-comment of
% regulatory-struct.dtx.
%
% \fi
%
% \subsection{\translation{Dutch definitions}{Nederlandse definities}}\label{sec:dutchdef}
% \setcounter{CodelineNo}{0}
%
% Dutch names an article `artikel', a paragraph `lid' and a point `onderdeel'. The
% \package{translations} dictionary translates `and' and `see' already, but its `to' means `aan', while a
% range of articles asks for `tot'.
%    \begin{macrocode}
\ProvidesRegulatoryLanguage{dutch}
    [2026/09/10 1.0.0 Dutch definitions for regulatory]

\DeclareTranslation{dutch}{article}{artikel}
\DeclareTranslation{dutch}{Article}{Artikel}
\DeclareTranslation{dutch}{articles}{artikelen}
\DeclareTranslation{dutch}{Articles}{Artikelen}
\DeclareTranslation{dutch}{paragraph}{lid}
\DeclareTranslation{dutch}{Paragraph}{Lid}
\DeclareTranslation{dutch}{paragraphs}{leden}
\DeclareTranslation{dutch}{Paragraphs}{Leden}
\DeclareTranslation{dutch}{point}{onderdeel}
\DeclareTranslation{dutch}{Point}{Onderdeel}
\DeclareTranslation{dutch}{points}{onderdelen}
\DeclareTranslation{dutch}{Points}{Onderdelen}
\DeclareTranslation{dutch}{to}{tot}
\DeclareTranslation{dutch}{Definitions}{Definities}
% Composes, unlike German: a Dutch noun keeps its shape after `van'. It does assume a de-word, so an
% artifact whose subject is a het-word gives a `ref label' of its own.
\DeclareTranslation{dutch}{of the}{van de}
%    \end{macrocode}
% Where English writes `Article 2(2), point (b)', Dutch writes `artikel 2, tweede lid, onderdeel b'. So a
% paragraph is written as an ordinal followed by its designation, a point is lettered with its designation
% in front of it and without brackets, and all parts are joined with a comma.
%
% An enumeration takes the plural of the designation, `de artikelen 162 tot en met 164' and `onderdelen c
% en d'. A paragraph is the exception: its designation follows the ordinals rather than preceding them,
% and Dutch keeps it singular there, `het tweede en derde lid'. The Leidraad shows no such enumeration
% written out in full, so this is the idiom rather than a rule, which is why it is set here and not among
% the initial values.
%    \begin{macrocode}
\regulatory@ifmodule{ref}{%
    \rref@setup{dutch}{
        group conjunction={,~}
    }{
        ref format=\rref@refformat@ordinal,
        label format=\rref@label@postfix,
        names=\GetTranslation{paragraph},
        Names=\GetTranslation{Paragraph},
        group conjunction={,~},
        group format=\rref@refformat@noop
    }{
        ref format=\rref@refformat@alpha,
        label format=\rref@label@prefix,
        group conjunction={,~},
        group format=\rref@refformat@noop
    }%
}{}
%    \end{macrocode}
%
% \subsubsection{\translation{Dutch citation registers}{Nederlandse citeerregisters}}\label{sec:srcnl}
%
% How a source is cited in Dutch, which is the same knowledge as the wording above and measured in the same
% texts, so it stands in the same file. Two registers, because Dutch serves two legal orders.
% \texttt{dutch} is how a Dutch instrument is cited: in full the form the Aanwijzingen voor de regelgeving
% lay down for regulations themselves, and shortened the form of the Leidraad voor juridische auteurs.
% \texttt{dutch\_eu} is how an act of the Union is cited in Dutch, which is a register of its own and not a
% variant of the first: the regulation writes \texttt{lid 1, punt a)} where the national register writes
% \texttt{eerste lid, onderdeel a}.
%
%    \begin{macrocode}
\regulatory@ifmodule{sources}{%
\newsourceregister{dutch}{
    articleone = artikel,
    articlemany = artikelen,
    articlenum = \regulatory@src@number@plain,
    paragraph = \regulatory@src@after,
    paragraphone = lid,
    paragraphmany = lid,
    paragraphnum = \regulatory@src@num@ordinal,
    point = \regulatory@src@before,
    pointone = onderdeel,
    pointmany = onderdelen,
    pointnum = \regulatory@src@num@plain,
    subpoint = \regulatory@src@before,
    subpointone = onder,
    subpointmany = onder,
    subpointnum = \regulatory@src@num@degree,
    and = {~en~},
    to = {~tot~en~met~},
    separator = {,~},
    determiner = de,
    connective = {van~},
    source = \regulatory@src@source@full@store
}{
    articleone = art.,
    articlemany = art.,
    articlenum = \regulatory@src@number@colon,
    paragraph = \regulatory@src@before,
    paragraphone = lid,
    paragraphmany = lid,
    paragraphnum = \regulatory@src@num@plain,
    point = \regulatory@src@before,
    pointone = onder,
    pointmany = onder,
    pointnum = \regulatory@src@num@plain,
    subpoint = \regulatory@src@before,
    subpointone = onder,
    subpointmany = onder,
    subpointnum = \regulatory@src@num@degree,
    and = {~en~},
    to = {-},
    separator = {~},
    determiner = de,
    connective = {},
    source = \regulatory@src@source@short@store
}

\newsourceregister{dutch_eu}{
    articleone = artikel,
    articlemany = artikelen,
    articlenum = \regulatory@src@number@plain,
    paragraph = \regulatory@src@before,
    paragraphone = lid,
    paragraphmany = leden,
    paragraphnum = \regulatory@src@num@plain,
    point = \regulatory@src@before,
    pointone = punt,
    pointmany = punten,
    pointnum = \regulatory@src@num@paren,
    subpoint = \regulatory@src@before,
    subpointone = onder,
    subpointmany = onder,
    subpointnum = \regulatory@src@num@unmeasured,
    and = {~en~},
    to = {~tot~en~met~},
    separator = {,~},
    determiner = de,
    connective = {van~},
    source = \regulatory@src@source@full@store
}{
    articleone = art.,
    articlemany = art.,
    articlenum = \regulatory@src@number@plain,
    paragraph = \regulatory@src@before,
    paragraphone = lid,
    paragraphmany = leden,
    paragraphnum = \regulatory@src@num@plain,
    point = \regulatory@src@before,
    pointone = punt,
    pointmany = punten,
    pointnum = \regulatory@src@num@paren,
    subpoint = \regulatory@src@before,
    subpointone = onder,
    subpointmany = onder,
    subpointnum = \regulatory@src@num@unmeasured,
    and = {~en~},
    to = {~tot~en~met~},
    separator = {~},
    determiner = de,
    connective = {},
    source = \regulatory@src@source@short@store
}

\newsourcedeterminer{dutch}{verordening}{de}
\newsourcedeterminer{dutch}{richtlijn}{de}
\newsourcedeterminer{dutch}{wet}{de}
\newsourcedeterminer{dutch}{wetboek}{het}
\newsourcedeterminer{dutch}{besluit}{het}
\newsourcedeterminer{dutch}{verdrag}{het}
\newsourcedeterminer{dutch_eu}{verordening}{de}
\newsourcedeterminer{dutch_eu}{richtlijn}{de}
\newsourcedeterminer{dutch_eu}{besluit}{het}
\newsourcedeterminer{dutch_eu}{verdrag}{het}
}{}
%    \end{macrocode}
%
