Closed Quintus closed 2 years ago
Thanks for the report! Currently citeproc-el's CSL engine totally disregards the language field, so this is to be expected, the biblatex -> CSL mapping also simply drops the langid field. None of this should be complicated to change, however, so I'll try to push a fix soon.
I've merged a PR (#86) which should fix this -- thanks again. Please note that -- following the CSL standard -- items without a set individual language field are considered to be in the language of the locale, so with
#+language: de
only items with set English langids will be title-cased. (I hope this is the behaviour you expect...)
Thank you! I tested 538fed794c29acf81efee8a2674268bd3d7cc471 and it now works as expected.
Please note that -- following the CSL standard -- items without a set individual language field are considered to be in the language of the local […]. (I hope this is the behaviour you expect...)
This is what I expect. It’s fine and actually comforts me, because notably some older entries in my bib files do not have langid
fields and they are mostly German. I keep adding langid
to them when I reference them, though. Ultimately all my entries will have a langid
field.
Dear Andras,
looks as if I finally also suffer from a titlecase problem. The CSL style I use currently does not use the
text-case
attribute anywhere, but even though I write in German, I ocassionally do cite English works. Their titles were sentence-cased, which bugged me a little (there is no standard for citing English works in a German work, I just find title case nicer) so I decided to modify the CSL style and add thetext-case
attribute. The resulting modifiedjuristische-schulung.csl
is provided below. It however turns out that in doing so citeproc now title-cases all titles, even those for which thelangid
field is not set to an English variant. That should not be; the relevant section from the CSL 1.0.1 spec reads (emphasis mine):Here's an MWE.org file:
Corresponding mwe.bib (notice the presence of
langid
):Exporting with the modified
juristische-schulung.csl
provided below results in:Whereas it should have been (notice the word “für” has to be lowercase):
citeproc at 2e7df666bfeed92178d20c5851a2945ed5760664. Org mode version 9.5 (release_9.5-225-g494c20 @ /home/quintus/.emacs.d/org-mode/lisp/).
-quintus
Modified juristische-schulung.csl with
text-case
set onbook
entries: