citeproc-ruby 0.0.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.document +4 -0
  4. data/.gitignore +10 -0
  5. data/.rspec +3 -0
  6. data/.simplecov +4 -0
  7. data/.travis.yml +17 -0
  8. data/.yardopts +2 -0
  9. data/AGPL +662 -0
  10. data/BSDL +29 -0
  11. data/Gemfile +42 -0
  12. data/Guardfile +14 -0
  13. data/README.md +32 -76
  14. data/Rakefile +60 -0
  15. data/citeproc-ruby.gemspec +46 -0
  16. data/cucumber.yml +1 -0
  17. data/features/bibliography.feature +25 -0
  18. data/features/name_options.feature +37 -0
  19. data/features/names.feature +192 -0
  20. data/features/renderer.feature +74 -0
  21. data/features/sort.feature +50 -0
  22. data/features/step_definitions/renderer.rb +80 -0
  23. data/features/support/env.rb +33 -0
  24. data/features/support/hooks.rb +10 -0
  25. data/lib/citeproc/ruby.rb +32 -0
  26. data/lib/citeproc/ruby/engine.rb +122 -0
  27. data/lib/citeproc/ruby/format.rb +303 -0
  28. data/lib/citeproc/ruby/formats/default.rb +25 -0
  29. data/lib/citeproc/ruby/formats/html.rb +221 -0
  30. data/lib/citeproc/ruby/renderer.rb +140 -0
  31. data/lib/citeproc/ruby/renderer/choose.rb +106 -0
  32. data/lib/citeproc/ruby/renderer/date.rb +90 -0
  33. data/lib/citeproc/ruby/renderer/format.rb +129 -0
  34. data/lib/citeproc/ruby/renderer/group.rb +34 -0
  35. data/lib/citeproc/ruby/renderer/history.rb +40 -0
  36. data/lib/citeproc/ruby/renderer/label.rb +66 -0
  37. data/lib/citeproc/ruby/renderer/layout.rb +20 -0
  38. data/lib/citeproc/ruby/renderer/locale.rb +26 -0
  39. data/lib/citeproc/ruby/renderer/macro.rb +20 -0
  40. data/lib/citeproc/ruby/renderer/names.rb +401 -0
  41. data/lib/citeproc/ruby/renderer/number.rb +41 -0
  42. data/lib/citeproc/ruby/renderer/observer.rb +44 -0
  43. data/lib/citeproc/ruby/renderer/state.rb +96 -0
  44. data/lib/citeproc/ruby/renderer/text.rb +62 -0
  45. data/lib/citeproc/ruby/sort.rb +82 -0
  46. data/lib/citeproc/ruby/version.rb +5 -0
  47. data/spec/citeproc/ruby/engine_spec.rb +94 -0
  48. data/spec/citeproc/ruby/formats/default_spec.rb +159 -0
  49. data/spec/citeproc/ruby/formats/html_spec.rb +162 -0
  50. data/spec/citeproc/ruby/renderer/choose_spec.rb +293 -0
  51. data/spec/citeproc/ruby/renderer/date_spec.rb +173 -0
  52. data/spec/citeproc/ruby/renderer/group_spec.rb +88 -0
  53. data/spec/citeproc/ruby/renderer/history_spec.rb +38 -0
  54. data/spec/citeproc/ruby/renderer/label_spec.rb +225 -0
  55. data/spec/citeproc/ruby/renderer/layout_spec.rb +41 -0
  56. data/spec/citeproc/ruby/renderer/macro_spec.rb +31 -0
  57. data/spec/citeproc/ruby/renderer/names_spec.rb +396 -0
  58. data/spec/citeproc/ruby/renderer/number_spec.rb +120 -0
  59. data/spec/citeproc/ruby/renderer/text_spec.rb +120 -0
  60. data/spec/citeproc/ruby/renderer_spec.rb +65 -0
  61. data/spec/fixtures/items.rb +80 -0
  62. data/{resource/locale → spec/fixtures/locales}/locales-en-US.xml +2 -11
  63. data/{resource/locale → spec/fixtures/locales}/locales-fr-FR.xml +77 -66
  64. data/{resource/style → spec/fixtures/styles}/apa.csl +5 -5
  65. data/spec/spec_helper.rb +67 -14
  66. metadata +121 -211
  67. data/lib/citeproc.rb +0 -100
  68. data/lib/citeproc/bibliography.rb +0 -57
  69. data/lib/citeproc/data.rb +0 -149
  70. data/lib/citeproc/date.rb +0 -133
  71. data/lib/citeproc/formatter.rb +0 -38
  72. data/lib/citeproc/item.rb +0 -53
  73. data/lib/citeproc/name.rb +0 -284
  74. data/lib/citeproc/processor.rb +0 -166
  75. data/lib/citeproc/selector.rb +0 -61
  76. data/lib/citeproc/variable.rb +0 -82
  77. data/lib/citeproc/version.rb +0 -3
  78. data/lib/csl/locale.rb +0 -223
  79. data/lib/csl/node.rb +0 -72
  80. data/lib/csl/nodes.rb +0 -1418
  81. data/lib/csl/renderer.rb +0 -88
  82. data/lib/csl/sort.rb +0 -61
  83. data/lib/csl/style.rb +0 -110
  84. data/lib/csl/term.rb +0 -124
  85. data/lib/extensions/core.rb +0 -43
  86. data/lib/plugins/filters/bibtex.rb +0 -12
  87. data/lib/plugins/formats/default.rb +0 -134
  88. data/lib/plugins/formats/html.rb +0 -67
  89. data/lib/support/attributes.rb +0 -99
  90. data/lib/support/compatibility.rb +0 -83
  91. data/lib/support/tree.rb +0 -80
  92. data/resource/locale/locales-af-ZA.xml +0 -305
  93. data/resource/locale/locales-ar-AR.xml +0 -306
  94. data/resource/locale/locales-bg-BG.xml +0 -305
  95. data/resource/locale/locales-ca-AD.xml +0 -305
  96. data/resource/locale/locales-cs-CZ.xml +0 -305
  97. data/resource/locale/locales-da-DK.xml +0 -305
  98. data/resource/locale/locales-de-AT.xml +0 -304
  99. data/resource/locale/locales-de-CH.xml +0 -304
  100. data/resource/locale/locales-de-DE.xml +0 -332
  101. data/resource/locale/locales-el-GR.xml +0 -305
  102. data/resource/locale/locales-en-GB.xml +0 -304
  103. data/resource/locale/locales-es-ES.xml +0 -305
  104. data/resource/locale/locales-et-EE.xml +0 -304
  105. data/resource/locale/locales-eu.xml +0 -305
  106. data/resource/locale/locales-fa-IR.xml +0 -304
  107. data/resource/locale/locales-fi-FI.xml +0 -304
  108. data/resource/locale/locales-fr-CA.xml +0 -306
  109. data/resource/locale/locales-he-IL.xml +0 -304
  110. data/resource/locale/locales-hu-HU.xml +0 -305
  111. data/resource/locale/locales-is-IS.xml +0 -304
  112. data/resource/locale/locales-it-IT.xml +0 -305
  113. data/resource/locale/locales-ja-JP.xml +0 -305
  114. data/resource/locale/locales-kh-KH.xml +0 -303
  115. data/resource/locale/locales-km-KH.xml +0 -304
  116. data/resource/locale/locales-ko-KR.xml +0 -305
  117. data/resource/locale/locales-mn-MN.xml +0 -306
  118. data/resource/locale/locales-nb-NO.xml +0 -304
  119. data/resource/locale/locales-nl-NL.xml +0 -304
  120. data/resource/locale/locales-nn-NO.xml +0 -304
  121. data/resource/locale/locales-pl-PL.xml +0 -305
  122. data/resource/locale/locales-pt-BR.xml +0 -304
  123. data/resource/locale/locales-pt-PT.xml +0 -305
  124. data/resource/locale/locales-ro-RO.xml +0 -305
  125. data/resource/locale/locales-ru-RU.xml +0 -306
  126. data/resource/locale/locales-sk-SK.xml +0 -304
  127. data/resource/locale/locales-sl-SI.xml +0 -305
  128. data/resource/locale/locales-sr-RS.xml +0 -305
  129. data/resource/locale/locales-sv-SE.xml +0 -305
  130. data/resource/locale/locales-th-TH.xml +0 -304
  131. data/resource/locale/locales-tr-TR.xml +0 -305
  132. data/resource/locale/locales-uk-UA.xml +0 -306
  133. data/resource/locale/locales-vi-VN.xml +0 -305
  134. data/resource/locale/locales-zh-CN.xml +0 -304
  135. data/resource/locale/locales-zh-TW.xml +0 -305
  136. data/resource/schema/csl-categories.rnc +0 -39
  137. data/resource/schema/csl-data.rnc +0 -98
  138. data/resource/schema/csl-terms.rnc +0 -106
  139. data/resource/schema/csl-types.rnc +0 -39
  140. data/resource/schema/csl-variables.rnc +0 -182
  141. data/resource/schema/csl.rnc +0 -941
  142. data/resource/style/bibtex.csl +0 -177
  143. data/resource/style/chicago-annotated-bibliography.csl +0 -513
  144. data/resource/style/chicago-author-date-basque.csl +0 -707
  145. data/resource/style/chicago-author-date-de.csl +0 -394
  146. data/resource/style/chicago-author-date-listing.csl +0 -434
  147. data/resource/style/chicago-author-date.csl +0 -425
  148. data/resource/style/chicago-dated-note-biblio-no-ibid.csl +0 -472
  149. data/resource/style/chicago-fullnote-bibliography-bb.csl +0 -928
  150. data/resource/style/chicago-fullnote-bibliography-delimiter-fixes.csl +0 -972
  151. data/resource/style/chicago-fullnote-bibliography-no-ibid-delimiter-fixes.csl +0 -963
  152. data/resource/style/chicago-fullnote-bibliography-no-ibid.csl +0 -785
  153. data/resource/style/chicago-fullnote-bibliography.csl +0 -803
  154. data/resource/style/chicago-library-list.csl +0 -511
  155. data/resource/style/chicago-note-biblio-no-ibid.csl +0 -514
  156. data/resource/style/chicago-note-bibliography.csl +0 -530
  157. data/resource/style/chicago-note.csl +0 -388
  158. data/resource/style/chicago-quick-copy.csl +0 -685
  159. data/resource/style/ieee.csl +0 -299
  160. data/resource/style/mla-notes.csl +0 -796
  161. data/resource/style/mla-underline.csl +0 -175
  162. data/resource/style/mla-url.csl +0 -214
  163. data/resource/style/mla.csl +0 -394
  164. data/resource/style/vancouver-brackets.csl +0 -256
  165. data/resource/style/vancouver-superscript-bracket-only-year.csl +0 -165
  166. data/resource/style/vancouver-superscript.csl +0 -256
  167. data/resource/style/vancouver.csl +0 -256
  168. data/spec/citeproc/bibliography_spec.rb +0 -45
  169. data/spec/citeproc/citeproc_spec.rb +0 -80
  170. data/spec/citeproc/date_spec.rb +0 -89
  171. data/spec/citeproc/formatter_spec.rb +0 -101
  172. data/spec/citeproc/item_spec.rb +0 -71
  173. data/spec/citeproc/name_spec.rb +0 -30
  174. data/spec/citeproc/processor_spec.rb +0 -61
  175. data/spec/citeproc/selector_spec.rb +0 -82
  176. data/spec/citeproc/variable_spec.rb +0 -69
  177. data/spec/csl/locale_spec.rb +0 -208
  178. data/spec/csl/node_spec.rb +0 -25
  179. data/spec/csl/nodes_spec.rb +0 -145
  180. data/spec/csl/style_spec.rb +0 -62
  181. data/spec/csl/term_spec.rb +0 -56
  182. data/spec/fixtures/dates.yaml +0 -80
  183. data/spec/fixtures/names.yaml +0 -115
  184. data/spec/fixtures/nodes.yaml +0 -245
  185. data/spec/support/attributes_spec.rb +0 -39
  186. data/spec/support/tree_spec.rb +0 -163
@@ -1,425 +0,0 @@
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)</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>
21
- <macro name="secondary-contributors">
22
- <choose>
23
- <if type="chapter paper-conference" match="none">
24
- <group delimiter=". ">
25
- <choose>
26
- <if variable="author">
27
- <names variable="editor">
28
- <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
29
- <name and="text" delimiter=", "/>
30
- </names>
31
- </if>
32
- </choose>
33
- <choose>
34
- <if variable="author editor" match="any">
35
- <names variable="translator">
36
- <label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
37
- <name and="text" delimiter=", "/>
38
- </names>
39
- </if>
40
- </choose>
41
- </group>
42
- </if>
43
- </choose>
44
- </macro>
45
- <macro name="container-contributors">
46
- <choose>
47
- <if type="chapter paper-conference" match="any">
48
- <group prefix="," delimiter=", ">
49
- <choose>
50
- <if variable="author">
51
- <names variable="editor">
52
- <label form="verb-short" prefix=" " text-case="lowercase" suffix=". " strip-periods="true"/>
53
- <name and="text" delimiter=", "/>
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>
65
- </if>
66
- </choose>
67
- <choose>
68
- <if variable="author editor" match="any">
69
- <names variable="translator">
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
- </group>
76
- </if>
77
- </choose>
78
- </macro>
79
- <macro name="anon">
80
- <text term="anonymous" form="short" text-case="capitalize-first" suffix="." strip-periods="true"/>
81
- </macro>
82
- <macro name="editor">
83
- <names variable="editor">
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"/>
86
- </names>
87
- </macro>
88
- <macro name="translator">
89
- <names variable="translator">
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"/>
92
- </names>
93
- </macro>
94
- <macro name="recipient">
95
- <choose>
96
- <if type="personal_communication">
97
- <choose>
98
- <if variable="genre">
99
- <text variable="genre" text-case="capitalize-first"/>
100
- </if>
101
- <else>
102
- <text term="letter" text-case="capitalize-first"/>
103
- </else>
104
- </choose>
105
- </if>
106
- </choose>
107
- <names variable="recipient" delimiter=", ">
108
- <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
109
- <name and="text" delimiter=", "/>
110
- </names>
111
- </macro>
112
- <macro name="contributors">
113
- <names variable="author">
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"/>
116
- <substitute>
117
- <text macro="editor"/>
118
- <text macro="translator"/>
119
- <text macro="anon"/>
120
- </substitute>
121
- </names>
122
- <text macro="recipient"/>
123
- </macro>
124
- <macro name="contributors-short">
125
- <names variable="author">
126
- <name form="short" and="text" delimiter=", " initialize-with=". "/>
127
- <substitute>
128
- <names variable="editor"/>
129
- <names variable="translator"/>
130
- <text macro="anon"/>
131
- </substitute>
132
- </names>
133
- </macro>
134
- <macro name="interviewer">
135
- <names variable="interviewer" delimiter=", ">
136
- <label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/>
137
- <name and="text" delimiter=", "/>
138
- </names>
139
- </macro>
140
- <macro name="archive">
141
- <group delimiter=". ">
142
- <text variable="archive_location" text-case="capitalize-first"/>
143
- <text variable="archive"/>
144
- <text variable="archive-place"/>
145
- </group>
146
- </macro>
147
- <macro name="access">
148
- <group delimiter=". ">
149
- <choose>
150
- <if type="graphic report" match="any">
151
- <text macro="archive"/>
152
- </if>
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"/>
155
- </else-if>
156
- </choose>
157
- <text variable="DOI" prefix="doi:"/>
158
- <choose>
159
- <if type="legal_case" match="none">
160
- <text variable="URL"/>
161
- </if>
162
- </choose>
163
- </group>
164
- </macro>
165
- <macro name="title">
166
- <choose>
167
- <if variable="title" match="none">
168
- <choose>
169
- <if type="personal_communication" match="none">
170
- <text variable="genre" text-case="capitalize-first"/>
171
- </if>
172
- </choose>
173
- </if>
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"/>
176
- </else-if>
177
- <else>
178
- <text variable="title" text-case="title" quotes="true"/>
179
- </else>
180
- </choose>
181
- </macro>
182
- <macro name="edition">
183
- <choose>
184
- <if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
185
- <choose>
186
- <if is-numeric="edition">
187
- <group delimiter=" ">
188
- <number variable="edition" form="ordinal"/>
189
- <text term="edition" form="short" suffix="." strip-periods="true"/>
190
- </group>
191
- </if>
192
- <else>
193
- <text variable="edition" suffix="."/>
194
- </else>
195
- </choose>
196
- </if>
197
- </choose>
198
- </macro>
199
- <macro name="locators">
200
- <choose>
201
- <if type="article-journal">
202
- <text variable="volume" prefix=" "/>
203
- <text variable="issue" prefix=" (" suffix=")"/>
204
- </if>
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=". ">
212
- <group>
213
- <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
214
- <number variable="volume" form="numeric"/>
215
- </group>
216
- <group>
217
- <number variable="number-of-volumes" form="numeric"/>
218
- <text term="volume" form="short" prefix=" " suffix="." plural="true" strip-periods="true"/>
219
- </group>
220
- </group>
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>
232
- </choose>
233
- </macro>
234
- <macro name="locators-chapter">
235
- <choose>
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>
245
- </if>
246
- </choose>
247
- </macro>
248
- <macro name="locators-article">
249
- <choose>
250
- <if type="article-newspaper">
251
- <group prefix=", " delimiter=", ">
252
- <group>
253
- <text variable="edition" suffix=" "/>
254
- <text term="edition" prefix=" "/>
255
- </group>
256
- <group>
257
- <text term="section" form="short" suffix=". " strip-periods="true"/>
258
- <text variable="section"/>
259
- </group>
260
- </group>
261
- </if>
262
- <else-if type="article-journal">
263
- <text variable="page" prefix=": "/>
264
- </else-if>
265
- </choose>
266
- </macro>
267
- <macro name="point-locators">
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>
299
- </macro>
300
- <macro name="container-prefix">
301
- <text term="in" text-case="capitalize-first"/>
302
- </macro>
303
- <macro name="container-title">
304
- <choose>
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"/>
312
- </if>
313
- </choose>
314
- </macro>
315
- <macro name="publisher">
316
- <group delimiter=": ">
317
- <text variable="publisher-place"/>
318
- <text variable="publisher"/>
319
- </group>
320
- </macro>
321
- <macro name="date">
322
- <date variable="issued">
323
- <date-part name="year"/>
324
- </date>
325
- </macro>
326
- <macro name="day-month">
327
- <date variable="issued">
328
- <date-part name="month"/>
329
- <date-part name="day" prefix=" "/>
330
- </date>
331
- </macro>
332
- <macro name="collection-title">
333
- <text variable="collection-title" text-case="title"/>
334
- <text variable="collection-number" prefix=" "/>
335
- </macro>
336
- <macro name="event">
337
- <group>
338
- <text term="presented at" suffix=" "/>
339
- <text variable="event"/>
340
- </group>
341
- </macro>
342
- <macro name="description">
343
- <choose>
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"/>
357
- <else>
358
- <text variable="genre" text-case="capitalize-first" prefix=". "/>
359
- </else>
360
- </choose>
361
- </macro>
362
- <macro name="issue">
363
- <choose>
364
- <if type="article-journal">
365
- <text macro="day-month" prefix=" (" suffix=")"/>
366
- </if>
367
- <else-if type="legal_case">
368
- <text variable="authority" prefix=". "/>
369
- </else-if>
370
- <else-if type="speech">
371
- <group prefix=" " delimiter=", ">
372
- <text macro="event"/>
373
- <text macro="day-month"/>
374
- <text variable="event-place"/>
375
- </group>
376
- </else-if>
377
- <else-if type="article-newspaper article-magazine" match="any">
378
- <text macro="day-month" prefix=", "/>
379
- </else-if>
380
- <else>
381
- <group prefix=". " delimiter=", ">
382
- <choose>
383
- <if type="thesis">
384
- <text variable="genre" text-case="capitalize-first"/>
385
- </if>
386
- </choose>
387
- <text macro="publisher"/>
388
- </group>
389
- </else>
390
- </choose>
391
- </macro>
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="; ">
394
- <group delimiter=", ">
395
- <group delimiter=" ">
396
- <text macro="contributors-short"/>
397
- <text macro="date"/>
398
- </group>
399
- <text macro="point-locators"/>
400
- </group>
401
- </layout>
402
- </citation>
403
- <bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" subsequent-author-substitute="———" entry-spacing="0">
404
- <sort>
405
- <key macro="contributors"/>
406
- <key variable="issued"/>
407
- </sort>
408
- <layout suffix=".">
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=". "/>
423
- </layout>
424
- </bibliography>
425
- </style>
@@ -1,472 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
3
- <info>
4
- <title>Chicago Manual of Style (dated note, no Ibid.)</title>
5
- <id>http://www.zotero.org/styles/chicago-dated-note-biblio-no-ibid</id>
6
- <link href="http://www.zotero.org/styles/chicago-dated-note-biblio-no-ibid" rel="self"/>
7
- <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
8
- <author>
9
- <name>Julian Onions</name>
10
- <email>julian.onions@gmail.com</email>
11
- </author>
12
- <contributor>
13
- <name>Simon Kornblith</name>
14
- <email>simon@simonster.com</email>
15
- </contributor>
16
- <contributor>
17
- <name>Elena Razlogova</name>
18
- <email>elena.razlogova@gmail.com</email>
19
- </contributor>
20
- <contributor>
21
- <name>Turkeyphant</name>
22
- <email>turkeyphant+zotero@gmail.com</email>
23
- </contributor>
24
- <summary>Chicago format with short notes and full bibliography</summary>
25
- <category field="generic-base"/>
26
- <category citation-format="numeric"/>
27
- <updated>2012-01-01T00:00:00+00:00</updated>
28
- <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
29
- </info>
30
- <macro name="secondary-contributors">
31
- <choose>
32
- <if type="chapter paper-conference" match="none">
33
- <group delimiter=". ">
34
- <choose>
35
- <if variable="author">
36
- <names variable="editor" delimiter=". ">
37
- <label form="verb" text-case="capitalize-first" suffix=" "/>
38
- <name and="text" delimiter=", "/>
39
- </names>
40
- </if>
41
- </choose>
42
- <choose>
43
- <if variable="author editor" match="any">
44
- <names variable="translator" delimiter=". ">
45
- <label form="verb" text-case="capitalize-first" suffix=" "/>
46
- <name and="text" delimiter=", "/>
47
- </names>
48
- </if>
49
- </choose>
50
- </group>
51
- </if>
52
- </choose>
53
- </macro>
54
- <macro name="container-contributors">
55
- <choose>
56
- <if type="chapter paper-conference" match="any">
57
- <group delimiter=", ">
58
- <choose>
59
- <if variable="author">
60
- <names variable="editor" delimiter=", ">
61
- <label form="verb" text-case="lowercase" suffix=" "/>
62
- <name and="text" delimiter=", "/>
63
- </names>
64
- </if>
65
- </choose>
66
- <choose>
67
- <if variable="author editor" match="any">
68
- <names variable="translator" delimiter=", ">
69
- <label form="verb" text-case="lowercase" suffix=" "/>
70
- <name and="text" delimiter=", "/>
71
- </names>
72
- </if>
73
- </choose>
74
- </group>
75
- </if>
76
- </choose>
77
- </macro>
78
- <macro name="editor">
79
- <names variable="editor">
80
- <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
81
- <label form="short" prefix=", " suffix="." strip-periods="true"/>
82
- </names>
83
- </macro>
84
- <macro name="translator">
85
- <names variable="translator">
86
- <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
87
- <label form="verb-short" prefix=", " suffix="." strip-periods="true"/>
88
- </names>
89
- </macro>
90
- <macro name="recipient-note">
91
- <names variable="recipient" delimiter=", ">
92
- <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
93
- <name and="text" delimiter=", "/>
94
- </names>
95
- </macro>
96
- <macro name="recipient">
97
- <choose>
98
- <if type="personal_communication">
99
- <choose>
100
- <if variable="genre">
101
- <text variable="genre" text-case="capitalize-first"/>
102
- </if>
103
- <else>
104
- <text term="letter" text-case="capitalize-first"/>
105
- </else>
106
- </choose>
107
- </if>
108
- </choose>
109
- <text macro="recipient-note" prefix=" "/>
110
- </macro>
111
- <macro name="contributors">
112
- <names variable="author">
113
- <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
114
- <substitute>
115
- <text macro="editor"/>
116
- <text macro="translator"/>
117
- </substitute>
118
- </names>
119
- <text macro="recipient" prefix=". "/>
120
- </macro>
121
- <macro name="recipient-short">
122
- <names variable="recipient">
123
- <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
124
- <name form="short" and="text" delimiter=", "/>
125
- </names>
126
- </macro>
127
- <macro name="contributors-short">
128
- <names variable="author">
129
- <name form="short" and="text" delimiter=", "/>
130
- <substitute>
131
- <names variable="editor"/>
132
- <names variable="translator"/>
133
- </substitute>
134
- </names>
135
- <text macro="recipient-short"/>
136
- </macro>
137
- <macro name="contributors-sort">
138
- <names variable="author">
139
- <name name-as-sort-order="all" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
140
- <label form="verb-short" prefix=", " suffix="." strip-periods="true"/>
141
- <substitute>
142
- <names variable="editor"/>
143
- <names variable="translator"/>
144
- </substitute>
145
- </names>
146
- </macro>
147
- <macro name="interviewer">
148
- <names variable="interviewer" delimiter=", ">
149
- <label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/>
150
- <name and="text" delimiter=", "/>
151
- </names>
152
- </macro>
153
- <macro name="title">
154
- <choose>
155
- <if variable="title" match="none">
156
- <choose>
157
- <if type="personal_communication" match="none">
158
- <text variable="genre" text-case="capitalize-first"/>
159
- </if>
160
- </choose>
161
- </if>
162
- <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
163
- <text variable="title" text-case="title" font-style="italic"/>
164
- </else-if>
165
- <else>
166
- <text variable="title" text-case="title" quotes="true"/>
167
- </else>
168
- </choose>
169
- </macro>
170
- <macro name="title-short">
171
- <choose>
172
- <if variable="title" match="none">
173
- <choose>
174
- <if type="interview">
175
- <text term="interview" text-case="lowercase"/>
176
- </if>
177
- <else-if type="manuscript speech" match="any">
178
- <text variable="genre" form="short"/>
179
- </else-if>
180
- <else-if type="personal_communication">
181
- <text macro="issued"/>
182
- </else-if>
183
- </choose>
184
- </if>
185
- <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
186
- <text variable="title" text-case="title" form="short" font-style="italic"/>
187
- </else-if>
188
- <else>
189
- <text variable="title" text-case="title" form="short" quotes="true"/>
190
- </else>
191
- </choose>
192
- </macro>
193
- <macro name="description">
194
- <group delimiter=", ">
195
- <group delimiter=". ">
196
- <text macro="interviewer"/>
197
- <text variable="medium" text-case="capitalize-first"/>
198
- </group>
199
- <choose>
200
- <if variable="title" match="none"/>
201
- <else-if type="thesis speech" match="any"/>
202
- <else>
203
- <text variable="genre" text-case="capitalize-first"/>
204
- </else>
205
- </choose>
206
- </group>
207
- </macro>
208
- <macro name="container-title">
209
- <choose>
210
- <if type="chapter paper-conference" match="any">
211
- <text term="in" text-case="capitalize-first" suffix=" "/>
212
- </if>
213
- </choose>
214
- <choose>
215
- <if type="legal_case" match="none">
216
- <text variable="container-title" text-case="title" font-style="italic"/>
217
- </if>
218
- </choose>
219
- </macro>
220
- <macro name="edition">
221
- <choose>
222
- <if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
223
- <choose>
224
- <if is-numeric="edition">
225
- <group delimiter=" ">
226
- <number variable="edition" form="ordinal"/>
227
- <text term="edition" form="short" suffix="." strip-periods="true"/>
228
- </group>
229
- </if>
230
- <else>
231
- <text variable="edition" text-case="capitalize-first" suffix="."/>
232
- </else>
233
- </choose>
234
- </if>
235
- </choose>
236
- </macro>
237
- <macro name="collection-title">
238
- <text variable="collection-title" text-case="title"/>
239
- <text variable="collection-number" prefix=" "/>
240
- </macro>
241
- <macro name="locators">
242
- <choose>
243
- <if type="article-journal">
244
- <text variable="volume" prefix=" " font-weight="bold"/>
245
- <text variable="issue" prefix=" (" suffix=")"/>
246
- </if>
247
- <else-if type="legal_case">
248
- <text variable="volume" prefix=", "/>
249
- <text variable="container-title" prefix=" "/>
250
- <text variable="page" prefix=" "/>
251
- </else-if>
252
- <else-if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
253
- <group prefix=". " delimiter=". ">
254
- <group>
255
- <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
256
- <number variable="volume" form="numeric"/>
257
- </group>
258
- <group>
259
- <number variable="number-of-volumes" form="numeric"/>
260
- <text term="volume" form="short" prefix=" " suffix="." plural="true" strip-periods="true"/>
261
- </group>
262
- <text macro="edition"/>
263
- </group>
264
- </else-if>
265
- </choose>
266
- </macro>
267
- <macro name="locators-newspaper">
268
- <choose>
269
- <if type="article-newspaper">
270
- <group delimiter=", ">
271
- <group>
272
- <text variable="edition" suffix=" "/>
273
- <text term="edition" prefix=" "/>
274
- </group>
275
- <group>
276
- <text term="section" form="short" suffix=". " strip-periods="true"/>
277
- <text variable="section"/>
278
- </group>
279
- </group>
280
- </if>
281
- </choose>
282
- </macro>
283
- <macro name="event">
284
- <group>
285
- <text term="presented at" suffix=" "/>
286
- <text variable="event"/>
287
- </group>
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="issued">
296
- <choose>
297
- <if type="graphic report" match="any">
298
- <date variable="issued">
299
- <date-part name="month" suffix=" "/>
300
- <date-part name="day" suffix=", "/>
301
- <date-part name="year"/>
302
- </date>
303
- </if>
304
- <else-if type="legal_case">
305
- <text variable="authority" suffix=" "/>
306
- <date variable="issued">
307
- <date-part name="year"/>
308
- </date>
309
- </else-if>
310
- <else-if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song thesis" match="any">
311
- <date variable="issued">
312
- <date-part name="year"/>
313
- </date>
314
- </else-if>
315
- <else>
316
- <date variable="issued">
317
- <date-part name="month" suffix=" "/>
318
- <date-part name="day" suffix=", "/>
319
- <date-part name="year"/>
320
- </date>
321
- </else>
322
- </choose>
323
- </macro>
324
- <macro name="pages-chapter">
325
- <choose>
326
- <if type="chapter paper-conference" match="any">
327
- <text variable="volume" suffix=":"/>
328
- <text variable="page"/>
329
- </if>
330
- </choose>
331
- </macro>
332
- <macro name="pages-article">
333
- <choose>
334
- <if type="article-journal">
335
- <text variable="page" prefix=": "/>
336
- </if>
337
- </choose>
338
- </macro>
339
- <macro name="point-locators-subsequent">
340
- <choose>
341
- <if variable="locator">
342
- <choose>
343
- <if locator="page" match="none">
344
- <choose>
345
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
346
- <group suffix=", ">
347
- <text term="volume" form="short" text-case="lowercase" suffix=". " strip-periods="true"/>
348
- <number variable="volume" form="numeric"/>
349
- </group>
350
- </if>
351
- </choose>
352
- <label variable="locator" form="short" suffix=" "/>
353
- </if>
354
- <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
355
- <number variable="volume" form="numeric" suffix=":"/>
356
- </else-if>
357
- </choose>
358
- <text variable="locator"/>
359
- </if>
360
- </choose>
361
- </macro>
362
- <macro name="archive">
363
- <group delimiter=". ">
364
- <text variable="archive_location" text-case="capitalize-first"/>
365
- <text variable="archive"/>
366
- <text variable="archive-place"/>
367
- </group>
368
- </macro>
369
- <macro name="issue">
370
- <choose>
371
- <if type="article-journal legal_case" match="any">
372
- <text macro="issued" prefix=" (" suffix=")"/>
373
- </if>
374
- <else-if type="speech">
375
- <choose>
376
- <if variable="title" match="none"/>
377
- <else>
378
- <text variable="genre" text-case="capitalize-first" prefix=". "/>
379
- </else>
380
- </choose>
381
- <text macro="event" prefix=" "/>
382
- <text variable="event-place" prefix=", "/>
383
- <text macro="issued" prefix=", "/>
384
- </else-if>
385
- <else-if variable="publisher-place publisher" match="any">
386
- <group prefix=". " delimiter=", ">
387
- <choose>
388
- <if type="thesis">
389
- <text variable="genre" text-case="capitalize-first"/>
390
- </if>
391
- </choose>
392
- <text macro="publisher"/>
393
- <text macro="issued"/>
394
- </group>
395
- </else-if>
396
- <else>
397
- <text macro="issued" prefix=", "/>
398
- </else>
399
- </choose>
400
- </macro>
401
- <macro name="access">
402
- <group delimiter=". ">
403
- <choose>
404
- <if type="graphic report" match="any">
405
- <text macro="archive"/>
406
- </if>
407
- <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">
408
- <text macro="archive"/>
409
- </else-if>
410
- </choose>
411
- <choose>
412
- <if type="legal_case" match="none">
413
- <text variable="URL" text-decoration="underline" prefix=". &lt;" suffix="&gt;"/>
414
- </if>
415
- </choose>
416
- </group>
417
- </macro>
418
- <macro name="sort-key">
419
- <text macro="contributors-sort" suffix=" "/>
420
- <text variable="title" suffix=" "/>
421
- <text variable="genre"/>
422
- </macro>
423
- <citation et-al-min="4" et-al-use-first="1" et-al-subsequent-min="4" et-al-subsequent-use-first="1" disambiguate-add-names="true" disambiguate-add-year-suffix="true">
424
- <layout prefix="" suffix="." delimiter="; ">
425
- <choose>
426
- <if position="subsequent">
427
- <group delimiter="">
428
- <text macro="contributors-short"/>
429
- <date variable="issued" prefix=" ">
430
- <date-part name="year"/>
431
- </date>
432
- <text macro="point-locators-subsequent" prefix=": "/>
433
- </group>
434
- </if>
435
- <else>
436
- <group delimiter="">
437
- <text macro="contributors-short"/>
438
- <date variable="issued" prefix=" ">
439
- <date-part name="year"/>
440
- </date>
441
- <text macro="point-locators-subsequent" prefix=": "/>
442
- </group>
443
- </else>
444
- </choose>
445
- </layout>
446
- </citation>
447
- <bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" entry-spacing="0">
448
- <sort>
449
- <key macro="sort-key"/>
450
- <key variable="issued"/>
451
- </sort>
452
- <layout suffix=".">
453
- <group delimiter=". ">
454
- <text macro="contributors"/>
455
- <text macro="title"/>
456
- <text macro="description"/>
457
- <text macro="secondary-contributors"/>
458
- <group delimiter=", ">
459
- <text macro="container-title"/>
460
- <text macro="container-contributors"/>
461
- <text macro="pages-chapter"/>
462
- </group>
463
- </group>
464
- <text macro="locators"/>
465
- <text macro="collection-title" prefix=". "/>
466
- <text macro="issue"/>
467
- <text macro="locators-newspaper" prefix=", "/>
468
- <text macro="pages-article"/>
469
- <text macro="access"/>
470
- </layout>
471
- </bibliography>
472
- </style>