problem with ";" in macro

Hello community, my problem:

<macro name="author">
<names variable="author composer collection-editor" delimiter=" ; ">
<name name-as-sort-order="all" sort-separator=", " initialize-with="." delimiter= "- "
delimiter-precedes-last="always" font-variant="small-caps"/>
<label form="short" prefix=" (" suffix=".)"/>
</names>
</macro>

leads in the bibliography e.g. to:

[1] Curbach, M.- Hauptenbucher, B.- Ortlepp, R.- Weiland, S.:

please look at: " - " between the names.

I need to replace " - " symbol with " ; " in the bibliography and change it in the programm text. But then I get at the bibliography:

[1] Curbach, M. Hauptenbucher, B. Ortlepp, R.; Weiland, S.:

ONLY the 3rd name gets the " ; " in the bibliography. The two " ; " are missed between the first 3 authors. It works correctly if e.g. I replace " - " with " , " then I get:

[1] Curbach, M., Hauptenbucher, B., Ortlepp, R., Weiland, S.:

Is there anybody who can give me an advice?
Thank you in advance,

Michael
  • Addendum:

    If I replace " - " with " ;; " then I get at the bibliography:

    [1] Curbach, M.; Hauptenbucher, B.; Ortlepp, R.;; Weiland, S.:

    Ortlepp gets the two semicolions.
    That's not understandable what happens to the first names.

    That would be so great if somebody could help me!

    Michael
  • It would help to have a sample entry that is formatted correctly, according to your requirements. It would also be helpful if you could paste the full style to gist.github.com, save it as a public gist, and post the URL from the address bar back here.
  • I can confirm this - the reason is that Zotero sees a period followed by a semicolon and regards that as a mistake and thus doesn't print the semicolon.
    You can get around this by using
    delimiter=".; " - it's ugly but it works. My suspicion would be that you're getting the semicolon for the third author because s/he already has a period in Zotero - you've saved the author as Ortlepp, R. - - so Zotero sees ..; and just removes the 2nd period - that one will not work correctly when you use my suggested workaround.
    I'm not sure if this is a bug or if there is a specific case that csl coders envisioned when coding this.

    Frenzel - I wrote that before I saw your addendum - same solution, but hope the explation make sense.
    Frank - You can replicate this with any style that uses initials with a period. I don't think there's any need for Frenzel to post anything more.
  • I'll take your word for it that there is a problem, and I'd like to take a look, but I'm not in the zone on this. It would really help to have the issue laid out as a single "want this" / "got this" example.
  • sure
    https://gist.github.com/1047974
    has as style, and RDF with one test item and a txt file with expected and actual output.
    Note that I tried to pack all the weirdness in there - because of the "delimiter-precedes-last="always" option the actual output does have a semicolon before the last author, but not the others - that also makes the workaround discussed above not viable.
  • Thanks -- that really simplifies things at this end.

    I've put up a fresh release of the processor (v1.0.183) that fixes this. The logic of punctuation reconciliation isn't written down in detail anywhere, and it's not part of the CSL spec. I (literally) made it up as I went along. The test suite is our friend on these.
  • Frenzel - for you that means this will work correctly in the next version of Zotero - let us know if you need it faster than that (usually small update versions come out about once a month).
  • Thank you very much for your help. I hope the next Zotero version comes soon. I am not in very hury with that matter but I would like to use it correctly as soon as possible.
  • Hi Frank,
    I'm trying to implement your new citeproc processor into Zotero to fix the semi colon problem. I installed the latest version via hg clone http://bitbucket.org/fbennett/citeproc-js/ but the problem is still there?

    Would you be able to tell me what I'm doing wrong?

    Thanks!
  • this works correctly in the Zotero branch XPI, which includes a pretty recent citeproc - I think .190
    http://www.zotero.org/support/dev/svn_and_trac_access#zotero_client_dev_xpis
  • Thanks Adam! Now Zotero references correctly :)
Sign In or Register to comment.