[Tex/LaTex] Move periods inside quotes in bibliography

biblatexcsquotespunctuation

I'm writing an article in Norwegian, and the guidelines specify that articles should be quoted in the bibliography as follows:

John Doe. 2005. "My article." A Cool Journal 16.

My impression is that this is the default style in Norway. Abstracting away from other issues (which I can fix) I'm not able to replicate the quote style with csquotes. Using style = norwegian will use bottom quotes and put the period after the quotes. Using style = american gets me somewhat closer, but the period is still after the quotes. There's something in the biblatex manual under §3.10.1 about moving the periods inside the quotes, but I don't understand the documentation on this point.

With style = norwegian:

\documentclass{article}
\usepackage{filecontents}
\usepackage[nynorsk]{babel}
\usepackage[style = norwegian, norwegian = quotes]{csquotes}
\usepackage[style = authoryear-comp, language = nynorsk]{biblatex}

\begin{filecontents}{\jobname.bib}
@article{myarticle,
    AUTHOR = "John Doe",
    TITLE = "My article",
    JOURNALTITLE = "A Cool Journal",
    VOLUME = "16",
    YEAR = "2005"}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{myarticle}
\printbibliography
\end{document}

enter image description here

With style = american:

\documentclass{article}
\usepackage{filecontents}
\usepackage[nynorsk]{babel}
\usepackage[style = american, norwegian = quotes]{csquotes}
\usepackage[style = authoryear-comp, language = nynorsk]{biblatex}

\begin{filecontents}{\jobname.bib}
@article{myarticle,
    AUTHOR = "John Doe",
    TITLE = "My article",
    JOURNALTITLE = "A Cool Journal",
    VOLUME = "16",
    YEAR = "2005"}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{myarticle}
\printbibliography
\end{document}

enter image description here

Best Answer

You simply have to tell biblatex to use the "American punctuation" for the nynorsk language, that is add the following lines in your preamble:

\DefineBibliographyExtras{nynorsk}{%
  \uspunctuation%
}

MWE:

\documentclass{article}
\usepackage{filecontents}
\usepackage[nynorsk]{babel}
\usepackage[style = american, norwegian = quotes]{csquotes}
\usepackage[style = authoryear-comp, language = nynorsk]{biblatex}

\begin{filecontents}{\jobname.bib}
@article{myarticle,
    AUTHOR = "John Doe",
    TITLE = "My article",
    JOURNALTITLE = "A Cool Journal",
    VOLUME = "16",
    YEAR = "2005"}
\end{filecontents}
\addbibresource{\jobname.bib}

\DefineBibliographyExtras{nynorsk}{%
  \uspunctuation%
}

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

Output:

enter image description here