plk / biblatex-apa

APA style for BibLaTeX
88 stars 48 forks source link

Dutch: Date inaccuracies #219

Closed LukeSerne closed 10 months ago

LukeSerne commented 10 months ago

Description When using the latest dutch.lbx file, there are some inaccuracies with printing dates and date ranges. The below MWE can be

MWE

\documentclass{report}

\usepackage[dutch]{babel}
\usepackage[style=apa, backend=biber]{biblatex}

\begin{filecontents}[overwrite]{test.bib}
@online{DateMonthExample,
    author = {Tes, Terry},
    date = {2001-09},
    title = {Date month example},
    url = {https://www.example.com},
}
@online{DateRangeDaysExample,
    author = {Tes, Terry},
    date = {2002-09-01/2002-09-02},
    title = {Date range days example},
    url = {https://www.example.com},
}
@online{DateRangeMonthsExample,
    author = {Tes, Terry},
    date = {2003-08/2003-09},
    title = {Date range months example},
    url = {https://www.example.com},
}
\end{filecontents}
\addbibresource{test.bib}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

Observed output The MWE outputs the bibliography as follows (recreated in markdown):


Tes, T. (2001 september). Date month example. https://www.example.com Tes, T. (2002, 1 september–2). Date range days example. https://www.example.com Tes, T. (2003 augustus– september). Date range months example. https://www.example.com


Expected output I expected the dates to look as indicated below. I have highlighted the changes in bold.


Tes, T. (2001, september). Date month example. https://www.example.com Tes, T. (2002, 1–2 september). Date range days example. https://www.example.com Tes, T. (2003, augustus–september). Date range months example. https://www.example.com


In words: (i) there should be a comma after the year in all of the examples; (ii) when a date range is contained in a single month, the endash and second day-number should come before the month name; and (iii) if the range is between months, there should not be a space after the endash.

LukeSerne commented 10 months ago

Thanks for the quick fix. The first and third example look great with the latest version. The date in the second example is typeset as (2002, september 1–2) though, which should be (2002, 1–2 september) - the day range should come before the month.

plk commented 10 months ago

Should be correct now.

LukeSerne commented 10 months ago

Yeah, looks great. Thanks!