Adds translator support to Chicago author-date style

This commit is contained in:
Elena Razlogova 2008-01-26 16:40:13 +00:00
parent 3a31c8eec0
commit 6fba8c38fc

View file

@ -14,11 +14,21 @@
<summary>The author-date variant of the Chicago style</summary> <summary>The author-date variant of the Chicago style</summary>
<link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/> <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
</info> </info>
<macro name="editor"> <macro name="secondary-contributor">
<names variable="editor"> <group delimiter=". ">
<label form="short" text-case="capitalize-first" suffix=". "/> <names variable="editor">
<name and="text" delimiter=", "/> <label form="verb-short" prefix=" " text-case="capitalize-first" suffix=". "/>
</names> <name and="text" delimiter=", "/>
</names>
<choose>
<if variable="author editor" match="any">
<names variable="translator">
<label form="verb-short" prefix=" " text-case="capitalize-first" suffix=". "/>
<name and="text" delimiter=", "/>
</names>
</if>
</choose>
</group>
</macro> </macro>
<macro name="series-editor"> <macro name="series-editor">
<names variable="original-author"> <names variable="original-author">
@ -33,7 +43,7 @@
<names variable="author"> <names variable="author">
<name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", " <name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", "
delimiter-precedes-last="always"/> delimiter-precedes-last="always"/>
<label form="short" prefix=", " suffix="." text-case="lowercase"/> <label form="verb-short" prefix=", " suffix="." text-case="lowercase"/>
<substitute> <substitute>
<names variable="editor"/> <names variable="editor"/>
<names variable="translator"/> <names variable="translator"/>
@ -43,7 +53,7 @@
</macro> </macro>
<macro name="author-short"> <macro name="author-short">
<names variable="author"> <names variable="author">
<name form="short" and="text" delimiter=", "/> <name form="verb-short" and="text" delimiter=", "/>
<substitute> <substitute>
<names variable="editor"/> <names variable="editor"/>
<names variable="translator"/> <names variable="translator"/>
@ -160,7 +170,7 @@
<text macro="title" prefix=" " suffix="."/> <text macro="title" prefix=" " suffix="."/>
<group prefix=" " delimiter=", "> <group prefix=" " delimiter=", ">
<text variable="edition" suffix=" ed."/> <text variable="edition" suffix=" ed."/>
<text macro="editor" suffix="."/> <text macro="secondary-contributor" suffix="."/>
<text variable="genre"/> <text variable="genre"/>
<text macro="publisher"/> <text macro="publisher"/>
</group> </group>
@ -170,7 +180,7 @@
<text macro="title" prefix=" " suffix="."/> <text macro="title" prefix=" " suffix="."/>
<text macro="edition"/> <text macro="edition"/>
<text macro="volumes"/> <text macro="volumes"/>
<text macro="editor" suffix="."/> <text macro="secondary-contributor" suffix="."/>
<text macro="publisher"/> <text macro="publisher"/>
</group> </group>
</else-if> </else-if>
@ -182,7 +192,7 @@
<text term="in" text-case="capitalize-first"/> <text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/> <text variable="container-title" font-style="italic"/>
</group> </group>
<text macro="editor" prefix=" "/> <text macro="secondary-contributor" prefix=" "/>
<group delimiter=" "> <group delimiter=" ">
<text variable="volume" prefix="Vol. " suffix=" of"/> <text variable="volume" prefix="Vol. " suffix=" of"/>
<text variable="collection-title" font-style="italic"/> <text variable="collection-title" font-style="italic"/>
@ -196,7 +206,7 @@
<else> <else>
<group suffix="." > <group suffix="." >
<text macro="title" prefix=" " /> <text macro="title" prefix=" " />
<text macro="editor" prefix=" "/> <text macro="secondary-contributor" prefix=" "/>
</group> </group>
<group class="container" prefix=" " suffix="." delimiter=" "> <group class="container" prefix=" " suffix="." delimiter=" ">
<text variable="container-title" font-style="italic"/> <text variable="container-title" font-style="italic"/>