-
-
Notifications
You must be signed in to change notification settings - Fork 61
Parse more CSL vars embedded in CSL JSON note field #192
Comments
Just pinging: Since in Zotero there has been no progress on date ranges at all for many years, it would be great if pandoc-citeproc could parse ISO date ranges of the following forms out of the “note” variable:
The other date variables (accessed, container, event-date, original-date, submitted) would of course best be supported, too. For consistency, pandoc-citeproc should probably parse any date, not just date ranges here. For a simple calendar date, the Zotero Date field is of course sufficient, but for circa dates, seasons etc. in EDTF format it would again be helpful if pandoc-citeproc could parse these. pandoc-citeproc should continue to overwrite existing variables: For date ranges in particular this would allow having one date (range) in Zotero’s date field for display and sorting purposes (e.g., Any content in one of the date variables that cannot be identified as an ISO or (better) EDTF date or date range should of course be treated as a “literal” date. |
To clarify further, here’s an example showing the actual and the expected output from The CSL JSON format for dates – including the so-called “cheater syntax” that embeds variables inside the
actual output:
expected output:
Again, it’s support for cheater-syntax dates that’s particularly high on my wish list, since there’s currently no other way to get Zotero to export date ranges to CSL JSON via zotxt, for onward processing by pandoc. Hence:
|
The sole exception is |
Both braced and newline forms are supported. Closes #192.
It emerges that citeproc-js parses (some) CSL date vars embedded in CSL JSON note fields into their components:
YYYY
,YYYY-MM
,YYYY-MM-DD
,YYYY-MM-DD/YYYY-MM-DD
in embeddedaccessed
,container
,event-date
,issued
,original-date
,submitted
vars into their components.citeproc-js also parses CSL creator vars embedded in CSL JSON note fields:
||
as a field separator), e.g.,{:editor: Doe||John}
or{:editor: United Nations}
. Multiple creators can be entered by repeating this, e.g.,{:editor: Doe||John}{:editor: Roe||Ron}
.It would be great if pandoc-citeproc could support this, too.
The text was updated successfully, but these errors were encountered: