Closed nickw2066 closed 3 months ago
Thanks for reporting the bug the bug and I can reproduce it.
I've finally fixed this bug! It's much complicated than I initially expected because I have to rewrite the fundamental module of parsing quotation marks and pseudo HTML tags which involves tons of test cases.
Also note that the backtick character `
is not recommend in Zotero field. Zotero's item data is not teated as LaTeX code and thus the `yeah'
in your provided example is interpreted as a word with a backtick and an apostrophe rather than a quoted word. The former is then directly outputted to LaTeX and is recognized as left quote and the latter is converted to Unicode curly apostrophe by the citeproc-lua engine. I suggest using curly quotation marks (‘yeah’
) or plain straight quotes ('yeah'
) in this case.
BTW it's safe to use LaTeX form `yeah'
in .bib
database because citeproc-lua can convert both punctuations to Unicode curly quotation marks.
Thank you so much!
On 14 Aug 2024, at 8:57 AM, Zeping Lee @.***> wrote:
I've finally fixed this bug! It's much complicated than I initially expected because I have to rewrite the fundamental module of parsing quotation marks and pseudo HTML tags which involves tons of test cases.
Screenshot.2024-08-14.at.09.30.24.png (view on web) https://github.com/user-attachments/assets/554a4182-ca30-4955-a8d8-e30f1abba82f Also note that the backtick character
is not recommend in Zotero field. Zotero's item data is not teated as LaTeX code and thus the
yeah' in your provided example is interpreted as a word with a backtick and an apostrophe rather than a quoted word. The former is then directly outputted to LaTeX and is recognized as left quote and the latter is converted to Unicode curly apostrophe by the citeproc-lua engine. I suggest using curly quotation marks (‘yeah’) or plain straight quotes ('yeah') in this case.BTW it's safe to use LaTeX form `yeah' in .bib database because citeproc-lua can convert both punctuations to Unicode curly quotation marks.
— Reply to this email directly, view it on GitHub https://github.com/zepinglee/citeproc-lua/issues/71#issuecomment-2287687369, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2MWFLBRW2JIMCWKX6EPATTZRK2PNAVCNFSM6AAAAABL3PUX4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBXGY4DOMZWHE. You are receiving this because you authored the thread.
Describe the bug In the annotated bibliography below quotation marks seem to be processed fine in the shorter note, but with the slightly longer note problems arise.
Additional information
citation-style-language
version v0.5.0lualatex
To Reproduce
Screenshots
The csl file is from: https://github.com/citation-style-language/styles/blob/master/apa-annotated-bibliography.csl