Skip to content

Commit e38a945

Browse files
committed
NHR: Additional variants
1 parent 50129ba commit e38a945

26 files changed

+3470
-67
lines changed
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
--- templates/new-harts-rules-template.csl
2+
+++ development/new-harts-rules-author-date-publisher.csl
3+
@@ -3,18 +3,19 @@
4+
type="application/relax-ng-compact-syntax" schematypens="http://relaxng.org/ns/compatibility/annotations/1.0"?>
5+
<?xml-model href="https://raw.githubusercontent.com/citation-style-language/schema/refs/heads/master/schemas/styles/csl-repository.rnc"
6+
type="application/relax-ng-compact-syntax" schematypens="http://purl.oclc.org/dsdl/schematron"?>
7+
-<style and="text" class="note" default-locale="en-GB" demote-non-dropping-particle="display-and-sort" et-al-min="4" et-al-use-first="1" page-range-format="minimal" version="1.0" xmlns="http://purl.org/net/xbiblio/csl">
8+
+<style and="text" class="in-text" default-locale="en-GB" demote-non-dropping-particle="display-and-sort" et-al-min="4" et-al-use-first="1" page-range-format="minimal" version="1.0" xmlns="http://purl.org/net/xbiblio/csl">
9+
<info>
10+
- <title>New Hart's Rules: The Oxford Style Guide 2nd edition (template)</title>
11+
- <title-short>NHR (template)</title-short>
12+
- <id>http://www.zotero.org/styles/new-harts-rules-notes</id>
13+
- <link href="http://www.zotero.org/styles/new-harts-rules-notes" rel="self"/>
14+
+ <title>New Hart's Rules: The Oxford Style Guide 2nd edition (author-date, publisher)</title>
15+
+ <title-short>NHR (author-date/Harvard [17.3], publisher [18.2.10])</title-short>
16+
+ <id>http://www.zotero.org/styles/new-harts-rules-author-date-publisher</id>
17+
+ <link href="http://www.zotero.org/styles/new-harts-rules-author-date-publisher" rel="self"/>
18+
+ <link href="http://www.zotero.org/styles/new-harts-rules-notes" rel="template"/>
19+
<link href="https://en.wikipedia.org/wiki/Hart's_Rules" rel="documentation"/>
20+
<author>
21+
<name>Andrew Dunning</name>
22+
<uri>https://orcid.org/0000-0003-0464-5036</uri>
23+
</author>
24+
- <category citation-format="note"/>
25+
+ <category citation-format="author-date"/>
26+
<category field="anthropology"/>
27+
<category field="communications"/>
28+
<category field="generic-base"/>
29+
@@ -30,7 +31,7 @@
30+
<category field="social_science"/>
31+
<category field="sociology"/>
32+
<category field="theology"/>
33+
- <summary>Oxford source citations, template</summary>
34+
+ <summary>Oxford source citations, author-date system, publisher name (NHR 18.2.10)</summary>
35+
<updated>2025-11-05T00:00:00+00:00</updated>
36+
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
37+
</info>
38+
@@ -2238,12 +2239,12 @@
39+
<if type="article-newspaper">
40+
<group delimiter=" ">
41+
<text macro="source-serial-title"/>
42+
- <text macro="source-serial-identifier"/>
43+
+ <text macro="source-serial-identifier-author-date"/>
44+
</group>
45+
</if>
46+
<else-if match="any" variable="collection-title issue supplement-number volume">
47+
<text macro="source-serial-title"/>
48+
- <text macro="source-serial-identifier"/>
49+
+ <text macro="source-serial-identifier-author-date"/>
50+
</else-if>
51+
<else-if type="interview" variable="publisher">
52+
<!-- publisher possible with `interview` (NHR 18.7.3) -->
53+
@@ -2251,7 +2252,7 @@
54+
<text macro="source-serial-title"/>
55+
<group delimiter=" ">
56+
<text variable="publisher"/>
57+
- <text macro="source-serial-identifier"/>
58+
+ <text macro="source-serial-identifier-author-date"/>
59+
</group>
60+
</group>
61+
</else-if>
62+
@@ -2260,14 +2261,14 @@
63+
<text macro="source-serial-title"/>
64+
<group delimiter=" ">
65+
<text variable="publisher"/>
66+
- <text macro="source-serial-identifier"/>
67+
+ <text macro="source-serial-identifier-author-date"/>
68+
</group>
69+
</group>
70+
</else-if>
71+
<else>
72+
<group delimiter=" ">
73+
<text macro="source-serial-title"/>
74+
- <text macro="source-serial-identifier"/>
75+
+ <text macro="source-serial-identifier-author-date"/>
76+
</group>
77+
</else>
78+
</choose>
79+
@@ -3194,7 +3195,7 @@
80+
<text form="short" term="no-place"/>
81+
</else-if>
82+
</choose>
83+
- <!-- <text variable="publisher"/> -->
84+
+ <text variable="publisher"/>
85+
</group>
86+
</if>
87+
<else>
88+
@@ -3214,7 +3215,7 @@
89+
<if match="any" type="book chapter classic entry entry-dictionary entry-encyclopedia interview musical_score pamphlet paper-conference report">
90+
<group delimiter=": ">
91+
<text variable="original-publisher-place"/>
92+
- <!-- <text variable="original-publisher"/> -->
93+
+ <text variable="original-publisher"/>
94+
</group>
95+
</if>
96+
<else>
97+
@@ -3224,9 +3225,7 @@
98+
</macro>
99+
<!-- 4.6. Date -->
100+
<macro name="source-date">
101+
- <text macro="source-date-issued-or-status"/>
102+
- <!-- for author-date: -->
103+
- <!-- <text macro="source-date-issued-day-month"/> -->
104+
+ <text macro="source-date-issued-day-month"/>
105+
</macro>
106+
<!-- Date elements -->
107+
<macro name="source-date-issued-full">
108+
@@ -3365,9 +3364,7 @@
109+
</choose>
110+
</macro>
111+
<macro name="source-date-original">
112+
- <text macro="source-date-original-full"/>
113+
- <!-- for author-date: -->
114+
- <!-- <text macro="source-date-original-day-month"/> -->
115+
+ <text macro="source-date-original-day-month"/>
116+
</macro>
117+
<macro name="source-date-original-full">
118+
<!-- Give full date for more ephemeral types; reflected in `date-year-sort` -->
119+
@@ -3874,9 +3871,9 @@
120+
</choose>
121+
</group>
122+
</macro>
123+
- <citation disambiguate-add-givenname="true" disambiguate-add-names="true">
124+
- <layout delimiter="; " suffix=".">
125+
- <text macro="citation-notes-full-subsequent-author-title"/>
126+
+ <citation after-collapse-delimiter="; " collapse="year" disambiguate-add-givenname="true" disambiguate-add-names="true" disambiguate-add-year-suffix="true">
127+
+ <layout delimiter="; " prefix="(" suffix=")">
128+
+ <text macro="citation-author-date"/>
129+
</layout>
130+
</citation>
131+
<!-- Bibliography -->
132+
@@ -3989,17 +3986,16 @@
133+
<bibliography hanging-indent="true">
134+
<sort>
135+
<key macro="author-bib"/>
136+
- <key macro="title-and-descriptions"/>
137+
- <key macro="source"/>
138+
+ <key macro="date-sort-group"/>
139+
+ <key macro="date-sort-year"/>
140+
+ <key variable="status"/>
141+
+ <key macro="title"/>
142+
<key variable="volume"/>
143+
<key variable="part-number"/>
144+
- <key variable="event-date"/>
145+
- <key variable="original-date"/>
146+
- <key macro="source-date-issued-or-status"/>
147+
<key macro="source-archive"/>
148+
</sort>
149+
<layout suffix=".">
150+
- <text macro="bibliography-filtered-notes"/>
151+
+ <text macro="bibliography-filtered-author-date"/>
152+
</layout>
153+
</bibliography>
154+
</style>
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
--- templates/new-harts-rules-template.csl
2+
+++ development/new-harts-rules-author-date-space-publisher.csl
3+
@@ -3,18 +3,19 @@
4+
type="application/relax-ng-compact-syntax" schematypens="http://relaxng.org/ns/compatibility/annotations/1.0"?>
5+
<?xml-model href="https://raw.githubusercontent.com/citation-style-language/schema/refs/heads/master/schemas/styles/csl-repository.rnc"
6+
type="application/relax-ng-compact-syntax" schematypens="http://purl.oclc.org/dsdl/schematron"?>
7+
-<style and="text" class="note" default-locale="en-GB" demote-non-dropping-particle="display-and-sort" et-al-min="4" et-al-use-first="1" page-range-format="minimal" version="1.0" xmlns="http://purl.org/net/xbiblio/csl">
8+
+<style and="text" class="in-text" default-locale="en-GB" demote-non-dropping-particle="display-and-sort" et-al-min="4" et-al-use-first="1" page-range-format="minimal" version="1.0" xmlns="http://purl.org/net/xbiblio/csl">
9+
<info>
10+
- <title>New Hart's Rules: The Oxford Style Guide 2nd edition (template)</title>
11+
- <title-short>NHR (template)</title-short>
12+
- <id>http://www.zotero.org/styles/new-harts-rules-notes</id>
13+
- <link href="http://www.zotero.org/styles/new-harts-rules-notes" rel="self"/>
14+
+ <title>New Hart's Rules: The Oxford Style Guide 2nd edition (author-date, bracketed date with space, publisher)</title>
15+
+ <title-short>NHR (author-date/Harvard [17.3], spaced date, publisher [18.2.10])</title-short>
16+
+ <id>http://www.zotero.org/styles/new-harts-rules-author-date-space-publisher</id>
17+
+ <link href="http://www.zotero.org/styles/new-harts-rules-author-date-space-publisher" rel="self"/>
18+
+ <link href="http://www.zotero.org/styles/new-harts-rules-notes" rel="template"/>
19+
<link href="https://en.wikipedia.org/wiki/Hart's_Rules" rel="documentation"/>
20+
<author>
21+
<name>Andrew Dunning</name>
22+
<uri>https://orcid.org/0000-0003-0464-5036</uri>
23+
</author>
24+
- <category citation-format="note"/>
25+
+ <category citation-format="author-date"/>
26+
<category field="anthropology"/>
27+
<category field="communications"/>
28+
<category field="generic-base"/>
29+
@@ -30,7 +31,7 @@
30+
<category field="social_science"/>
31+
<category field="sociology"/>
32+
<category field="theology"/>
33+
- <summary>Oxford source citations, template</summary>
34+
+ <summary>Oxford source citations, author-date system, bracketed date followed by space, publisher name (NHR 18.2.10)</summary>
35+
<updated>2025-11-05T00:00:00+00:00</updated>
36+
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
37+
</info>
38+
@@ -2238,12 +2239,12 @@
39+
<if type="article-newspaper">
40+
<group delimiter=" ">
41+
<text macro="source-serial-title"/>
42+
- <text macro="source-serial-identifier"/>
43+
+ <text macro="source-serial-identifier-author-date"/>
44+
</group>
45+
</if>
46+
<else-if match="any" variable="collection-title issue supplement-number volume">
47+
<text macro="source-serial-title"/>
48+
- <text macro="source-serial-identifier"/>
49+
+ <text macro="source-serial-identifier-author-date"/>
50+
</else-if>
51+
<else-if type="interview" variable="publisher">
52+
<!-- publisher possible with `interview` (NHR 18.7.3) -->
53+
@@ -2251,7 +2252,7 @@
54+
<text macro="source-serial-title"/>
55+
<group delimiter=" ">
56+
<text variable="publisher"/>
57+
- <text macro="source-serial-identifier"/>
58+
+ <text macro="source-serial-identifier-author-date"/>
59+
</group>
60+
</group>
61+
</else-if>
62+
@@ -2260,14 +2261,14 @@
63+
<text macro="source-serial-title"/>
64+
<group delimiter=" ">
65+
<text variable="publisher"/>
66+
- <text macro="source-serial-identifier"/>
67+
+ <text macro="source-serial-identifier-author-date"/>
68+
</group>
69+
</group>
70+
</else-if>
71+
<else>
72+
<group delimiter=" ">
73+
<text macro="source-serial-title"/>
74+
- <text macro="source-serial-identifier"/>
75+
+ <text macro="source-serial-identifier-author-date"/>
76+
</group>
77+
</else>
78+
</choose>
79+
@@ -3194,7 +3195,7 @@
80+
<text form="short" term="no-place"/>
81+
</else-if>
82+
</choose>
83+
- <!-- <text variable="publisher"/> -->
84+
+ <text variable="publisher"/>
85+
</group>
86+
</if>
87+
<else>
88+
@@ -3214,7 +3215,7 @@
89+
<if match="any" type="book chapter classic entry entry-dictionary entry-encyclopedia interview musical_score pamphlet paper-conference report">
90+
<group delimiter=": ">
91+
<text variable="original-publisher-place"/>
92+
- <!-- <text variable="original-publisher"/> -->
93+
+ <text variable="original-publisher"/>
94+
</group>
95+
</if>
96+
<else>
97+
@@ -3224,9 +3225,7 @@
98+
</macro>
99+
<!-- 4.6. Date -->
100+
<macro name="source-date">
101+
- <text macro="source-date-issued-or-status"/>
102+
- <!-- for author-date: -->
103+
- <!-- <text macro="source-date-issued-day-month"/> -->
104+
+ <text macro="source-date-issued-day-month"/>
105+
</macro>
106+
<!-- Date elements -->
107+
<macro name="source-date-issued-full">
108+
@@ -3365,9 +3364,7 @@
109+
</choose>
110+
</macro>
111+
<macro name="source-date-original">
112+
- <text macro="source-date-original-full"/>
113+
- <!-- for author-date: -->
114+
- <!-- <text macro="source-date-original-day-month"/> -->
115+
+ <text macro="source-date-original-day-month"/>
116+
</macro>
117+
<macro name="source-date-original-full">
118+
<!-- Give full date for more ephemeral types; reflected in `date-year-sort` -->
119+
@@ -3874,9 +3871,9 @@
120+
</choose>
121+
</group>
122+
</macro>
123+
- <citation disambiguate-add-givenname="true" disambiguate-add-names="true">
124+
- <layout delimiter="; " suffix=".">
125+
- <text macro="citation-notes-full-subsequent-author-title"/>
126+
+ <citation after-collapse-delimiter="; " collapse="year" disambiguate-add-givenname="true" disambiguate-add-names="true" disambiguate-add-year-suffix="true">
127+
+ <layout delimiter="; " prefix="(" suffix=")">
128+
+ <text macro="citation-author-date"/>
129+
</layout>
130+
</citation>
131+
<!-- Bibliography -->
132+
@@ -3884,7 +3881,7 @@
133+
<group delimiter=". ">
134+
<group delimiter=" ">
135+
<text macro="author-bib"/>
136+
- <group delimiter=", ">
137+
+ <group delimiter=" ">
138+
<text macro="date"/>
139+
<text macro="title-and-source"/>
140+
</group>
141+
@@ -3989,17 +3986,16 @@
142+
<bibliography hanging-indent="true">
143+
<sort>
144+
<key macro="author-bib"/>
145+
- <key macro="title-and-descriptions"/>
146+
- <key macro="source"/>
147+
+ <key macro="date-sort-group"/>
148+
+ <key macro="date-sort-year"/>
149+
+ <key variable="status"/>
150+
+ <key macro="title"/>
151+
<key variable="volume"/>
152+
<key variable="part-number"/>
153+
- <key variable="event-date"/>
154+
- <key variable="original-date"/>
155+
- <key macro="source-date-issued-or-status"/>
156+
<key macro="source-archive"/>
157+
</sort>
158+
<layout suffix=".">
159+
- <text macro="bibliography-filtered-notes"/>
160+
+ <text macro="bibliography-filtered-author-date"/>
161+
</layout>
162+
</bibliography>
163+
</style>

0 commit comments

Comments
 (0)