citeproc-ruby 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
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,472 @@
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>