Abbreviated month in citation style within notes ("janvier" = "jan.", etc.)
Hello everyone,
I created a custom citation style and had it corrected and validated thanks to the help of participants of this forum : https://raw.github.com/gist/1016344/02856048214586556904731602dacaddae8ba766/gistfile1.txt
Nevertheless, I see that one thing is still missing for this style to fit the citation standards of my research group: in the notes (but not in the bibliography), the month should appear abbreviated. ex. janvier = jan., février = fév., mars = mars, avril = avr. mai = mai, juin = juin, juillet = juil., août = août, septembre = sept., octobre = oct., novembre = nov., décembre = déc.). In fact, for every name longer than 4 letters, we should have the three first letter + “.”
Does someone have an idea on how to do it?
Kind regards
I created a custom citation style and had it corrected and validated thanks to the help of participants of this forum : https://raw.github.com/gist/1016344/02856048214586556904731602dacaddae8ba766/gistfile1.txt
Nevertheless, I see that one thing is still missing for this style to fit the citation standards of my research group: in the notes (but not in the bibliography), the month should appear abbreviated. ex. janvier = jan., février = fév., mars = mars, avril = avr. mai = mai, juin = juin, juillet = juil., août = août, septembre = sept., octobre = oct., novembre = nov., décembre = déc.). In fact, for every name longer than 4 letters, we should have the three first letter + “.”
Does someone have an idea on how to do it?
Kind regards
<term name="month-01" form="short">janv.</term>
<term name="month-02" form="short">févr.</term>
<term name="month-03" form="short">mars</term>
<term name="month-04" form="short">avr.</term>
<term name="month-05" form="short">mai</term>
<term name="month-06" form="short">juin</term>
<term name="month-07" form="short">juill.</term>
<term name="month-08" form="short">août</term>
<term name="month-09" form="short">sept.</term>
<term name="month-10" form="short">oct.</term>
<term name="month-11" form="short">nov.</term>
<term name="month-12" form="short">déc.</term>
Anything that needs to be different you need to redefine in the terms section of the style (where you now define the editors). To call for the abbreviated version of months, include form="short" in the date-part name="month" element
24 jan. 1995
Jan. 1995
I tried the following:
<date variable="issued">
<if variable="day" match="none">
<date-part name="month" form="short" suffix=", " text-case="capitalize-first"/>
<date-part name="year"/>
</if>
<else>
<date-part name="day" suffix=" "/>
<date-part name="month" form="short" suffix=" "/>
<date-part name="year"/>
</else>
</date>
But it seems that it doesn't recognize when I have a day and I always get the <else> case. I guess the error is in variable="day"... has someone got an idea? Thanks in advance
<date variable"issued" text-case="sentence">
might not work, though.
I don't think you can test for day the way you try - "day" is not a variable". (If you could, though, you'd still be missing <choose> .... </choose> around the conditionals.)
Then in the body of the style, you would just use dates as per current specification:
<date variable="issued" form="text"/>
Thanks in advance
(Edit: To answer your question, CSL 1.0 has localized date forms, so a date can be included with a single line of code. The idea in the locale-based approach -- just one of several options being tossed around -- is to embed the conditionality in the date definition set in the locale. No other changes would be required, so long as dates were written in macros etc in the one-line (strictly speaking single-node) form.