MHRA and Chicago Author-date formats

This commit is contained in:
Julian Onions 2007-11-14 10:31:54 +00:00
parent 0407d4a432
commit cb2a808430
2 changed files with 510 additions and 175 deletions

View File

@ -1,175 +1,194 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="author-date" xml:lang="en"> <style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >
<info> <info>
<title>Chicago Manual of Style (Author-Date)</title> <title>Chicago Manual of Style (Author-Date format)</title>
<id>http://www.zotero.org/styles/chicago-author-date</id> <id>http://www.zotero.org/styles/chicago-author-date</id>
<author> <author>
<name>Simon Kornblith</name> <name>Julian Onions</name>
<email>simon@simonster.com</email> <email>julian.onions@gmail.com</email>
</author> </author>
<updated></updated> <category term="author-date"/>
<summary>The author-date variant of the Chicago style.</summary> <updated/>
</info> <summary>The chicago author-date style.</summary>
<defaults> <source>http://www.chicagomanualofstyle.org/tools_citationguide.html</source>
<contributor name-as-sort-order="no"> </info>
<label form="verb-short" suffix=". "/> <macro name="editor">
<name and="text" delimiter=", "/> <names variable="editor">
</contributor> <label form="short" text-transform="capitalize" suffix=". "/>
<author name-as-sort-order="first"> <name and="text" delimiter=", "/>
<name and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/> </names>
<label form="short" prefix=", " suffix="."/> </macro>
<substitute> <macro name="series-editor">
<choose> <names variable="original-author">
<editor/> <label form="short" text-transform="capitalize" suffix=". "/>
<translator/> <name and="text" delimiter=", "/>
<titles relation="container" font-style="italic"/> </names>
<titles/> </macro>
</choose> <macro name="anon">
</substitute> <text value="Anon"/>
</author> </macro>
<locator> <macro name="author">
<number/> <names variable="author">
</locator> <name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", "
<identifier> delimiter-precedes-last="always"/>
<number/> <label form="short" prefix=", " suffix="." text-transform="lowercase"/>
</identifier> <substitute>
<titles> <names variable="editor"/>
<title/> <names variable="translator"/>
</titles> <text macro="anon"/>
<date> </substitute>
<year/> </names>
</date> </macro>
<access> <macro name="author-short">
<url/> <names variable="author">
<date prefix=" (" suffix=")"> <name form="short" and="text" delimiter=", "/>
<text term-name="accessed" suffix=" "/> <substitute>
<month suffix=" " text-transform="capitalize"/> <names variable="editor"/>
<day suffix=", "/> <names variable="translator"/>
<year/> <text macro="anon"/>
</date> </substitute>
</access> </names>
</defaults> </macro>
<citation prefix="(" suffix=")" delimiter="; "> <macro name="access">
<et-al min-authors="3" use-first="1"/> <group>
<layout> <text variable="URL"/>
<item> <group prefix=" (" suffix=")">
<group delimiter=" "> <text term="accessed" text-transform="capitalize" suffix=" "/>
<author form="short"> <date variable="accessed">
<name and="text" delimiter=", "/> <date-part name="month" suffix=" "/>
</author> <date-part name="day" suffix=", "/>
<group> <date-part name="year"/>
<date/> </date>
<locator prefix=", "/> </group>
</group> </group>
</group> </macro>
</item> <macro name="title">
</layout> <choose>
</citation> <if type="thesis">
<bibliography hanging-indent="true" subsequent-author-substitute="&#8212;&#8212;&#8212;"> <text variable="title"/>
<sort algorithm="author-date"/> </if>
<et-al min-authors="6" use-first="6"/> <else-if type="book">
<layout> <text variable="title" font-style="italic"/>
<list> </else-if>
<heading> <else>
<text term-name="works cited"/> <text variable="title"/>
</heading> </else>
</list> </choose>
<item suffix="."> </macro>
<choose> <macro name="publisher">
<type name="book"> <group delimiter=": " >
<author suffix="."/> <text variable="publisher-place"/>
<conditional> <text variable="publisher"/>
<if field="date"> </group>
<date prefix=" " suffix="."/> </macro>
</if><else> <macro name="year-date">
<text term-name="no date" text-transform="capitalize" prefix=" " suffix="."/> <date variable="issued">
</else> <date-part name="year"/>
</conditional> </date>
<titles prefix=" " suffix="." font-style="italic"/> </macro>
<group prefix=" " suffix="." delimiter=", " text-transform="capitalize"> <macro name="day-month">
<editor/> <date variable="issued">
<translator/> <date-part name="month"/>
</group> <date-part name="day" prefix=" "/>
<group prefix=" " suffix="." delimiter=": "> </date>
<publisher><place/></publisher> </macro>
<publisher><name/></publisher> <citation>
</group> <option name="et-al-min" value="4"/>
<access prefix=" "/> <option name="et-al-use-first" value="1"/>
</type> <option name="et-al-subsequent-min" value="6"/>
<type name="chapter"> <option name="et-al-subsequent-use-first" value="1"/>
<author suffix="."/> <option name="disambiguate-add-year-suffix" value="true"/>
<conditional> <option name="disambiguate-add-names" value="true"/>
<if field="date"> <option name="disambiguate-add-givenname" value="true"/>
<date prefix=" " suffix="."/> <option name="collapse" value="year"/>
</if><else> <layout prefix="(" suffix=")" delimiter="; ">
<text term-name="no date" text-transform="capitalize" prefix=" " suffix="."/> <group delimiter=", ">
</else> <group delimiter=" ">
</conditional> <text macro="author-short"/>
<titles prefix=" " suffix="."/> <text macro="year-date"/>
<group class="container" suffix="."> </group>
<text prefix=" " term-name="in" text-transform="capitalize"/> <text variable="locator"/>
<titles prefix=" " relation="container" font-style="italic"/> </group>
<editor prefix=", "/> </layout>
<translator prefix=", "/> </citation>
<pages prefix=", "/> <bibliography>
<group prefix=". " delimiter=": "> <option name="hanging-indent" value="true"/>
<publisher><place/></publisher> <option name="et-al-min" value="6"/>
<publisher><name/></publisher> <option name="et-al-use-first" value="1"/>
</group> <sort>
</group> <key macro="author"/>
<access prefix=" "/> <key variable="title"/>
</type> </sort>
<type name="article"> <layout suffix=".">
<author suffix="."/> <group delimiter=" ">
<date prefix=" " suffix="."/> <text macro="author" suffix="."/>
<titles prefix=" " suffix="."/> <text macro="year-date" suffix="."/>
<group prefix=" " suffix="." delimiter=", " text-transform="capitalize"> </group>
<editor/> <choose>
<translator/> <if type="article-newspaper article-magazine" match="any">
</group> <group delimiter=" ">
<group class="container" prefix=" " suffix="." delimiter=", "> <text macro="title" prefix=" " suffix="."/>
<titles relation="container" font-style="italic"/> </group>
<date> <group prefix=" " delimiter=", ">
<month text-transform="capitalize"/> <text variable="container-title" font-style="italic"/>
<day prefix=" "/> <text macro="day-month"/>
</date> <text variable="edition"/>
</group> </group>
<access prefix=" "/> </if>
</type> <else-if type="thesis">
<type name="article-journal"> <text macro="title" prefix=" " suffix="."/>
<author suffix="."/> <group prefix=" " delimiter=", ">
<date prefix=" " suffix="."/> <text variable="edition" suffix=" ed."/>
<titles prefix=" " suffix="."/> <text macro="editor" suffix="."/>
<group prefix=" " suffix="." delimiter=", " text-transform="capitalize"> <text variable="genre"/>
<editor/> <text macro="publisher"/>
<translator/> </group>
</group> </else-if>
<group class="container" prefix=" " suffix="."> <else-if type="book">
<titles relation="container" font-style="italic"/> <group delimiter=" ">
<volume prefix=" "/> <text macro="title" prefix=" " suffix="."/>
<conditional> <text variable="edition" suffix=" ed."/>
<if field="issue"> <text macro="editor" suffix="."/>
<conditional> <text macro="publisher"/>
<if field="date"> </group>
<issue prefix=", no. "/> </else-if>
<date prefix=" (" suffix=")"> <else-if type="chapter">
<month text-transform="capitalize"/> <group delimiter=" ">
<day prefix=" "/> <text macro="title" prefix=" " suffix="."/>
</date> <group class="container" delimiter=", ">
</if><else> <group delimiter=" ">
<issue prefix=" (" suffix=")"/> <text term="in" text-transform="capitalize"/>
</else> <text variable="container-title" font-style="italic"/>
</conditional> </group>
<pages prefix=": "/> <text macro="editor" prefix=" "/>
</if><else> <group delimiter=" ">
<pages prefix=":"/> <text variable="volume" prefix="Vol. " suffix=" of"/>
</else> <text variable="collection-title" font-style="italic"/>
</conditional> <text macro="series-editor"/>
</group> </group>
<access prefix=" "/> <text variable="page"/>
</type> <text macro="publisher" prefix=" "/>
</choose> </group>
</item> </group>
</layout> </else-if>
</bibliography> <else>
</style> <group suffix="." >
<text macro="title" prefix=" " />
<text macro="editor" prefix=" "/>
</group>
<group class="container" prefix=" " suffix="." delimiter=" ">
<text variable="container-title" font-style="italic"/>
<group delimiter=":">
<group delimiter=", ">
<text variable="volume" />
<text variable="issue" prefix="no. "/>
</group>
<text variable="page"/>
</group>
</group>
</else>
</choose>
<text prefix=" " macro="access" suffix="."/>
</layout>
</bibliography>
</style>

316
csl/mhra.csl Normal file
View File

@ -0,0 +1,316 @@
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" xml:lang="en">
<info>
<title>Modern Humanities Research Association (Note with Bibliography)</title>
<id>http://www.zotero.org/styles/mhra</id>
<link>http://www.zotero.org/styles/mhra</link>
<source>http://www.mhra.org.uk/Publications/Books/StyleGuide/download.shtml</source>
<author>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>
</author>
<category term="history"/>
<category term="generic-base"/>
<updated/>
</info>
<macro name="editor-translator">
<names variable="editor translator" prefix="" suffix="" delimiter=", ">
<label form="verb-short" prefix=" " text-transform="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="editor-translator-short">
<names variable="editor translator" prefix="" suffix="" delimiter=", ">
<label form="short" prefix=" " text-transform="lowercase" suffix=". "/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="first" and="text" sort-separator=", "
delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " suffix="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="author-full">
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=", "
delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " suffix="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="long" and="text" delimiter=", " />
<label form="short" prefix=", " suffix="."/>
</names>
</macro>
<macro name="access">
<group>
<text variable="URL"/>
<group prefix=" (" suffix=")" delimiter=" ">
<text term="accessed" text-transform="lowercase" suffix=" "/>
<date variable="accessed" suffix=", ">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</group>
</group>
</macro>
<macro name="title">
<choose>
<if type="thesis">
<text variable="title" form="long" quotes="true"/>
</if>
<else-if type="book">
<text variable="title" form="long" font-style="italic"/>
</else-if>
<else>
<text variable="title" form="long" quotes="true"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</macro>
<macro name="pages">
<choose>
<if type="article-journal" match="none">
<label variable="page" form="short" suffix=". "/>
</if>
</choose>
<text variable="page"/>
</macro>
<macro name="locator">
<label variable="locator" form="short" suffix=". "/>
<text variable="locator"/>
</macro>
<macro name="vols">
<choose>
<if variable="number-of-volumes">
<text variable="number-of-volumes"/>
<text term="volume" prefix=" " form="short" plural="true"/>
</if>
</choose>
</macro>
<citation>
<layout suffix="." delimiter="; ">
<group suffix="">
<text macro="author-short" suffix=", "/>
<text macro="title" prefix=""/>
<choose>
<if type="thesis">
<group prefix=" (" delimiter=", " suffix=")">
<text variable="genre"/>
<text variable="publisher"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else-if type="chapter">
<group class="container" prefix=", ">
<text term="in" text-transform="lowercase"/>
<text variable="container-title" font-style="italic" prefix=" " suffix=","/>
<text variable="collection-title" prefix=" " suffix=","/>
<text macro="editor-translator-short"/>
</group>
<group prefix=" (" suffix=")" delimiter=", ">
<text macro="publisher" />
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="book">
<group delimiter=", " prefix=" ">
<text macro="editor-translator-short"/>
<text variable="collection-title"/>
<text variable="edition" suffix=" edn"/>
<text macro="vols"/>
</group>
<group prefix=" (" suffix=")" delimiter=", ">
<text macro="publisher"/>
<date variable="issued" prefix=" " suffix="">
<date-part name="year"/>
</date>
</group>
<text variable="volume" prefix=", "/>
</else-if>
<else-if type="article-newspaper article-magazine" match="any">
<group delimiter=", " prefix=", ">
<text variable="container-title" font-style="italic"/>
<text variable="issue" suffix="."/>
<date variable="issued">
<date-part name="day" form="numeric" suffix=" "/>
<date-part name="month" form="long" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="article-journal">
<group class="container" prefix=", " delimiter=", ">
<text variable="container-title" font-style="italic"/>
<text macro="publisher"/>
<text variable="volume" prefix=" "/>
</group>
<date variable="issued" prefix=" (" suffix=")">
<date-part name="year"/>
</date>
</else-if>
<else>
<group delimiter=", " prefix=". ">
<text variable="container-title" font-style="italic"/>
<text variable="issue" prefix=", " suffix="."/>
<date variable="issued">
<date-part name="month" form="long"/>
<date-part name="day" form="numeric" prefix=" " suffix=", "/>
<date-part name="year"/>
</date>
</group>
</else>
</choose>
<group prefix=", " delimiter=" ">
<text macro="pages"/>
<text macro="locator" prefix="(" suffix=")"/>
</group>
</group>
</layout>
</citation>
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="et-al-min" value="6"/>
<option name="et-al-use-first" value="6"/>
<option name="subsequent-author-substitute" value="---"/>
<sort>
<key macro="author"/>
<key variable="title"/>
</sort>
<layout suffix=".">
<text macro="author" suffix=","/>
<choose>
<if type="thesis">
<group suffix=".">
<text macro="title" prefix=" "/>
</group>
<group delimiter=", " prefix=" ">
<text variable="genre"/>
<text variable="publisher"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else-if type="chapter">
<text macro="title" prefix=" "/>
<group class="container" prefix=", ">
<text term="in" text-transform="lowercase"/>
<text variable="container-title" font-style="italic" prefix=" " suffix=","/>
<text variable="collection-title" prefix=" " suffix=","/>
<text macro="editor-translator-short"/>
</group>
<group prefix=" (" suffix=")" delimiter=", ">
<text macro="publisher" />
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="article-journal">
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor-translator" prefix=" "/>
</group>
<group class="container" prefix=" " suffix="">
<text variable="container-title" font-style="italic" prefix=" "/>
<text variable="volume" prefix=" "/>
<text variable="issue" prefix=", no. "/>
<date variable="issued" prefix=" (" suffix=")">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
<text variable="page" prefix=": "/>
</group>
</else-if>
<else-if type="article-newspaper article-magazine" match="any">
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor-translator" prefix=" "/>
</group>
<group delimiter=", " prefix=" ">
<text variable="container-title" font-style="italic"/>
<text variable="issue" suffix="."/>
<date variable="issued">
<date-part name="month" form="long"/>
<date-part name="day" form="numeric" prefix=" " suffix=", "/>
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="paper-conference">
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor-translator" prefix=" "/>
</group>
<group suffix="">
<text value="paper presented at" text-transform="capitalize"/>
<text variable="event" prefix=" "/>
<text variable="event-place" prefix=", "/>
<date variable="event">
<date-part name="month" form="long"/>
<date-part name="day" form="numeric" prefix=" " suffix=", "/>
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="book">
<group suffix=".">
<text macro="title" prefix=" " suffix="."/>
</group>
<group delimiter=", " prefix=" ">
<text macro="editor-translator-short"/>
<text variable="collection-title"/>
<text variable="edition" suffix=" edn"/>
<text macro="vols"/>
</group>
<group prefix=" (" suffix=")" delimiter=", ">
<text macro="publisher"/>
<date variable="issued" prefix=" " suffix="">
<date-part name="year"/>
</date>
</group>
<text variable="volume" prefix=", "/>
</else-if>
<else>
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor-translator" prefix=" "/>
</group>
<group class="container" prefix=" " suffix="">
<text variable="container-title" font-style="italic"/>
<group prefix=", ">
<text variable="volume" font-style="italic"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<text variable="page" prefix=", "/>
</group>
</else>
</choose>
<text prefix=" " macro="access"/>
</layout>
</bibliography>
</style>