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
<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
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
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.
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.
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.
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!
http://www.zotero.org/support/dev/svn_and_trac_access#zotero_client_dev_xpis