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
@@ -1,131 +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">
3
- <info>
4
- <title>American Society for Microbiology</title>
5
- <id>http://www.zotero.org/styles/asm-journals</id>
6
- <link href="http://www.zotero.org/styles/asm-journals" rel="self"/>
7
- <author>
8
- <name>Julian Onions</name>
9
- <email>julian.onions@gmail.com</email>
10
- </author>
11
- <contributor>
12
- <name>Rintze Zelle</name>
13
- <uri>http://forums.zotero.org/account/831/</uri>
14
- </contributor>
15
- <contributor>
16
- <name>Richard Karnesky</name>
17
- <email>karnesky+zotero@gmail.com</email>
18
- <uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
19
- </contributor>
20
- <category citation-format="numeric"/>
21
- <category field="biology"/>
22
- <updated>2008-05-07T12:08:52+00:00</updated>
23
- <summary>Style for all American Society for Microbiology journals.</summary>
24
- <link href="http://aem.asm.org/cgi/content/full/74/1/1#References." rel="documentation"/>
25
- <rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
26
- </info>
27
- <macro name="author">
28
- <names variable="author" suffix=".">
29
- <name sort-separator=" " initialize-with=". " and="text" font-weight="bold" name-as-sort-order="first" delimiter=", " delimiter-precedes-last="always"/>
30
- </names>
31
- </macro>
32
- <macro name="issued">
33
- <group prefix=" " suffix=".">
34
- <choose>
35
- <if type="patent">
36
- <date variable="issued">
37
- <date-part name="month" suffix=" "/>
38
- <date-part name="year"/>
39
- </date>
40
- </if>
41
- <else>
42
- <date variable="issued">
43
- <date-part name="year"/>
44
- </date>
45
- </else>
46
- </choose>
47
- </group>
48
- </macro>
49
- <macro name="chapter-specifics">
50
- <choose>
51
- <if type="chapter paper-conference" match="any">
52
- <label variable="page" form="short" plural="never" prefix=", " suffix=" "/>
53
- <text variable="page"/>
54
- <text term="in" text-case="capitalize-first" prefix=". " suffix=" " font-style="italic"/>
55
- <names variable="editor" delimiter=", " suffix=", ">
56
- <name initialize-with="." delimiter=", " delimiter-precedes-last="always" and="text"/>
57
- <label form="short" prefix=" (" suffix=".)" strip-periods="true"/>
58
- </names>
59
- </if>
60
- </choose>
61
- </macro>
62
- <macro name="patent-specifics">
63
- <text variable="number" prefix=". U.S. Patent "/>
64
- </macro>
65
- <macro name="container-title">
66
- <choose>
67
- <if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
68
- <text variable="container-title"/>
69
- </if>
70
- <else>
71
- <text variable="container-title" form="short" prefix=". "/>
72
- </else>
73
- </choose>
74
- </macro>
75
- <macro name="edition">
76
- <choose>
77
- <if is-numeric="edition">
78
- <group delimiter=" " prefix=", ">
79
- <number variable="edition" form="ordinal"/>
80
- <text term="edition" form="short" suffix="." strip-periods="true"/>
81
- </group>
82
- </if>
83
- <else>
84
- <text variable="edition" suffix="."/>
85
- </else>
86
- </choose>
87
- </macro>
88
- <macro name="publisher">
89
- <group delimiter=", " prefix=". ">
90
- <text variable="genre"/>
91
- <text variable="publisher"/>
92
- <text variable="publisher-place"/>
93
- </group>
94
- </macro>
95
- <macro name="locators">
96
- <choose>
97
- <if type="article-journal">
98
- <group prefix=" " delimiter=":">
99
- <text variable="volume" font-weight="bold"/>
100
- <text variable="page"/>
101
- </group>
102
- </if>
103
- </choose>
104
- </macro>
105
- <citation collapse="citation-number">
106
- <sort>
107
- <key variable="citation-number"/>
108
- </sort>
109
- <layout prefix="(" suffix=")" delimiter=", ">
110
- <text variable="citation-number"/>
111
- </layout>
112
- </citation>
113
- <bibliography entry-spacing="0" second-field-align="flush">
114
- <sort>
115
- <key variable="author"/>
116
- <key variable="title"/>
117
- </sort>
118
- <layout suffix=".">
119
- <text variable="citation-number" suffix=". "/>
120
- <text macro="author"/>
121
- <text macro="issued"/>
122
- <text variable="title" prefix=" "/>
123
- <text macro="chapter-specifics"/>
124
- <text macro="patent-specifics"/>
125
- <text macro="container-title"/>
126
- <text macro="edition"/>
127
- <text macro="publisher"/>
128
- <text macro="locators"/>
129
- </layout>
130
- </bibliography>
131
- </style>
@@ -1,392 +0,0 @@
1
- <style
2
- xmlns="http://purl.org/net/xbiblio/csl"
3
- class="note"
4
- version="1.0"
5
- page-range-format="chicago"
6
- default-locale="en-US-x-sort-alalc97-x-sec-alalc97-x-name-alalc97">
7
- <info>
8
- <title>Bluebook (demo-x)</title>
9
- <id>http://gsl-nagoya-u.net/http/pub/bluebook-demo-x</id>
10
- <link rel="self" href="http://gsl-nagoya-u.net/http/pub/bluebook-demo-x.csl" />
11
- <link href="http://www.legalbluebook.com/" rel="documentation" />
12
- <author>
13
- <name>Frank Bennett</name>
14
- <email>biercenator@gmail.com</email>
15
- </author>
16
- <summary>Bluebook Style for legal materials (CSL 1.0 experimental)</summary>
17
- <category field="generic-base" />
18
- <category citation-format="note" />
19
- <updated>2010-04-24T04:49:00+09:00</updated>
20
- </info>
21
- <locale>
22
- <terms>
23
- <term name="ibid">id.</term>
24
- <term name="rule"></term>
25
- </terms>
26
- </locale>
27
-
28
- <!-- ### BLUEBOOK AUTHOR ### -->
29
- <macro name="bb-author">
30
- <names variable="author">
31
- <name/>
32
- </names>
33
- </macro>
34
- <macro name="bb-author-short">
35
- <names variable="author">
36
- <name form="short"/>
37
- </names>
38
- </macro>
39
-
40
- <!-- ### BLUEBOOK ISSUED ### -->
41
- <macro name="bb-issued">
42
- <group prefix="(" suffix=")">
43
- <date variable="issued" form="text" date-parts="year"/>
44
- </group>
45
- </macro>
46
-
47
- <!-- ### ID BACKREFERENCES ### -->
48
- <macro name="bb-ibid">
49
- <choose>
50
- <if position="ibid-with-locator">
51
- <text term="ibid" font-style="italic"/>
52
- <group delimiter=" ">
53
- <choose>
54
- <if locator="page">
55
- <text value=" at"/>
56
- </if>
57
- <else>
58
- <text value=", "/>
59
- <label form="short" variable="locator"/>
60
- </else>
61
- </choose>
62
- <text variable="locator"/>
63
- </group>
64
- </if>
65
- <else-if position="ibid">
66
- <text term="ibid" font-style="italic"/>
67
- </else-if>
68
- </choose>
69
- </macro>
70
-
71
- <!-- ### POINT LOCATORS -->
72
- <macro name="bb-point-locator-comma">
73
- <group delimiter=" ">
74
- <choose>
75
- <if variable="number page" position="ibid" match="any">
76
- <text value=","/>
77
- </if>
78
- </choose>
79
- <choose>
80
- <if locator="page" match="none">
81
- <label form="symbol" variable="locator" suffix=" "/>
82
- </if>
83
- </choose>
84
- <text variable="locator"/>
85
- </group>
86
- </macro>
87
- <macro name="bb-point-locator-base">
88
- <choose>
89
- <if locator="page" match="none">
90
- <label form="symbol" variable="locator" suffix=" "/>
91
- </if>
92
- </choose>
93
- <text variable="locator"/>
94
- </macro>
95
-
96
- <!-- ### LEGAL CASE ### -->
97
- <macro name="bb-legal-case">
98
- <choose>
99
- <if position="first">
100
- <text macro="bb-legal-case-first"/>
101
- </if>
102
- <else-if position="ibid">
103
- <text macro="bb-ibid"/>
104
- </else-if>
105
- <else-if position="near-note">
106
- <text macro="bb-legal-case-subsequent"/>
107
- </else-if>
108
- <else>
109
- <text macro="bb-legal-case-first"/>
110
- </else>
111
- </choose>
112
- </macro>
113
- <macro name="bb-legal-case-first">
114
- <choose>
115
- <if variable="title">
116
- <!-- Common law cases -->
117
- <group delimiter=", ">
118
- <text variable="title"/>
119
- <group delimiter=" ">
120
- <choose>
121
- <if variable="issue">
122
- <text variable="volume" prefix="[" suffix="]"/>
123
- <text variable="issue"/>
124
- </if>
125
- <else>
126
- <text variable="volume"/>
127
- </else>
128
- </choose>
129
- <text variable="container-title" form="short"/>
130
- <group>
131
- <text variable="page"/>
132
- <text macro="bb-point-locator-comma"/>
133
- </group>
134
- <group prefix="(" suffix=")" delimiter=" ">
135
- <text variable="authority" form="short"/>
136
- <date variable="issued">
137
- <date-part name="year"/>
138
- </date>
139
- </group>
140
- </group>
141
- </group>
142
- </if>
143
- <else>
144
- <!-- Civil law cases -->
145
- <group delimiter=", ">
146
- <text variable="authority"/>
147
- <text variable="title" form="short"/>
148
- <date variable="issued" form="text"/>
149
- <text variable="container-title" font-style="italic" strip-periods="true"/>
150
- <text variable="volume"/>
151
- <group delimiter=" ">
152
- <text variable="section"/>
153
- <label variable="page" form="short"/>
154
- <text variable="page"/>
155
- </group>
156
- <text variable="number"/>
157
- <group delimiter=" ">
158
- <text variable="genre"/>
159
- <names variable="author">
160
- <name initialize-with="." font-variant="small-caps"/>
161
- </names>
162
- </group>
163
- </group>
164
- </else>
165
- </choose>
166
- </macro>
167
- <macro name="bb-legal-case-subsequent">
168
- <group delimiter=", ">
169
- <text variable="title" form="short"/>
170
- <group delimiter=" ">
171
- <choose>
172
- <if variable="issue">
173
- <text variable="volume" prefix="[" suffix="]"/>
174
- <text variable="issue"/>
175
- </if>
176
- <else>
177
- <text variable="volume"/>
178
- </else>
179
- </choose>
180
- <text variable="container-title" form="short"/>
181
- <choose>
182
- <if variable="locator">
183
- <text macro="bb-point-locator-base"/>
184
- </if>
185
- <else>
186
- <text variable="page"/>
187
- </else>
188
- </choose>
189
- </group>
190
- </group>
191
- </macro>
192
-
193
- <!-- ### LEGISLATION ### -->
194
- <macro name="bb-legislation">
195
- <choose>
196
- <if position="first">
197
- <text macro="bb-legislation-first"/>
198
- </if>
199
- <else-if position="near-note">
200
- <text macro="bb-legislation-subsequent"/>
201
- </else-if>
202
- <else>
203
- <text macro="bb-legislation-first"/>
204
- </else>
205
- </choose>
206
- </macro>
207
- <macro name="bb-legislation-first">
208
- <choose>
209
- <if variable="container-title">
210
- <text macro="bb-statute-first"/>
211
- </if>
212
- <else>
213
- <text macro="bb-code-first"/>
214
- </else>
215
- </choose>
216
- </macro>
217
- <macro name="bb-legislation-subsequent">
218
- <choose>
219
- <if variable="container-title">
220
- <text macro="bb-statute-subsequent"/>
221
- </if>
222
- <else>
223
- <text macro="bb-code-subsequent"/>
224
- </else>
225
- </choose>
226
- </macro>
227
- <macro name="bb-statute-first">
228
- <group delimiter=", ">
229
- <text variable="title"/>
230
- <text macro="bb-statute-subsequent"/>
231
- </group>
232
- </macro>
233
- <macro name="bb-statute-subsequent">
234
- <group delimiter="">
235
- <group delimiter=" ">
236
- <text variable="volume"/>
237
- <text variable="container-title"/>
238
- <text variable="number"/>
239
- <text variable="page"/>
240
- <choose>
241
- <if is-numeric="section">
242
- <text term="section" form="symbol"/>
243
- <text variable="section"/>
244
- </if>
245
- </choose>
246
- </group>
247
- <text macro="bb-point-locator-comma"/>
248
- <date prefix=" (" variable="issued" date-parts="year" form="text" suffix=")"/>
249
- </group>
250
- </macro>
251
- <macro name="bb-code-first">
252
- <group delimiter=" ">
253
- <text variable="title" font-variant="small-caps"/>
254
- <group delimiter=" ">
255
- <label variable="locator" form="symbol"/>
256
- <text variable="locator"/>
257
- </group>
258
- </group>
259
- </macro>
260
- <macro name="bb-code-subsequent">
261
- <group delimiter=" ">
262
- <text variable="title" form="short" font-variant="small-caps"/>
263
- <group delimiter=" ">
264
- <label variable="locator" form="symbol"/>
265
- <text variable="locator"/>
266
- </group>
267
- </group>
268
- </macro>
269
-
270
- <!-- ### BOOK ### -->
271
- <macro name="bb-book">
272
- <choose>
273
- <if position="first">
274
- <text macro="bb-book-first"/>
275
- </if>
276
- <else-if position="ibid">
277
- <text macro="bb-ibid"/>
278
- </else-if>
279
- <else-if position="subsequent">
280
- <text macro="bb-book-subsequent"/>
281
- </else-if>
282
- </choose>
283
- </macro>
284
- <macro name="bb-book-first">
285
- <group delimiter=", ">
286
- <text macro="bb-author" font-variant="small-caps"/>
287
- <group delimiter=" ">
288
- <text variable="title" font-variant="small-caps"/>
289
- <group delimiter=" ">
290
- <choose>
291
- <if locator="page" match="none">
292
- <label variable="locator" form="symbol"/>
293
- </if>
294
- </choose>
295
- <text variable="locator"/>
296
- </group>
297
- <text macro="bb-issued"/>
298
- </group>
299
- </group>
300
- <text variable="references" prefix=" [" suffix="]"/>
301
- </macro>
302
- <macro name="bb-book-subsequent">
303
- <group delimiter=", ">
304
- <text macro="bb-author-short" font-variant="small-caps"/>
305
- <choose>
306
- <if disambiguate="true">
307
- <text variable="title" font-variant="small-caps"/>
308
- </if>
309
- </choose>
310
- <group delimiter="">
311
- <group delimiter=" ">
312
- <text value="supra" font-style="italic"/>
313
- <choose>
314
- <if variable="first-reference-note-number">
315
- <text value="note"/>
316
- <text variable="first-reference-note-number"/>
317
- </if>
318
- </choose>
319
- </group>
320
- <group delimiter=" ">
321
- <choose>
322
- <if locator="page">
323
- <text value=","/>
324
- <text value="at"/>
325
- </if>
326
- <else>
327
- <label variable="locator"/>
328
- </else>
329
- </choose>
330
- <text variable="locator"/>
331
- </group>
332
- </group>
333
- </group>
334
- </macro>
335
-
336
- <!-- ### PERIODICAL ### -->
337
- <macro name="bb-periodical">
338
- <choose>
339
- <if position="first">
340
- <text macro="bb-periodical-first"/>
341
- </if>
342
- <else-if position="ibid">
343
- <text term="ibid" font-style="italic"/>
344
- </else-if>
345
- <else-if position="subsequent">
346
- <text macro="bb-periodical-subsequent"/>
347
- </else-if>
348
- </choose>
349
- </macro>
350
- <macro name="bb-periodical-first">
351
- <group delimiter=" ">
352
- <group delimiter=", ">
353
- <names variable="author">
354
- <name/>
355
- </names>
356
- <text variable="title" font-style="italic"/>
357
- <group delimiter=" ">
358
- <text variable="volume"/>
359
- <text variable="container-title" form="short" font-variant="small-caps"/>
360
- <text variable="page-first"/>
361
- </group>
362
- </group>
363
- <text macro="bb-issued"/>
364
- </group>
365
- </macro>
366
- <macro name="bb-periodical-subsequent">
367
- <text value="bb-periodical-subsequent"/>
368
- </macro>
369
- <citation
370
- near-note-distance="5"
371
- et-al-min="2"
372
- et-al-subsequent-min="4"
373
- et-al-subsequent-use-first="2"
374
- et-al-use-first="1">
375
- <layout delimiter="; " suffix=".">
376
- <choose>
377
- <if type="legal_case">
378
- <text macro="bb-legal-case"/>
379
- </if>
380
- <else-if type="legislation">
381
- <text macro="bb-legislation"/>
382
- </else-if>
383
- <else-if type="book" match="any">
384
- <text macro="bb-book"/>
385
- </else-if>
386
- <else>
387
- <text macro="bb-periodical"/>
388
- </else>
389
- </choose>
390
- </layout>
391
- </citation>
392
- </style>