Main/sub title splitting in citeproc-js

18 views
Skip to first unread message

Frank Bennett

unread,
Aug 19, 2019, 9:59:53 PM8/19/19
to zotero-dev
A user from Brazil has posted a request for main/sub title splits to the Zotero forums:


As I note in the thread, citeproc-js is capable of doing this. While I mentioned in the thread that "the default could be changed," I won't be changing the default in the processor source, since the variables "title-main" and "title-sub" that it makes available are outside the CSL specification. Whether to use it is not my call.

The option can be enabled in the sys object used to instantiate the processor:

    sys.main_title_from_short_title = true;

FB

Frank Bennett

unread,
Aug 19, 2019, 10:05:20 PM8/19/19
to zotero-dev
(And yeah, the option is badly named. It dates from the time when main/sub splits required matching content in the shortTitle field, which is no longer the case.)

Dan Stillman

unread,
Aug 19, 2019, 10:08:05 PM8/19/19
to zoter...@googlegroups.com
It seems like it would be better to discuss this first on the CSL list to see if there's any chance of official take-up, no? While it sounds like the case for this is clear, we don't really want to get in the habit of adding support for unofficial style features that won't work in other programs.

Frank Bennett

unread,
Aug 19, 2019, 10:13:11 PM8/19/19
to zotero-dev
Yes, I wavered over whether to post here or to CSL Discuss. Will repost there and see what happens with it.

FB

--
You received this message because you are subscribed to the Google Groups "zotero-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zotero-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zotero-dev/0100016cacc7fbcb-5424d47d-4227-4bd4-95a3-db9026a55d65-000000%40email.amazonses.com.
Reply all
Reply to author
Forward
0 new messages