Should take care of various errors in APA reported on forums

This commit is contained in:
Elena Razlogova 2008-05-06 03:37:15 +00:00
parent 72ba9e1b39
commit 51ab3b61cb

View file

@ -17,11 +17,26 @@
<category term="author-date"/> <category term="author-date"/>
<updated/> <updated/>
</info> </info>
<macro name="editor-translator"> <macro name="container-contributors">
<names variable="editor translator" delimiter=", "> <choose>
<if type="chapter">
<text term="in" text-case="capitalize-first" suffix=" "/>
<names variable="editor translator" delimiter=", " suffix=", ">
<name and="symbol" initialize-with=". " delimiter=", "/> <name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=" (" text-case="capitalize-first" suffix=".)"/> <label form="short" prefix=" (" text-case="capitalize-first" suffix=".)"/>
</names> </names>
</if>
</choose>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="chapter" match="none">
<names variable="editor translator" delimiter=", " prefix=" (" suffix=")">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="capitalize-first" suffix="."/>
</names>
</if>
</choose>
</macro> </macro>
<macro name="author"> <macro name="author">
<names variable="author"> <names variable="author">
@ -75,15 +90,16 @@
</macro> </macro>
<macro name="title"> <macro name="title">
<choose> <choose>
<if type="book"> <if type="book thesis" match="any">
<text variable="title" font-style="italic"/> <text variable="title" font-style="italic"/>
</if> </if>
<else> <else>
<text variable="title"/> <text variable="title" suffix=". "/>
</else> </else>
</choose> </choose>
</macro> </macro>
<macro name="publisher"> <macro name="publisher">
<text variable="genre" suffix=", "/>
<group delimiter=": "> <group delimiter=": ">
<text variable="publisher-place"/> <text variable="publisher-place"/>
<text variable="publisher"/> <text variable="publisher"/>
@ -113,35 +129,59 @@
<date-part name="year"/> <date-part name="year"/>
</date> </date>
</macro> </macro>
<macro name="edition">
<choose>
<if type="book chapter" match="any">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<group prefix=", " delimiter=", ">
<group>
<text variable="volume" font-style="italic"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<text variable="page"/>
</group>
</if>
<else-if type="book chapter" match="any">
<group prefix=" (" suffix=")" delimiter=", ">
<text macro="edition"/>
<group>
<text term="volume" form="short" plural="true" text-case="capitalize-first" suffix=". "/>
<number variable="number-of-volumes" form="numeric" prefix="1-"/>
</group>
<group>
<text term="volume" form="short" text-case="capitalize-first" suffix=". "/>
<number variable="volume" form="numeric"/>
</group>
<group>
<label variable="page" form="short" include-period="true" suffix=" "/>
<text variable="page"/>
</group>
</group>
</else-if>
</choose>
</macro>
<macro name="citation-locator"> <macro name="citation-locator">
<group> <group>
<label variable="locator" include-period="true" form="short"/> <label variable="locator" include-period="true" form="short"/>
<text variable="locator" prefix=" "/> <text variable="locator" prefix=" "/>
</group> </group>
</macro> </macro>
<macro name="container-prefix">
<choose>
<if type="chapter">
<text term="in" text-case="capitalize-first"/>
</if>
</choose>
</macro>
<macro name="pages">
<choose>
<if type="chapter">
<group prefix=" (" suffix=")">
<label variable="page" form="short" include-period="true" suffix=" "/>
<text variable="page"/>
</group>
</if>
<else>
<text variable="page" prefix=", "/>
</else>
</choose>
</macro>
<macro name="edition">
<text variable="edition"/>
</macro>
<citation> <citation>
<option name="et-al-min" value="6"/> <option name="et-al-min" value="6"/>
<option name="et-al-use-first" value="1"/> <option name="et-al-use-first" value="1"/>
@ -174,15 +214,12 @@
<layout suffix="."> <layout suffix=".">
<text macro="author" suffix="."/> <text macro="author" suffix="."/>
<text macro="issued"/> <text macro="issued"/>
<text macro="title" prefix=" " suffix=". "/> <text macro="title" prefix=" "/>
<text macro="container-prefix" suffix=" "/> <text macro="container-contributors"/>
<text macro="editor-translator" suffix=", "/> <text macro="secondary-contributors"/>
<text variable="container-title" font-style="italic"/> <text variable="container-title" font-style="italic"/>
<text variable="collection-title" prefix=", " suffix="."/> <text variable="collection-title" prefix=", " suffix="."/>
<text macro="edition" prefix=" (" suffix=")"/> <text macro="locators"/>
<text variable="volume" prefix=", " font-style="italic"/>
<text variable="issue" prefix="(" suffix=")"/>
<text macro="pages"/>
<group delimiter=". " prefix=". "> <group delimiter=". " prefix=". ">
<text macro="publisher"/> <text macro="publisher"/>
<text macro="access"/> <text macro="access"/>