zotero / citeproc-rs

CSL processor in Rust.
https://cormacrelf.github.io/citeproc-wasm-demo/
Other
69 stars 12 forks source link

Add an option to disable citeproc-rs name-parser #135

Open adomasven opened 2 years ago

adomasven commented 2 years ago

As discussed here https://github.com/zotero/zotero/pull/2220#discussion_r729507813

cormacrelf commented 2 years ago

I've discovered there is actually a way to turn it off already, that works on both citeproc-rs and citeproc-js, and maybe you're actually already doing it: add a static-particles: true flag to each name. It's not a global flag, but it is a one-liner in your name parser.

cormacrelf commented 2 years ago

It is specifically each name, so for example

{
    "author": [
        { "family": "van Dyke", "given": "Dick", "static-particles": true }
    ]
}

will not parse the van into a non-dropping particle like it normally would.

adomasven commented 2 years ago

Since name parsing is not part of the CSL spec I think there should still be a global option.