andras-simonyi / citeproc-el

A CSL 1.0.2 Citation Processor for Emacs.
GNU General Public License v3.0
84 stars 9 forks source link

Maintaining the original .bib source capitalization in titles #142

Closed lazzalazza closed 2 weeks ago

lazzalazza commented 1 year ago

I see that citeproc-el might automatically alter the capitalization of titles (I have seen the discussion on the APA guidelines and I understand that this behavior could be intentional). I work in a different language (Italian) with different capitalization rules, and I would simply need to maintain the "raw" title of my entries. Is there a way to achieve that?

I'm exporting to html via org export and I don't know at what level the problem occurs, but seeing the past discussions I fear the issue might be caused by citeproc-el trying to adapt titles to the APA guidelines.

I am using a personal .csl that doesn't specify the title-case attribute in the macro "title".

  <macro name="title">
    <text variable="title" font-style="italic"/>
   ...
  </macro>

If I tinker with the title-case attribuite I see changes as expected, but I cannot achieve an unaltered result.

This is the cite export command I use.

#+cite_export: csl path_to_my_personal.csl 

Is there any suggestion you might give me?

andras-simonyi commented 1 year ago

Hello, the cleanest (and, also, biblatex compatible) way of solving the problem would be setting the langid field of your Italian entries to "italian" (or anything else which is not on the citeproc-blt--titlecase-langids list). Is this an option?

lazzalazza commented 1 year ago

Hi, unfortunately not: I have to treat the whole of my bibliography the same, and I would like citeproc-el not to intervene on titles written in other languages either (plus, I have thousands of entries and modifying them all looks like a somewhat risky option). Is there a way to inhibit the behavior generally?

Il giorno 21 giu 2023, alle ore 09:06, András Simonyi @.***> ha scritto:

Hello, the cleanest (and, also, biblatex compatible) way of solving the problem would be setting the langid field of your Italian entries to "italian" (or anything else which is not on the citeproc-blt--titlecase-langids list). Is this an option?

— Reply to this email directly, view it on GitHub https://github.com/andras-simonyi/citeproc-el/issues/142#issuecomment-1600295864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AONRCSP72LPD63PK7LMTIT3XMKMQ7ANCNFSM6AAAAAAZNBQKIU. You are receiving this because you authored the thread.

andras-simonyi commented 3 weeks ago

I've now pushed a commit to org-mode's main branch which introduces a new user option, org-cite-csl-bibtex-titles-to-sentence-case, which can be used to turn off sentence-casing titles in entries that don't have an explicit English langid, so I'm planning to close this issue.