Problems CMoS german mod (prefix space & date month short)
I know HTML and for a private historical project I am actually
trying (for the first time) to modify the CSL-style CMoS - Chicago
Manual of Style (Note with Bibliography).
First steps are done and something seems to work. But i run into
problems with 2 desired outputs:
- I like to output a space before the "accessed/day" output. When I
enter a character like "x" as prefix this results in the desired
output, but a " "(space) seems to be supressed. I'm confused because
the workarround is not good (see exemple code). What can be done? - Using Firefox german i work with localized dates; with the short
month form in german there is a problem: while eight months are really
shortened to three characters (Jan, Feb, Apr, Aug, Sep, Okt, Nov, Dez)
the remaining are not shortened (März, Mai, Juni, Juli). This is in my
eyes inconsistent, because for the first eight you have to add the "."
while on the others this looks odd. Is the only way to use if and
construct two month outputs? Can someone make an exemple how to do
this? (see exemple code).
<!-- output "URL 22. Jun. 2011: http://www.onlinedomain.org/linkxyz " -->
<group prefix="URL "> <!-- space added because prob with space below -->
<choose>
<if type="legal_case" match="none">
<choose>
<if variable="accessed" match="any">
<date variable="accessed">
<date-part name="day" form="numeric" suffix=". " prefix=" "/> <!-- problem with prefix space? -->
<date-part name="month" form="short" suffix=". "/> <!-- probs with März./Mai./Juni./Juli. in german -->
<date-part name="year" form="long"/>
</date>
</if>
</choose>
<text variable="URL" prefix=": "/>
</if>
</choose>
</group>
<group prefix="URL">
<choose>
<if type="legal_case" match="none">
<date variable="accessed" prefix=" ">
<date-part name="day" form="numeric" suffix=". "/>
<date-part name="month" form="short"/>
<date-part name="year" form="long"/>
</date>
<text variable="URL" prefix=": "/>
</if>
</choose>
</group>
2. that is a problem of the automatic conversion from 0.8.1. csl to 1.0 csl - I'd bet you're coding your style in 0.8.1 and that creates a bit of a mess.
An up to date csl 1.0 version of CMoS is on the repository
or you can update your own style.
http://citationstyles.org/downloads/upgrade-notes.html#updating-csl-0-8-styles
3. That's also a problem with using 0.8.1. - in csl 1.0, all abbrevations are saved with the period included - so you'd remove the period from the suffix, remove the "strip-periods="true" that the auto-converter will put there, and then get Jan., Feb., März, Apr., Mai etc.
edit: to clarify - Rintze is right about what he writes, but this won't work correctly if I'm right and you're editing a 0.8.1 csl
I really hope Zotero enables automatic style updating, so users get rid of (most of) the CSL 0.8.1 styles they accumulated during the pre-Zotero 2.1 days (although it might be a good idea to back up the original styles when enabling automatic style updating, so users who made modifications without changing the style ID won't lose their customized styles).
<group prefix="URL">
<choose>
<if type="legal_case" match="none">
<date variable="accessed">
<date-part name="day" form="numeric" prefix=" " suffix=". "/>
<date-part name="month" form="short" suffix=" "/>
<date-part name="year" form="long"/>
</date>
<text variable="URL" prefix=": "/>
</if>
</choose>
</group>
exemple output: "URL11. März 2011: www.testingurl.net"
The "space" after URL is missing. See here for a one-month valid link to the full CSL-code file: http://pastebin.com/K3VnSdDL
Moving the prefix to the <date variable.. line doesn't work, either.
I have double checked and your style validates, so that's not the issue.
Have you tried installing the style? Maybe this is just a problem in the test panel?
In any case you're doing everything right and this is a bug.
<text value=" "/>
<date variable="accessed">
<date-part name="day" form="numeric" suffix=". "/>
<date-part name="month" form="short" suffix=" "/>
<date-part name="year" form="long"/>
</date>
Now I focus on some more extensions to the style. Looking forward to understand CSL better (f.e. macros and choose-tag).