From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Cc: "András Simonyi" <andras.simonyi@gmail.com>
Subject: Re: [PATCH] oc-csl: New custom option `org-cite-csl-sentence-case-bibtex-titles'
Date: Wed, 15 May 2024 18:48:41 +0700 [thread overview]
Message-ID: <d8b1b73f-6b4e-4946-8873-748f78e19468@gmail.com> (raw)
In-Reply-To: <CAOWRwxDBsTGw3wKBVnuV=Cx+UC5w0PkcimZQ-WLJtZc1UL5p5w@mail.gmail.com>
On 11/05/2024 22:33, András Simonyi wrote:
> since bibtex and biblatex requires title fields to be in title case
> but CSL assumes that they are in sentence-case, citeproc-el converts
> title fields in bib(la)tex bibliography databases into sentence-case
> before processing them except for entries with an explicit non-English
> langid value.
I am not a user of citeproc-el, so feel free to disregard my comments.
In the past I had to adjust BibTeX styles, but yesterday I was surprised
that there are options for upper case, lower case, and sentence-style
capitalization, but not for title-style capitalization. It seems that
both approaches with title case and with sentence case have some
shortcomings. Likely title case like in BibTeX requires more explicit
hints and perhaps there are cases when available hints are not enough to
get specific formatting. I still expect that CSL needs hints as well to
avoid improper formatting.
Is it possible to keep title formatting from .bib files till it becomes
known that specific style requires sentence case for particular entry
type? I had a hope that it might alleviate the issue and to make things
working out of the box for more users.
> I'm a bit unsure about naming the option:
> Perhaps `org-cite-csl-sentence-case-bibtex-titles-without-langid'
A variant: org-cite-csl-bibtex-title-to-sentence-case
> @@ -584,7 +599,8 @@ property in INFO."
> (processor
> (citeproc-create
> (org-cite-csl--style-file info)
> - (citeproc-hash-itemgetter-from-any bibliography)
> + (citeproc-hash-itemgetter-from-any
> + bibliography (not org-cite-csl-sentence-case-bibtex-titles))
> (org-cite-csl--locale-getter)
> locale)))
> (plist-put info :cite-citeproc-processor processor)
I am not in the context, so I may be completely wrong.
Does it means that you added one more argument to `citeproc-create' and
that consistent Org and citeproc-el versions must be used? If so,
wouldn't it better to pass a property list to allow newer Org to work
with older citeproc-el or vice versa? It may be tricky to preserve
backward-forward compatibility on this step, but it should make further
changes easier. It may be reasonable to explicitly add version of
"protocol" to the property list, so that citeproc-el may decide if error
should be signaled in the case of serious version difference.
It is not clear for me why `org-cite-csl-sentence-case-bibtex-titles' is
a part of Org, not of citeproc-el. The only thing that Org can do is to
pass it to citeproc-el. It is not configurable per .org file and likely
it should not be. From my point of view it might be more suitable per
.bib file. Anyway it is almost unrelated to Org.
prev parent reply other threads:[~2024-05-15 11:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-11 15:33 [PATCH] oc-csl: New custom option `org-cite-csl-sentence-case-bibtex-titles' András Simonyi
2024-05-11 17:26 ` Ihor Radchenko
2024-05-14 9:58 ` András Simonyi
2024-05-17 13:34 ` Ihor Radchenko
2024-06-17 11:39 ` Ihor Radchenko
2024-06-18 15:52 ` András Simonyi
2024-06-19 9:27 ` András Simonyi
2024-06-19 14:36 ` Ihor Radchenko
2024-06-20 5:56 ` András Simonyi
2024-06-21 10:27 ` Max Nikulin
2024-07-06 9:59 ` András Simonyi
2024-07-08 10:57 ` Max Nikulin
2024-07-08 12:56 ` András Simonyi
2024-07-08 15:18 ` András Simonyi
2024-07-12 10:58 ` Max Nikulin
2024-05-15 11:48 ` Max Nikulin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d8b1b73f-6b4e-4946-8873-748f78e19468@gmail.com \
--to=manikulin@gmail.com \
--cc=andras.simonyi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).