Article and webpage titles get trailing comma applied
For a Bibtex declaration such as:
@webpage{durand13,
author = {William Durand},
date-added = {2022-04-27 00:13:43 +0200},
date-modified = {2022-04-27 00:21:13 +0200},
month = {06},
title = {Object Calisthenics},
url = {https://williamdurand.fr/2013/06/03/object-calisthenics/},
year = {2013},
bdsk-url-1 = {https://williamdurand.fr/2013/06/03/object-calisthenics/}}
the output will be rendered as
W. Durand, “Object Calisthenics,” Jun. 2013. https://williamdurand.fr/2013/06/03/object-calisthenics/
Not the trailing, unexpected comma within the page's title. That looks wrong to me.
Which style and locale is this? I think this might be the expected output, but of course it depends on the details. Note that there is a locale option for this, so it's possible that this is determined by the locale in question (obviously you can modify the setting in the locale).
I'm using this through Asciidoctor PDF and Asciidoctor Bibtex. Ruby is not my native programming environment, and I very certainly don't know what I am doing. 😅
The punctuation-in-quote option suspiciously looks like what could solve the problem. Asciidoctor Bibtex instantiates a Processor as follows. style defaults to ieee, locale to en-US.
@citeproc = CiteProc::Processor.new style: @style, format: :html, locale: @locale
Do you have a pointer how I'd pipe in a value for the option into the instance?
If you can override the locale you can create your own copy of the en-US locale and use that.
Otherwise you can patch the default file used by the Ruby Gem. The csl-styles Gem downloads this file, so you need to find where the Gem is stored on your system. You should be able to determine this using the command gem contents csl-styles which should list all files installed by the csl-styles Gem. Filter that list to find the en-US locale file (it's in the vendor/locales subdirectory).