added changes from nas

This commit is contained in:
Bruce D'Arcus 2008-05-24 15:25:34 +00:00
parent b83dd8aa99
commit cc0eb28d82

View File

@ -9,73 +9,52 @@
<name>Bruce DArcus</name> <name>Bruce DArcus</name>
<email>bdarcus@gmail.com</email> <email>bdarcus@gmail.com</email>
</author> </author>
<author>
<name>Nancy Sims</name>
<email>nsims@umich.edu</email>
</author>
<updated></updated> <updated></updated>
<summary>The Bluebook legal citation style for law reviews.</summary> <summary>The Bluebook legal citation style for law reviews.</summary>
</info> </info>
<macro name="editor-translator">
<names variable="editor translator" prefix="(" suffix=")" delimiter=", "> <!-- sets up basics of dealing with authors -->
<name and="symbol" initialize-with="." delimiter=", "/>
<label form="short" prefix=", " text-case="capitalize-first" suffix="."/>
</names>
</macro>
<macro name="name-macro"> <macro name="name-macro">
<names variable="author"> <names variable="author">
<name and="symbol" delimiter=", " delimiter-precedes-last="never"/> <name and="symbol" delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" " suffix="."/> <label form="short" prefix=" " suffix="."/>
<substitute> <substitute>
<names variable="editor"/> <text variable="title"/>
<names variable="translator"/>
<text variable="title"/>
</substitute> </substitute>
</names> </names>
</macro> </macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", " />
<label form="verb-short" prefix=", " suffix="."/>
</names>
</macro>
<macro name="author"> <macro name="author">
<choose> <choose>
<if type="book"> <if type="legal_case">
<text macro="name-macro" font-variant="small-caps"/> <text macro="name-macro" font-variant="normal" />
</if> </if>
<else-if type="legal_case"> <else-if type="book">
<text macro="name-macro"/> <text macro="name-macro" font-variant="small-caps"/>
</else-if> </else-if>
<else> <else>
<text macro="name-macro"/> <text macro="name-macro"/>
</else> </else>
</choose> </choose>
</macro> </macro>
<macro name="access"> <!-- sets up basics of dealing with editors and translators. Will generally only show up in book citations, as called in XXXX, below -->
<text variable="URL"/> <macro name="editor-translator">
</macro> <names variable="editor translator" prefix="" suffix=" " delimiter=", ">
<macro name="issuance"> <name and="symbol" delimiter=", "/>
<choose> <label form="short" prefix=" " suffix=".,"/>
<if type="article"> </names>
<group prefix="(" suffix=")">
<choose>
<if type="article-newspaper">
<group suffix=", ">
<date variable="issued">
<date-part name="month"/>
<date-part name="day" prefix=" "/>
</date>
</group>
</if>
</choose>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else>
<group prefix=" (" suffix=")" delimiter=" ">
<text variable="edition"/>
<text macro="editor-translator"/>
<text macro="publisher"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else>
</choose>
</macro> </macro>
<!-- sets up font variations for titles in books, articles, etc. -->
<macro name="title"> <macro name="title">
<choose> <choose>
<if type="book"> <if type="book">
@ -84,48 +63,154 @@
<else-if type="article"> <else-if type="article">
<text variable="title" font-style="italic"/> <text variable="title" font-style="italic"/>
</else-if> </else-if>
<else-if type="legal_case">
<text variable="title" font-variant="normal" />
</else-if>
<else> <else>
<text variable="title"/> <text variable="title"/>
</else> </else>
</choose> </choose>
</macro> </macro>
<macro name="publisher">
<group delimiter=": "> <!-- link to online content, called in YYYYY -->
<text variable="publisher-place"/> <macro name="access">
<text variable="publisher"/> <text variable="URL"/>
</macro>
<macro name="source">
<!-- This macro seems really problematic, with a ton of redundancy. I'd move some of
the conditional logic into the appropriate macros (like 'title') and try to remove this
macro entirely. -->
<choose>
<if type="article-journal" match="any" >
<text variable="title" suffix=", " font-style="italic" />
<text variable="volume" suffix=" " />
<text macro="container" />
<text variable="page" prefix=" " />
<text variable="locator" prefix=", " />
<text macro="issuance" prefix=" (" suffix=")"/>
</if>
<else-if type="legal_case">
<text variable="title" suffix=", " font-variant="normal" />
<text variable="volume" suffix="" />
<text macro="container" />
<text variable="page" prefix=" " />
<text variable="locator" prefix=", " />
<text macro="issuance" prefix=" (" suffix=")"/>
</else-if>
<else-if type="article-newspaper article-magazine thesis" match="any">
<text variable="title" suffix=", " font-style="italic" />
<text variable="volume" suffix=" " />
<text macro="container" suffix=", " />
<text macro="issuance" />
<group delimiter="" >
<text value="at" prefix=", " />
<text variable="page" prefix=" " />
</group>
</else-if>
<else-if type="chapter">
<text variable="title" suffix=", " font-style="italic" />
<text variable="volume" suffix=" " />
<text macro="container" suffix=" " />
<text variable="page" />
<text variable="locator" prefix=", " />
<text macro="issuance" prefix=" (" suffix=")" />
</else-if>
<else>
<text variable="volume" suffix=" " />
<text variable="title" font-variant="small-caps" />
<text macro="container" prefix=" " />
<text variable="page" prefix=" " />
<text variable="locator" prefix=" " />
<text macro="issuance" prefix=" (" suffix=")" />
</else>
</choose>
</macro>
<macro name="issuance">
<choose>
<if type="article">
<group prefix="" suffix="">
<choose>
<if type="article-newspaper thesis" match="any">
<group suffix=", ">
<date variable="issued">
<date-part name="month"/>
<date-part name="day" prefix=" "/>
</date>
</group>
</if>
</choose>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else>
<group prefix=" " suffix="" delimiter=" ">
<text macro="editor-translator"/>
<text variable="edition" suffix=" ed." />
<!-- replaced a text element with a missing variable reference -->
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else>
</choose>
</macro>
<!-- sets up citing to specific page numbers for id and supra cites -->
<macro name="at_page">
<group delimiter="">
<text value="at" prefix=" " />
<text variable="locator" prefix=" "/>
</group> </group>
</macro> </macro>
<!-- sets up the "in" in front of book sections, etc. -->
<macro name="container">
<choose>
<if type="chapter">
<group delimiter="" >
<text term="in" text-case="lowercase" font-style="italic" prefix=" " />
<text variable="container-title" font-variant="small-caps" prefix=" "/>
</group>
</if>
<else-if type="legal_case">
<text variable="container-title" form="short" font-variant="small-caps" prefix=" "/>
</else-if>
<else-if type="article-journal" >
<text variable="container-title" font-variant="small-caps" prefix=" "/>
</else-if>
<else>
<text variable="container-title" font-variant="small-caps" />
</else>
</choose>
</macro>
<citation> <citation>
<option name="et-al-min" value="4"/> <option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="1"/> <option name="et-al-use-first" value="1"/>
<layout suffix="." delimiter="; "> <layout suffix="." delimiter="; ">
<text macro="author"/>
<choose> <choose>
<if position="ibid-with-locator"> <if position="ibid">
<group delimiter=", "> <text value="id." text-case="capitalize-first" font-style="italic"/>
<text value="id" text-case="capitalize-first" suffix="."/> <text macro="at_page" suffix="**"/>
</group> <!-- period will not show up - this is for find-and-replace later. -->
</if> </if>
<else-if position="ibid"> <else-if position="subsequent">
<group delimiter=", "> <text macro="author-short" />
<text value="id" text-case="capitalize-first" suffix="."/> <text value="supra" font-style="italic" prefix=", " />
</group> <text value="note" prefix=" " />
</else-if>
<else-if position="subsequent">
<text value="supra" prefix=", "/>
<text value="note" prefix=" "/>
<!-- CSL does not currently support reference to a note number, so we leave a blank space for correction now --> <!-- CSL does not currently support reference to a note number, so we leave a blank space for correction now -->
<text value="___"/> <text value="___"/>
</else-if> <text macro="at_page"/>
<else> </else-if>
<text macro="title" prefix=", "/> <else>
<text variable="volume" prefix=", "/> <text macro="author" suffix=", "/>
<text variable="container-title" prefix=" "/> <text macro="source" />
<text variable="page" prefix=" "/> <text macro="access" prefix=", "/>
<text variable="locator" prefix=" "/> </else>
<text macro="issuance" prefix=" "/>
<text macro="access" prefix=", "/>
</else>
</choose> </choose>
</layout> </layout>
</citation> </citation>