michal-h21 / biblatex-iso690

ISO 690 style for biblatex.
LaTeX Project Public License v1.3c
93 stars 31 forks source link

Trailing question mark in title changes howpublished from online to Online #95

Closed Witiko closed 2 years ago

Witiko commented 2 years ago

Here is a minimal working example:

\documentclass{article}
\usepackage[czech]{babel}
\usepackage{expl3,csquotes}
\usepackage[style=iso-authoryear]{biblatex}
\begin{filecontents}{mwe.bib}

@online{with-question-mark,
    author    = {SÚKL},
    title     = {eRecept: Co je to identifikátor eReceptu?},
    url       = {https://www.epreskripce.cz/co-je-identifikator-ereceptu},
    urldate   = {2021-09-29},
    location  = {Brno},
    langid    = {czech}
}

@online{without-question-mark,
    author    = {SÚKL},
    title     = {eRecept: Co je to identifikátor eReceptu},
    url       = {https://www.epreskripce.cz/co-je-identifikator-ereceptu},
    urldate   = {2021-09-29},
    location  = {Brno},
    langid    = {czech}
}

\end{filecontents}
\addbibresource{mwe.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}

I typeset the example with a current TeX Live Docker image:

docker run --rm -v "$PWD":/workdir -w /workdir texlive/texlive@sha256:68c35d645848342722316bf505b5d4ed528107f62cb60bbd324e1c5a836cd529 latexmk -pdf mwe.tex

I receive the following output:

mwe

Apparently, adding a question mark at the end of the title changes howpublished from online to Online. As a workaround, I can force the correct text by specifying howpublished = {online}.

michal-h21 commented 2 years ago

@Witiko thanks for the report. I've updated the macro that prints [online] string to ignore the punctuation tracker, so it should always print the string in lowercase.

DavidLuptak commented 2 years ago

Closing the issue now.