citeproc-ruby 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. data/lib/citeproc/version.rb +1 -1
  2. data/lib/csl/nodes.rb +23 -3
  3. data/lib/plugins/formats/default.rb +1 -1
  4. data/resource/locale/locales-af-ZA.xml +289 -288
  5. data/resource/locale/locales-ar-AR.xml +291 -289
  6. data/resource/locale/locales-bg-BG.xml +289 -288
  7. data/resource/locale/locales-ca-AD.xml +289 -288
  8. data/resource/locale/locales-cs-CZ.xml +288 -287
  9. data/resource/locale/locales-da-DK.xml +289 -288
  10. data/resource/locale/locales-de-AT.xml +288 -288
  11. data/resource/locale/locales-de-CH.xml +288 -288
  12. data/resource/locale/locales-de-DE.xml +314 -314
  13. data/resource/locale/locales-el-GR.xml +241 -239
  14. data/resource/locale/locales-en-GB.xml +304 -0
  15. data/resource/locale/locales-en-US.xml +297 -297
  16. data/resource/locale/locales-es-ES.xml +289 -288
  17. data/resource/locale/locales-et-EE.xml +287 -287
  18. data/resource/locale/locales-eu.xml +305 -0
  19. data/resource/locale/locales-fa-IR.xml +304 -0
  20. data/resource/locale/locales-fi-FI.xml +304 -0
  21. data/resource/locale/locales-fr-CA.xml +306 -0
  22. data/resource/locale/locales-fr-FR.xml +290 -288
  23. data/resource/locale/locales-he-IL.xml +288 -288
  24. data/resource/locale/locales-hu-HU.xml +289 -288
  25. data/resource/locale/locales-is-IS.xml +288 -288
  26. data/resource/locale/locales-it-IT.xml +289 -288
  27. data/resource/locale/locales-ja-JP.xml +289 -288
  28. data/resource/locale/locales-km-KH.xml +304 -0
  29. data/resource/locale/locales-ko-KR.xml +289 -288
  30. data/resource/locale/locales-mn-MN.xml +290 -288
  31. data/resource/locale/locales-nb-NO.xml +288 -288
  32. data/resource/locale/locales-nl-NL.xml +288 -288
  33. data/resource/locale/locales-nn-NO.xml +288 -288
  34. data/resource/locale/locales-pl-PL.xml +289 -288
  35. data/resource/locale/locales-pt-BR.xml +288 -288
  36. data/resource/locale/locales-pt-PT.xml +289 -288
  37. data/resource/locale/locales-ro-RO.xml +289 -288
  38. data/resource/locale/locales-ru-RU.xml +290 -288
  39. data/resource/locale/locales-sk-SK.xml +288 -288
  40. data/resource/locale/locales-sl-SI.xml +289 -288
  41. data/resource/locale/locales-sr-RS.xml +289 -288
  42. data/resource/locale/locales-sv-SE.xml +289 -288
  43. data/resource/locale/locales-th-TH.xml +288 -288
  44. data/resource/locale/locales-tr-TR.xml +289 -288
  45. data/resource/locale/locales-uk-UA.xml +290 -288
  46. data/resource/locale/locales-vi-VN.xml +289 -288
  47. data/resource/locale/locales-zh-CN.xml +288 -288
  48. data/resource/locale/locales-zh-TW.xml +289 -288
  49. data/resource/style/apa.csl +316 -127
  50. data/resource/style/{bibtex-x2.csl → bibtex.csl} +7 -5
  51. data/resource/style/chicago-annotated-bibliography.csl +513 -0
  52. data/resource/style/chicago-author-date-basque.csl +707 -0
  53. data/resource/style/chicago-author-date-de.csl +394 -0
  54. data/resource/style/chicago-author-date.csl +223 -167
  55. data/resource/style/chicago-dated-note-biblio-no-ibid.csl +472 -0
  56. data/resource/style/chicago-fullnote-bibliography-delimiter-fixes.csl +972 -0
  57. data/resource/style/chicago-fullnote-bibliography-no-ibid-delimiter-fixes.csl +963 -0
  58. data/resource/style/chicago-fullnote-bibliography-no-ibid.csl +785 -0
  59. data/resource/style/chicago-fullnote-bibliography.csl +429 -321
  60. data/resource/style/chicago-library-list.csl +511 -0
  61. data/resource/style/chicago-note-biblio-no-ibid.csl +514 -0
  62. data/resource/style/chicago-note-bibliography.csl +276 -192
  63. data/resource/style/chicago-quick-copy.csl +685 -0
  64. data/resource/style/ieee.csl +296 -126
  65. data/resource/style/mla-notes.csl +796 -0
  66. data/resource/style/{mla-x.csl → mla-underline.csl} +14 -17
  67. data/resource/style/mla-url.csl +214 -0
  68. data/resource/style/mla.csl +289 -84
  69. data/resource/style/vancouver-brackets.csl +256 -0
  70. data/resource/style/vancouver-superscript-bracket-only-year.csl +165 -0
  71. data/resource/style/vancouver-superscript.csl +256 -0
  72. data/resource/style/vancouver.csl +256 -0
  73. data/spec/citeproc/date_spec.rb +7 -3
  74. data/spec/citeproc/variable_spec.rb +1 -1
  75. data/spec/csl/style_spec.rb +2 -2
  76. metadata +48 -48
  77. data/resource/style/acta-materialia-x.csl +0 -128
  78. data/resource/style/advanced-engineering-materials-x.csl +0 -121
  79. data/resource/style/ama.csl +0 -185
  80. data/resource/style/ama2-x.csl +0 -179
  81. data/resource/style/apa-x.csl +0 -324
  82. data/resource/style/apsa-x.csl +0 -163
  83. data/resource/style/apsa.csl +0 -176
  84. data/resource/style/asa-x.csl +0 -203
  85. data/resource/style/asa.csl +0 -216
  86. data/resource/style/asm-journals-x.csl +0 -131
  87. data/resource/style/bluebook-demo-x.csl +0 -392
  88. data/resource/style/bluebook-demo.csl +0 -942
  89. data/resource/style/greek-chicago-x.csl +0 -1182
  90. data/resource/style/harvard1-institution-italic.csl +0 -190
  91. data/resource/style/harvard1.csl +0 -181
  92. data/resource/style/mhra-x.csl +0 -312
  93. data/resource/style/mhra.csl +0 -390
  94. data/resource/style/mhra_note_without_bibliography-x.csl +0 -330
  95. data/resource/style/mhra_note_without_bibliography.csl +0 -338
  96. data/resource/style/nature-x.csl +0 -81
  97. data/resource/style/nature.csl +0 -88
  98. data/resource/style/nlm.csl +0 -117
@@ -0,0 +1,394 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3
+ <info>
4
+ <title>Chicago Manual of Style (author-date, German)</title>
5
+ <id>http://www.zotero.org/styles/chicago-author-date-de</id>
6
+ <link href="http://www.zotero.org/styles/chicago-author-date-de" rel="self"/>
7
+ <author>
8
+ <name>Julian Onions</name>
9
+ <email>julian.onions@gmail.com</email>
10
+ </author>
11
+ <contributor>
12
+ <name>Peter Baumgartner</name>
13
+ <email>peter.baumgartner@donau-uni.ac.at</email>
14
+ </contributor>
15
+ <category citation-format="author-date"/>
16
+ <category field="generic-base"/>
17
+ <updated>2008-01-01T11:11:12+00:00</updated>
18
+ <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
19
+ <summary>The author-date variant of the Chicago style adapted for German. I addition to the online reference I've used:
20
+ Turabian, K. L. (2007). A Manual for Writers of Research Papers, Theses, and Dissertations. Chicago Style for Students and Researchers. University Of Chicago Press.
21
+ Especially figure 18.1 pp 218-220 --
22
+ NOTE: check all the details and special cases of chapter 19: "Parethetical Citations-Reference List Style: Citing Specific Types of Sources --
23
+ I used as template the Chicago Manual of Style (author-date) Revision 3195 --
24
+ Code changes to adapt for a valid German version: --
25
+ * replaced delimiter-precedes-last="always" with "never" to get rid of the last comma in author names --
26
+ * added colon as suffix of the term "in" --
27
+ * added colon as suffix of the termin "accessed" --
28
+ * changed variable "issue" of "article-journal from "no." to "Nr." --
29
+ * changed "month day" to "day. month" for blog posts (and other entry types? which ones else?)
30
+ I also changed some script logic which in noted in the code: --
31
+ * do not add day-month at the end of a book, even it is provided in the date field of the zotero database (as it sometimes come from amazon) --
32
+ * added access date for material with URL. --
33
+ * not all archive items should end with a fullstop. A doi is followed by a comma and space, a URL just by a space before the date comes. --
34
+ NOTE: this should be checked more in detail --
35
+ * if there is just a secondary contributor (e.g. editor of a book) then this is the primary contributor and the generated output should not repeat the name as secondary contributor.
36
+ </summary>
37
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
38
+ </info>
39
+ <macro name="secondary-contributors">
40
+ <choose>
41
+ <if type="chapter paper-conference" match="none">
42
+ <group delimiter=". ">
43
+ <choose>
44
+ <if variable="author">
45
+ <names variable="editor">
46
+ <label form="verb-short" prefix=" " text-case="capitalize-first" suffix=". " strip-periods="true"/>
47
+ <name and="text" delimiter=", "/>
48
+ </names>
49
+ </if>
50
+ </choose>
51
+ <choose>
52
+ <if variable="author editor" match="any">
53
+ <names variable="translator">
54
+ <label form="verb-short" prefix=" " text-case="capitalize-first" suffix=". " strip-periods="true"/>
55
+ <name and="text" delimiter=", "/>
56
+ </names>
57
+ </if>
58
+ </choose>
59
+ </group>
60
+ </if>
61
+ </choose>
62
+ </macro>
63
+ <macro name="container-contributors">
64
+ <choose>
65
+ <if type="chapter paper-conference" match="any">
66
+ <group prefix="," delimiter=", ">
67
+ <choose>
68
+ <if variable="author">
69
+ <names variable="editor">
70
+ <label form="verb-short" prefix=" " text-case="lowercase" suffix=". " strip-periods="true"/>
71
+ <name and="text" delimiter=", "/>
72
+ </names>
73
+ </if>
74
+ </choose>
75
+ <choose>
76
+ <if variable="author editor" match="any">
77
+ <names variable="translator">
78
+ <label form="verb-short" prefix=" " text-case="lowercase" suffix=". " strip-periods="true"/>
79
+ <name and="text" delimiter=", "/>
80
+ </names>
81
+ </if>
82
+ </choose>
83
+ </group>
84
+ </if>
85
+ </choose>
86
+ </macro>
87
+ <macro name="anon">
88
+ <choose>
89
+ <if variable="author editor translator" match="none">
90
+ <text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/>
91
+ </if>
92
+ </choose>
93
+ </macro>
94
+ <macro name="editor">
95
+ <names variable="editor">
96
+ <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never"/>
97
+ <label form="short" prefix=", " suffix="." strip-periods="true"/>
98
+ </names>
99
+ </macro>
100
+ <macro name="translator">
101
+ <names variable="translator">
102
+ <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never"/>
103
+ <label form="verb-short" prefix=", " suffix="." strip-periods="true"/>
104
+ </names>
105
+ </macro>
106
+ <macro name="recipient">
107
+ <choose>
108
+ <if type="personal_communication">
109
+ <choose>
110
+ <if variable="genre">
111
+ <text variable="genre" text-case="capitalize-first"/>
112
+ </if>
113
+ <else>
114
+ <text term="letter" text-case="capitalize-first"/>
115
+ </else>
116
+ </choose>
117
+ </if>
118
+ </choose>
119
+ <names variable="recipient" delimiter=", ">
120
+ <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
121
+ <name and="text" delimiter=", "/>
122
+ </names>
123
+ </macro>
124
+ <macro name="contributors">
125
+ <names variable="author">
126
+ <name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", " delimiter-precedes-last="never"/>
127
+ <label form="verb-short" prefix=", " suffix="." text-case="lowercase" strip-periods="true"/>
128
+ <substitute>
129
+ <text macro="editor"/>
130
+ <text macro="translator"/>
131
+ </substitute>
132
+ </names>
133
+ <text macro="anon"/>
134
+ <text macro="recipient"/>
135
+ </macro>
136
+ <macro name="contributors-short">
137
+ <names variable="author">
138
+ <name form="short" and="text" delimiter=", " delimiter-precedes-last="never"/>
139
+ <substitute>
140
+ <names variable="editor"/>
141
+ <names variable="translator"/>
142
+ </substitute>
143
+ </names>
144
+ <text macro="anon"/>
145
+ </macro>
146
+ <macro name="interviewer">
147
+ <names variable="interviewer" delimiter=", ">
148
+ <label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/>
149
+ <name and="text" delimiter=", "/>
150
+ </names>
151
+ </macro>
152
+ <macro name="archive">
153
+ <group delimiter=". ">
154
+ <text variable="archive_location" text-case="capitalize-first"/>
155
+ <text variable="archive"/>
156
+ <text variable="archive-place"/>
157
+ </group>
158
+ </macro>
159
+ <macro name="access">
160
+ <group delimiter=". ">
161
+ <choose>
162
+ <if type="graphic report" match="any">
163
+ <text macro="archive"/>
164
+ </if>
165
+ <else-if type="article-journal article-magazine article-newspaper bill book chapter graphic legal_case legislation motion_picture paper-conference report song thesis" match="none">
166
+ <text macro="archive"/>
167
+ </else-if>
168
+ </choose>
169
+ </group>
170
+ <!-- not all items of archive should end with a fullstop. I've transfered end of the delimiter="." group at this place -->
171
+ <text variable="DOI" prefix="doi:" suffix=", "/>
172
+ <text variable="URL"/>
173
+ <!-- added date for material on the web -->
174
+ <group prefix=" (" suffix=")">
175
+ <text term="accessed" text-case="capitalize-first" suffix=": "/>
176
+ <date variable="accessed">
177
+ <date-part name="day" suffix=". "/>
178
+ <date-part name="month" suffix=" "/>
179
+ <date-part name="year"/>
180
+ </date>
181
+ </group>
182
+ </macro>
183
+ <macro name="title">
184
+ <choose>
185
+ <if variable="title" match="none">
186
+ <choose>
187
+ <if type="personal_communication" match="none">
188
+ <text variable="genre" text-case="capitalize-first"/>
189
+ </if>
190
+ </choose>
191
+ </if>
192
+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
193
+ <text variable="title" font-style="italic"/>
194
+ </else-if>
195
+ <else>
196
+ <text variable="title"/>
197
+ </else>
198
+ </choose>
199
+ </macro>
200
+ <macro name="edition">
201
+ <choose>
202
+ <if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
203
+ <choose>
204
+ <if is-numeric="edition">
205
+ <group delimiter=" ">
206
+ <number variable="edition" form="ordinal"/>
207
+ <text term="edition" form="short" suffix="." strip-periods="true"/>
208
+ </group>
209
+ </if>
210
+ <else>
211
+ <text variable="edition" suffix="."/>
212
+ </else>
213
+ </choose>
214
+ </if>
215
+ </choose>
216
+ </macro>
217
+ <macro name="locators">
218
+ <choose>
219
+ <if type="article-journal">
220
+ <text variable="volume" prefix=" "/>
221
+ <text variable="issue" prefix=", Nr. "/>
222
+ </if>
223
+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
224
+ <group prefix=". " delimiter=". ">
225
+ <group>
226
+ <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
227
+ <number variable="volume" form="numeric"/>
228
+ </group>
229
+ <group>
230
+ <number variable="number-of-volumes" form="numeric"/>
231
+ <text term="volume" form="short" prefix=" " suffix="." plural="true" strip-periods="true"/>
232
+ </group>
233
+ </group>
234
+ </else-if>
235
+ </choose>
236
+ </macro>
237
+ <macro name="locators-chapter">
238
+ <choose>
239
+ <if type="chapter paper-conference" match="any">
240
+ <group prefix=", ">
241
+ <text variable="volume" suffix=":"/>
242
+ <text variable="page"/>
243
+ </group>
244
+ </if>
245
+ </choose>
246
+ </macro>
247
+ <macro name="locators-article">
248
+ <choose>
249
+ <if type="article-newspaper">
250
+ <group prefix=", " delimiter=", ">
251
+ <group>
252
+ <text variable="edition" suffix=" "/>
253
+ <text term="edition" prefix=" "/>
254
+ </group>
255
+ <group>
256
+ <text term="section" form="short" suffix=". " strip-periods="true"/>
257
+ <text variable="section"/>
258
+ </group>
259
+ </group>
260
+ </if>
261
+ <else-if type="article-journal">
262
+ <text variable="page" prefix=": "/>
263
+ </else-if>
264
+ </choose>
265
+ </macro>
266
+ <macro name="point-locators">
267
+ <choose>
268
+ <if variable="locator">
269
+ <choose>
270
+ <if locator="page" match="none">
271
+ <label variable="locator" form="short" suffix=" "/>
272
+ </if>
273
+ </choose>
274
+ <text variable="locator"/>
275
+ </if>
276
+ </choose>
277
+ </macro>
278
+ <macro name="container-prefix">
279
+ <text term="in" text-case="capitalize-first" suffix=":"/>
280
+ </macro>
281
+ <macro name="container-title">
282
+ <choose>
283
+ <if type="chapter paper-conference" match="any">
284
+ <text macro="container-prefix" suffix=" "/>
285
+ </if>
286
+ </choose>
287
+ <text variable="container-title" font-style="italic"/>
288
+ </macro>
289
+ <macro name="publisher">
290
+ <group delimiter=": ">
291
+ <text variable="publisher-place"/>
292
+ <text variable="publisher"/>
293
+ </group>
294
+ </macro>
295
+ <macro name="date">
296
+ <date variable="issued">
297
+ <date-part name="year"/>
298
+ </date>
299
+ </macro>
300
+ <macro name="day-month">
301
+ <date variable="issued">
302
+ <date-part name="day" suffix=". "/>
303
+ <date-part name="month"/>
304
+ </date>
305
+ </macro>
306
+ <macro name="collection-title">
307
+ <text variable="collection-title"/>
308
+ <text variable="collection-number" prefix=" "/>
309
+ </macro>
310
+ <macro name="event">
311
+ <group>
312
+ <text term="presented at" suffix=" "/>
313
+ <text variable="event"/>
314
+ </group>
315
+ </macro>
316
+ <macro name="description">
317
+ <group delimiter=". ">
318
+ <text macro="interviewer"/>
319
+ <text variable="medium" text-case="capitalize-first"/>
320
+ </group>
321
+ <choose>
322
+ <if variable="title" match="none"/>
323
+ <else-if type="thesis"/>
324
+ <else>
325
+ <text variable="genre" text-case="capitalize-first" prefix=". "/>
326
+ </else>
327
+ </choose>
328
+ </macro>
329
+ <macro name="issue">
330
+ <choose>
331
+ <if type="article-journal">
332
+ <text macro="day-month" prefix=" (" suffix=")"/>
333
+ </if>
334
+ <else-if type="speech">
335
+ <group prefix=" " delimiter=", ">
336
+ <text macro="event"/>
337
+ <text macro="day-month"/>
338
+ <text variable="event-place"/>
339
+ </group>
340
+ </else-if>
341
+ <else-if type="article-newspaper article-magazine" match="any">
342
+ <text macro="day-month" prefix=", "/>
343
+ </else-if>
344
+ <!-- do not add day-month at the end of a book, even it is provided in the date field of the zotero database (as it sometimes come from amazon) -->
345
+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
346
+ <text macro="publisher" prefix=". "/>
347
+ </else-if>
348
+ <else>
349
+ <group prefix=". " delimiter=", ">
350
+ <choose>
351
+ <if type="thesis">
352
+ <text variable="genre" text-case="capitalize-first"/>
353
+ </if>
354
+ </choose>
355
+ <text macro="publisher"/>
356
+ <text macro="day-month"/>
357
+ </group>
358
+ </else>
359
+ </choose>
360
+ </macro>
361
+ <citation et-al-min="4" et-al-use-first="1" et-al-subsequent-min="4" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true">
362
+ <layout prefix="(" suffix=")" delimiter="; ">
363
+ <group delimiter=", ">
364
+ <group delimiter=" ">
365
+ <text macro="contributors-short"/>
366
+ <text macro="date"/>
367
+ </group>
368
+ <text macro="point-locators"/>
369
+ </group>
370
+ </layout>
371
+ </citation>
372
+ <bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" subsequent-author-substitute="---" entry-spacing="0">
373
+ <sort>
374
+ <key macro="contributors"/>
375
+ <key variable="issued"/>
376
+ </sort>
377
+ <layout suffix=".">
378
+ <text macro="contributors" suffix=". "/>
379
+ <text macro="date" suffix=". "/>
380
+ <text macro="title"/>
381
+ <text macro="description"/>
382
+ <text macro="secondary-contributors" prefix=". "/>
383
+ <text macro="container-title" prefix=". "/>
384
+ <text macro="container-contributors"/>
385
+ <text macro="locators-chapter"/>
386
+ <text macro="edition" prefix=". "/>
387
+ <text macro="locators"/>
388
+ <text macro="collection-title" prefix=". "/>
389
+ <text macro="issue"/>
390
+ <text macro="locators-article"/>
391
+ <text macro="access" prefix=". "/>
392
+ </layout>
393
+ </bibliography>
394
+ </style>
@@ -1,36 +1,40 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" page-range-format="chicago">
3
- <info>
4
- <title>Chicago Manual of Style (Author-Date format)</title>
5
- <id>http://www.zotero.org/styles/chicago-author-date</id>
6
- <link href="http://www.zotero.org/styles/chicago-author-date" rel="self"/>
7
- <author>
8
- <name>Julian Onions</name>
9
- <email>julian.onions@gmail.com</email>
10
- </author>
11
- <category citation-format="author-date"/>
12
- <category field="generic-base"/>
13
- <updated>2009-12-04T20:22:16+00:00</updated>
14
- <summary>The author-date variant of the Chicago style</summary>
15
- <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
16
- </info>
2
+ <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3
+ <info>
4
+ <title>Chicago Manual of Style (author-date)</title>
5
+ <id>http://www.zotero.org/styles/chicago-author-date</id>
6
+ <link href="http://www.zotero.org/styles/chicago-author-date" rel="self"/>
7
+ <author>
8
+ <name>Julian Onions</name>
9
+ <email>julian.onions@gmail.com</email>
10
+ </author>
11
+ <contributor>
12
+ <name>Sebastian Karcher</name>
13
+ </contributor>
14
+ <category citation-format="author-date"/>
15
+ <category field="generic-base"/>
16
+ <updated>2010-03-15T01:24:16+00:00</updated>
17
+ <summary>The author-date variant of the Chicago style</summary>
18
+ <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
19
+ <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
20
+ </info>
17
21
  <macro name="secondary-contributors">
18
22
  <choose>
19
- <if match="none" type="chapter">
23
+ <if type="chapter paper-conference" match="none">
20
24
  <group delimiter=". ">
21
25
  <choose>
22
26
  <if variable="author">
23
27
  <names variable="editor">
24
- <label form="verb-short" prefix=" " suffix=". " text-case="capitalize-first" />
25
- <name and="text" delimiter=", " />
28
+ <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
29
+ <name and="text" delimiter=", "/>
26
30
  </names>
27
31
  </if>
28
32
  </choose>
29
33
  <choose>
30
- <if match="any" variable="author editor">
34
+ <if variable="author editor" match="any">
31
35
  <names variable="translator">
32
- <label form="verb-short" prefix=" " suffix=". " text-case="capitalize-first" />
33
- <name and="text" delimiter=", " />
36
+ <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
37
+ <name and="text" delimiter=", "/>
34
38
  </names>
35
39
  </if>
36
40
  </choose>
@@ -40,21 +44,31 @@
40
44
  </macro>
41
45
  <macro name="container-contributors">
42
46
  <choose>
43
- <if type="chapter">
44
- <group delimiter=", " prefix=",">
47
+ <if type="chapter paper-conference" match="any">
48
+ <group prefix="," delimiter=", ">
45
49
  <choose>
46
50
  <if variable="author">
47
51
  <names variable="editor">
48
- <label form="verb-short" prefix=" " suffix=". " text-case="lowercase" />
49
- <name and="text" delimiter=", " />
52
+ <label form="verb-short" prefix=" " text-case="lowercase" suffix=". " strip-periods="true"/>
53
+ <name and="text" delimiter=", "/>
50
54
  </names>
55
+ <choose>
56
+ <if variable="container-author">
57
+ <group>
58
+ <names variable="container-author">
59
+ <label form="verb-short" prefix=" " text-case="lowercase" suffix=" " strip-periods="true"/>
60
+ <name and="text" delimiter=", "/>
61
+ </names>
62
+ </group>
63
+ </if>
64
+ </choose>
51
65
  </if>
52
66
  </choose>
53
67
  <choose>
54
- <if match="any" variable="author editor">
68
+ <if variable="author editor" match="any">
55
69
  <names variable="translator">
56
- <label form="verb-short" prefix=" " suffix=". " text-case="lowercase" />
57
- <name and="text" delimiter=", " />
70
+ <label form="verb-short" prefix=" " text-case="lowercase" suffix=". " strip-periods="true"/>
71
+ <name and="text" delimiter=", "/>
58
72
  </names>
59
73
  </if>
60
74
  </choose>
@@ -63,22 +77,18 @@
63
77
  </choose>
64
78
  </macro>
65
79
  <macro name="anon">
66
- <choose>
67
- <if match="none" variable="author editor translator">
68
- <text form="short" term="anonymous" text-case="capitalize-first" />
69
- </if>
70
- </choose>
80
+ <text term="anonymous" form="short" text-case="capitalize-first" suffix="." strip-periods="true"/>
71
81
  </macro>
72
82
  <macro name="editor">
73
83
  <names variable="editor">
74
- <name and="text" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="first" sort-separator=", " />
75
- <label form="short" prefix=", " suffix="." />
84
+ <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
85
+ <label form="short" prefix=", " suffix="." strip-periods="true"/>
76
86
  </names>
77
87
  </macro>
78
88
  <macro name="translator">
79
89
  <names variable="translator">
80
- <name and="text" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="first" sort-separator=", " />
81
- <label form="verb-short" prefix=", " suffix="." />
90
+ <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
91
+ <label form="verb-short" prefix=", " suffix="." strip-periods="true"/>
82
92
  </names>
83
93
  </macro>
84
94
  <macro name="recipient">
@@ -86,97 +96,101 @@
86
96
  <if type="personal_communication">
87
97
  <choose>
88
98
  <if variable="genre">
89
- <text text-case="capitalize-first" variable="genre" />
99
+ <text variable="genre" text-case="capitalize-first"/>
90
100
  </if>
91
101
  <else>
92
- <text term="letter" text-case="capitalize-first" />
102
+ <text term="letter" text-case="capitalize-first"/>
93
103
  </else>
94
104
  </choose>
95
105
  </if>
96
106
  </choose>
97
- <names delimiter=", " variable="recipient">
98
- <label form="verb" prefix=" " suffix=" " text-case="lowercase" />
99
- <name and="text" delimiter=", " />
107
+ <names variable="recipient" delimiter=", ">
108
+ <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
109
+ <name and="text" delimiter=", "/>
100
110
  </names>
101
111
  </macro>
102
112
  <macro name="contributors">
103
113
  <names variable="author">
104
- <name and="text" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="first" sort-separator=", " />
105
- <label form="verb-short" prefix=", " suffix="." text-case="lowercase" />
114
+ <name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
115
+ <label form="verb-short" prefix=", " suffix="." text-case="lowercase" strip-periods="true"/>
106
116
  <substitute>
107
- <text macro="editor" />
108
- <text macro="translator" />
117
+ <text macro="editor"/>
118
+ <text macro="translator"/>
119
+ <text macro="anon"/>
109
120
  </substitute>
110
121
  </names>
111
- <text macro="anon" />
112
- <text macro="recipient" />
122
+ <text macro="recipient"/>
113
123
  </macro>
114
124
  <macro name="contributors-short">
115
125
  <names variable="author">
116
- <name and="text" delimiter=", " form="short" />
126
+ <name form="short" and="text" delimiter=", " initialize-with=". "/>
117
127
  <substitute>
118
- <names variable="editor" />
119
- <names variable="translator" />
128
+ <names variable="editor"/>
129
+ <names variable="translator"/>
130
+ <text macro="anon"/>
120
131
  </substitute>
121
132
  </names>
122
- <text macro="anon" />
123
133
  </macro>
124
134
  <macro name="interviewer">
125
- <names delimiter=", " variable="interviewer">
126
- <label form="verb" prefix=" " suffix=" " text-case="capitalize-first" />
127
- <name and="text" delimiter=", " />
135
+ <names variable="interviewer" delimiter=", ">
136
+ <label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/>
137
+ <name and="text" delimiter=", "/>
128
138
  </names>
129
139
  </macro>
130
140
  <macro name="archive">
131
141
  <group delimiter=". ">
132
- <text text-case="capitalize-first" variable="archive_location" />
133
- <text variable="archive" />
134
- <text variable="archive-place" />
142
+ <text variable="archive_location" text-case="capitalize-first"/>
143
+ <text variable="archive"/>
144
+ <text variable="archive-place"/>
135
145
  </group>
136
146
  </macro>
137
147
  <macro name="access">
138
148
  <group delimiter=". ">
139
149
  <choose>
140
- <if match="any" type="graphic report">
141
- <text macro="archive" />
150
+ <if type="graphic report" match="any">
151
+ <text macro="archive"/>
142
152
  </if>
143
- <else-if match="none" type="book thesis chapter article-journal article-newspaper article-magazine">
144
- <text macro="archive" />
153
+ <else-if type="article-magazine article-newspaper bill book chapter graphic legal_case legislation motion_picture paper-conference report song thesis" match="none">
154
+ <text macro="archive"/>
145
155
  </else-if>
146
156
  </choose>
147
- <text prefix="doi:" variable="DOI" />
148
- <text variable="URL" />
157
+ <text variable="DOI" prefix="doi:"/>
158
+ <choose>
159
+ <if type="legal_case" match="none">
160
+ <text variable="URL"/>
161
+ </if>
162
+ </choose>
149
163
  </group>
150
164
  </macro>
151
165
  <macro name="title">
152
166
  <choose>
153
- <if match="none" variable="title">
167
+ <if variable="title" match="none">
154
168
  <choose>
155
- <if match="none" type="personal_communication">
156
- <text text-case="capitalize-first" variable="genre" />
169
+ <if type="personal_communication" match="none">
170
+ <text variable="genre" text-case="capitalize-first"/>
157
171
  </if>
158
172
  </choose>
159
173
  </if>
160
- <else-if type="book">
161
- <text font-style="italic" variable="title" />
174
+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
175
+ <text variable="title" text-case="title" font-style="italic"/>
162
176
  </else-if>
163
177
  <else>
164
- <text variable="title" />
178
+ <text variable="title" text-case="title" quotes="true"/>
165
179
  </else>
166
180
  </choose>
167
181
  </macro>
168
182
  <macro name="edition">
169
183
  <choose>
170
- <if match="any" type="book chapter">
184
+ <if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
171
185
  <choose>
172
186
  <if is-numeric="edition">
173
187
  <group delimiter=" ">
174
- <number form="ordinal" variable="edition" />
175
- <text form="short" suffix="." term="edition" />
188
+ <number variable="edition" form="ordinal"/>
189
+ <text term="edition" form="short" suffix="." strip-periods="true"/>
176
190
  </group>
177
191
  </if>
178
192
  <else>
179
- <text suffix="." variable="edition" />
193
+ <text variable="edition" suffix="."/>
180
194
  </else>
181
195
  </choose>
182
196
  </if>
@@ -185,185 +199,227 @@
185
199
  <macro name="locators">
186
200
  <choose>
187
201
  <if type="article-journal">
188
- <text prefix=" " variable="volume" />
189
- <text prefix=", no. " variable="issue" />
202
+ <text variable="volume" prefix=" "/>
203
+ <text variable="issue" prefix=" (" suffix=")"/>
190
204
  </if>
191
- <else-if type="book">
192
- <group delimiter=". " prefix=". ">
205
+ <else-if type="legal_case">
206
+ <text variable="volume" prefix=", "/>
207
+ <text variable="container-title" prefix=" "/>
208
+ <text variable="page" prefix=" "/>
209
+ </else-if>
210
+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
211
+ <group prefix=". " delimiter=". ">
193
212
  <group>
194
- <text form="short" suffix=". " term="volume" text-case="capitalize-first" />
195
- <number form="numeric" variable="volume" />
213
+ <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
214
+ <number variable="volume" form="numeric"/>
196
215
  </group>
197
216
  <group>
198
- <number form="numeric" variable="number-of-volumes" />
199
- <text form="short" plural="true" prefix=" " suffix="." term="volume" />
217
+ <number variable="number-of-volumes" form="numeric"/>
218
+ <text term="volume" form="short" prefix=" " suffix="." plural="true" strip-periods="true"/>
200
219
  </group>
201
220
  </group>
202
221
  </else-if>
222
+ <else-if type="chapter paper-conference" match="any">
223
+ <choose>
224
+ <if variable="page" match="none">
225
+ <group prefix=". ">
226
+ <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
227
+ <number variable="volume" form="numeric"/>
228
+ </group>
229
+ </if>
230
+ </choose>
231
+ </else-if>
203
232
  </choose>
204
233
  </macro>
205
234
  <macro name="locators-chapter">
206
235
  <choose>
207
- <if type="chapter">
208
- <group prefix=", ">
209
- <text suffix=":" variable="volume" />
210
- <text variable="page" />
211
- </group>
236
+ <if type="chapter paper-conference" match="any">
237
+ <choose>
238
+ <if variable="page">
239
+ <group prefix=", ">
240
+ <text variable="volume" suffix=":"/>
241
+ <text variable="page"/>
242
+ </group>
243
+ </if>
244
+ </choose>
212
245
  </if>
213
246
  </choose>
214
247
  </macro>
215
248
  <macro name="locators-article">
216
249
  <choose>
217
250
  <if type="article-newspaper">
218
- <group delimiter=", " prefix=", ">
251
+ <group prefix=", " delimiter=", ">
219
252
  <group>
220
- <text suffix=" " variable="edition" />
221
- <text prefix=" " term="edition" />
253
+ <text variable="edition" suffix=" "/>
254
+ <text term="edition" prefix=" "/>
222
255
  </group>
223
256
  <group>
224
- <text form="short" suffix=". " term="section" />
225
- <text variable="section" />
257
+ <text term="section" form="short" suffix=". " strip-periods="true"/>
258
+ <text variable="section"/>
226
259
  </group>
227
260
  </group>
228
261
  </if>
229
262
  <else-if type="article-journal">
230
- <text prefix=": " variable="page" />
263
+ <text variable="page" prefix=": "/>
231
264
  </else-if>
232
265
  </choose>
233
266
  </macro>
234
267
  <macro name="point-locators">
235
- <group>
236
- <choose>
237
- <if locator="page" match="none">
238
- <label form="short" suffix=" " variable="locator" />
239
- </if>
240
- </choose>
241
- <text variable="locator" />
242
- </group>
268
+ <choose>
269
+ <if variable="locator">
270
+ <choose>
271
+ <if locator="page" match="none">
272
+ <choose>
273
+ <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
274
+ <choose>
275
+ <if variable="volume">
276
+ <group>
277
+ <text term="volume" form="short" text-case="lowercase" suffix=". " strip-periods="true"/>
278
+ <number variable="volume" form="numeric"/>
279
+ <label variable="locator" form="short" prefix=", " suffix=" "/>
280
+ </group>
281
+ </if>
282
+ <else>
283
+ <label variable="locator" form="short" suffix=" "/>
284
+ </else>
285
+ </choose>
286
+ </if>
287
+ <else>
288
+ <label variable="locator" form="short" suffix=" "/>
289
+ </else>
290
+ </choose>
291
+ </if>
292
+ <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
293
+ <number variable="volume" form="numeric" suffix=":"/>
294
+ </else-if>
295
+ </choose>
296
+ <text variable="locator"/>
297
+ </if>
298
+ </choose>
243
299
  </macro>
244
300
  <macro name="container-prefix">
245
- <text term="in" text-case="capitalize-first" />
301
+ <text term="in" text-case="capitalize-first"/>
246
302
  </macro>
247
303
  <macro name="container-title">
248
304
  <choose>
249
- <if type="chapter">
250
- <text macro="container-prefix" suffix=" " />
305
+ <if type="chapter paper-conference" match="any">
306
+ <text macro="container-prefix" suffix=" "/>
307
+ </if>
308
+ </choose>
309
+ <choose>
310
+ <if type="legal_case" match="none">
311
+ <text variable="container-title" text-case="title" font-style="italic"/>
251
312
  </if>
252
313
  </choose>
253
- <text font-style="italic" variable="container-title" />
254
314
  </macro>
255
315
  <macro name="publisher">
256
316
  <group delimiter=": ">
257
- <text variable="publisher-place" />
258
- <text variable="publisher" />
317
+ <text variable="publisher-place"/>
318
+ <text variable="publisher"/>
259
319
  </group>
260
320
  </macro>
261
321
  <macro name="date">
262
322
  <date variable="issued">
263
- <date-part name="year" />
323
+ <date-part name="year"/>
264
324
  </date>
265
325
  </macro>
266
326
  <macro name="day-month">
267
327
  <date variable="issued">
268
- <date-part name="month" />
269
- <date-part name="day" prefix=" " />
328
+ <date-part name="month"/>
329
+ <date-part name="day" prefix=" "/>
270
330
  </date>
271
331
  </macro>
272
332
  <macro name="collection-title">
273
- <text variable="collection-title" />
274
- <text prefix=" " variable="collection-number" />
333
+ <text variable="collection-title" text-case="title"/>
334
+ <text variable="collection-number" prefix=" "/>
275
335
  </macro>
276
336
  <macro name="event">
277
337
  <group>
278
- <text suffix=" " term="presented at" />
279
- <text variable="event" />
338
+ <text term="presented at" suffix=" "/>
339
+ <text variable="event"/>
280
340
  </group>
281
341
  </macro>
282
342
  <macro name="description">
283
- <group delimiter=". ">
284
- <text macro="interviewer" />
285
- <text text-case="capitalize-first" variable="medium" />
286
- </group>
287
343
  <choose>
288
- <if match="none" variable="title"> </if>
289
- <else-if type="thesis"> </else-if>
344
+ <if type="interview">
345
+ <group delimiter=". ">
346
+ <text macro="interviewer"/>
347
+ <text variable="medium" text-case="capitalize-first"/>
348
+ </group>
349
+ </if>
350
+ <else>
351
+ <text variable="medium" text-case="capitalize-first" prefix=". "/>
352
+ </else>
353
+ </choose>
354
+ <choose>
355
+ <if variable="title" match="none"/>
356
+ <else-if type="thesis"/>
290
357
  <else>
291
- <text prefix=". " text-case="capitalize-first" variable="genre" />
358
+ <text variable="genre" text-case="capitalize-first" prefix=". "/>
292
359
  </else>
293
360
  </choose>
294
361
  </macro>
295
362
  <macro name="issue">
296
363
  <choose>
297
364
  <if type="article-journal">
298
- <text macro="day-month" prefix=" (" suffix=")" />
365
+ <text macro="day-month" prefix=" (" suffix=")"/>
299
366
  </if>
367
+ <else-if type="legal_case">
368
+ <text variable="authority" prefix=". "/>
369
+ </else-if>
300
370
  <else-if type="speech">
301
- <group delimiter=", " prefix=" ">
302
- <text macro="event" />
303
- <text macro="day-month" />
304
- <text variable="event-place" />
371
+ <group prefix=" " delimiter=", ">
372
+ <text macro="event"/>
373
+ <text macro="day-month"/>
374
+ <text variable="event-place"/>
305
375
  </group>
306
376
  </else-if>
307
- <else-if match="any" type="article-newspaper article-magazine">
308
- <text macro="day-month" prefix=", " />
377
+ <else-if type="article-newspaper article-magazine" match="any">
378
+ <text macro="day-month" prefix=", "/>
309
379
  </else-if>
310
380
  <else>
311
- <group delimiter=", " prefix=". ">
381
+ <group prefix=". " delimiter=", ">
312
382
  <choose>
313
383
  <if type="thesis">
314
- <text text-case="capitalize-first" variable="genre" />
384
+ <text variable="genre" text-case="capitalize-first"/>
315
385
  </if>
316
386
  </choose>
317
- <text macro="publisher" />
318
- <text macro="day-month" />
387
+ <text macro="publisher"/>
319
388
  </group>
320
389
  </else>
321
390
  </choose>
322
391
  </macro>
323
- <citation
324
- disambiguate-add-givenname="true"
325
- disambiguate-add-names="true"
326
- disambiguate-add-year-suffix="true"
327
- et-al-min="4"
328
- et-al-subsequent-min="4"
329
- et-al-subsequent-use-first="1"
330
- et-al-use-first="1">
331
- <layout delimiter="; " prefix="(" suffix=")">
392
+ <citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name">
393
+ <layout prefix="(" suffix=")" delimiter="; ">
332
394
  <group delimiter=", ">
333
395
  <group delimiter=" ">
334
- <text macro="contributors-short" />
335
- <text macro="date" />
396
+ <text macro="contributors-short"/>
397
+ <text macro="date"/>
336
398
  </group>
337
- <text macro="point-locators" />
399
+ <text macro="point-locators"/>
338
400
  </group>
339
401
  </layout>
340
402
  </citation>
341
- <bibliography
342
- entry-spacing="0"
343
- et-al-min="11"
344
- et-al-use-first="7"
345
- hanging-indent="true"
346
- subsequent-author-substitute="---">
403
+ <bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" subsequent-author-substitute="———" entry-spacing="0">
347
404
  <sort>
348
- <key macro="contributors" />
349
- <key variable="issued" />
350
- <key variable="title" />
405
+ <key macro="contributors"/>
406
+ <key variable="issued"/>
351
407
  </sort>
352
408
  <layout suffix=".">
353
- <text macro="contributors" suffix=". " />
354
- <text macro="date" suffix=". " />
355
- <text macro="title" />
356
- <text macro="description" />
357
- <text macro="secondary-contributors" prefix=". " />
358
- <text macro="container-title" prefix=". " />
359
- <text macro="container-contributors" />
360
- <text macro="locators-chapter" />
361
- <text macro="edition" prefix=". " />
362
- <text macro="locators" />
363
- <text macro="collection-title" prefix=". " />
364
- <text macro="issue" />
365
- <text macro="locators-article" />
366
- <text macro="access" prefix=". " />
409
+ <text macro="contributors" suffix=". "/>
410
+ <text macro="date" suffix=". "/>
411
+ <text macro="title"/>
412
+ <text macro="description"/>
413
+ <text macro="secondary-contributors" prefix=". "/>
414
+ <text macro="container-title" prefix=". "/>
415
+ <text macro="container-contributors"/>
416
+ <text macro="locators-chapter"/>
417
+ <text macro="edition" prefix=". "/>
418
+ <text macro="locators"/>
419
+ <text macro="collection-title" prefix=". "/>
420
+ <text macro="issue"/>
421
+ <text macro="locators-article"/>
422
+ <text macro="access" prefix=". "/>
367
423
  </layout>
368
424
  </bibliography>
369
425
  </style>