year-suffix-delimiter cannot be empty (?)
Hi
I am trying to implement a style in which, if I had 2 works from Smith in 2006 and one in 2007, the citation would look like:
(Smith 2006ab, 2007)
Now, I _think_ the delimiter between the a and b should be given by year-suffix-delimiter="D", where D is the delimiter. But I want no delimiter at all, so I set year-suffix-delimiter="", but when I do that Zotero seems to do some kind of substitution and uses the delimiter for separating 2006 from 2007 -- a comma in this case -- instead, as if it is defaulting to this. So, when year-suffix-delimiter is empty, it gets replaced by the layout delimiter. Can I specify an empty delimiter in some other way, so it stays empty?
To be clear, if I specify:
year-suffix-delimiter="Q"
I get
(Smith 2006aQb, 2007).
If I specify
year-suffix-delimiter="" (empty, which is what I want) I get:
(Smith 2006a, b, 2007)
which is wrong. It has replaced the empty delimiter with the between-entry delimiter. How can I force an empty delimiter?
I am trying to implement a style in which, if I had 2 works from Smith in 2006 and one in 2007, the citation would look like:
(Smith 2006ab, 2007)
Now, I _think_ the delimiter between the a and b should be given by year-suffix-delimiter="D", where D is the delimiter. But I want no delimiter at all, so I set year-suffix-delimiter="", but when I do that Zotero seems to do some kind of substitution and uses the delimiter for separating 2006 from 2007 -- a comma in this case -- instead, as if it is defaulting to this. So, when year-suffix-delimiter is empty, it gets replaced by the layout delimiter. Can I specify an empty delimiter in some other way, so it stays empty?
To be clear, if I specify:
year-suffix-delimiter="Q"
I get
(Smith 2006aQb, 2007).
If I specify
year-suffix-delimiter="" (empty, which is what I want) I get:
(Smith 2006a, b, 2007)
which is wrong. It has replaced the empty delimiter with the between-entry delimiter. How can I force an empty delimiter?
I can get it to work in Zotero desktop by doing this in the citation definition:
year-suffix-delimiter="‌"
(that is, HTML for a zero-width non-joiner).
I find that if I put in
year-suffix-delimiter=""
the delimiter gets replaced by the between-entry delimiter (comma space), which is not what I want.
Now, what I want to note is that this solution works in Zotero desktop (Win 10), but the exact same bit of code does not work in the code editor: https://editor.citationstyles.org/codeEditor/ -- in which the value of year-suffix-delimiter seems to be ignored.
As a workaround, you can insert a zero-width-space as year suffix delimiter:
year-suffix-delimiter="​"
I think it works using the code editor though, doesn't it?
year-suffix-delimiter="DDD"
And it still has no effect. No ampersands at all. The DDD shows up in desktop app, so I suspect a bug in online editor.
You’d put together a set of test items in a group library, develop the style in the text editor and keep a terminal window open next to it with the citeproc-test-runner which will rerun the tests on the test items whenever you save the style file.