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,338 +0,0 @@
1
- <style
2
- xmlns="http://purl.org/net/xbiblio/csl"
3
- class="note"
4
- xml:lang="en">
5
- <info>
6
- <title>Modern Humanities Research Association (Note without Bibliography)</title>
7
- <id>http://www.zotero.org/styles/mhra_note_without_bibliography</id>
8
- <link href="http://www.zotero.org/styles/mhra_note_without_bibliography" />
9
- <link href="http://www.mhra.org.uk/Publications/Books/StyleGuide/download.shtml" rel="documentation" />
10
- <author>
11
- <name>Rintze Zelle</name>
12
- <uri>http://forums.zotero.org/account/831/</uri>
13
- </author>
14
- <summary>MHRA format with full notes and no bibliography</summary>
15
- <category term="generic-base" />
16
- <category term="note" />
17
- <updated>2008-05-13T12:42:52+00:00</updated>
18
- </info>
19
- <terms>
20
- <locale xml:lang="en">
21
- <term name="et-al">and others</term>
22
- <term form="verb-short" name="editor">ed. by</term>
23
- <term form="short" name="edition">edn</term>
24
- <term form="verb-short" name="translator">trans. by</term>
25
- </locale>
26
- </terms>
27
- <macro name="contributors-note">
28
- <names variable="author">
29
- <name and="text" delimiter=", " delimiter-precedes-last="never" sort-separator=", " />
30
- </names>
31
- <text macro="recipient-note" />
32
- </macro>
33
- <macro name="title-note">
34
- <choose>
35
- <if type="book">
36
- <text font-style="italic" variable="title" />
37
- </if>
38
- <else>
39
- <text prefix="&#8216;" suffix="&#8217;" variable="title" />
40
- </else>
41
- </choose>
42
- </macro>
43
- <macro name="editor-translator">
44
- <group delimiter=", ">
45
- <names delimiter=", " variable="editor">
46
- <label form="verb-short" suffix=" " text-case="lowercase" />
47
- <name and="text" delimiter=", " delimiter-precedes-last="never" />
48
- </names>
49
- <choose>
50
- <if match="any" variable="author editor">
51
- <names delimiter=", " variable="translator">
52
- <label form="verb-short" suffix=" " text-case="lowercase" />
53
- <name and="text" delimiter=", " delimiter-precedes-last="never" />
54
- </names>
55
- </if>
56
- </choose>
57
- </group>
58
- </macro>
59
- <macro name="collection-title">
60
- <text variable="collection-title" />
61
- <text prefix=", " variable="collection-number" />
62
- </macro>
63
- <macro name="locators-note">
64
- <choose>
65
- <if type="article-journal">
66
- <text variable="volume" />
67
- </if>
68
- <else-if match="any" type="book chapter">
69
- <group delimiter=", ">
70
- <text macro="edition-note" />
71
- <choose>
72
- <if match="none" variable="locator">
73
- <group>
74
- <number form="numeric" variable="number-of-volumes" />
75
- <text form="short" plural="true" prefix=" " term="volume" />
76
- </group>
77
- </if>
78
- </choose>
79
- </group>
80
- </else-if>
81
- </choose>
82
- </macro>
83
- <macro name="issue-note">
84
- <choose>
85
- <if type="article-journal">
86
- <choose>
87
- <if variable="volume">
88
- <text macro="issued" prefix=" (" suffix=")" />
89
- </if>
90
- <else>
91
- <text macro="issued" prefix=", " />
92
- </else>
93
- </choose>
94
- </if>
95
- <else-if match="any" variable="publisher-place publisher">
96
- <group delimiter=", " prefix=" (" suffix=")">
97
- <group delimiter=" ">
98
- <choose>
99
- <if match="none" variable="title"> </if>
100
- <else-if match="any" type="thesis speech">
101
- <text prefix="unpublished " variable="genre" />
102
- </else-if>
103
- </choose>
104
- <text macro="event" />
105
- </group>
106
- <text macro="publisher" />
107
- <text macro="issued" />
108
- </group>
109
- </else-if>
110
- <else>
111
- <text macro="issued" prefix=", " />
112
- </else>
113
- </choose>
114
- </macro>
115
- <macro name="locators-specific-note">
116
- <choose>
117
- <if match="any" type="book chapter">
118
- <choose>
119
- <if is-numeric="volume">
120
- <number font-variant="small-caps" form="roman" variable="volume" />
121
- </if>
122
- </choose>
123
- </if>
124
- </choose>
125
- </macro>
126
- <macro name="container-title-note">
127
- <choose>
128
- <if type="chapter">
129
- <text suffix=" " term="in" text-case="lowercase" />
130
- </if>
131
- </choose>
132
- <text font-style="italic" variable="container-title" />
133
- </macro>
134
- <macro name="edition-note">
135
- <choose>
136
- <if match="any" type="book chapter">
137
- <choose>
138
- <if is-numeric="edition">
139
- <group delimiter=" ">
140
- <number form="ordinal" variable="edition" />
141
- <text form="short" term="edition" />
142
- </group>
143
- </if>
144
- <else>
145
- <text variable="edition" />
146
- </else>
147
- </choose>
148
- </if>
149
- </choose>
150
- </macro>
151
- <macro name="editor-note">
152
- <names variable="editor">
153
- <name and="text" delimiter=", " sort-separator=", " />
154
- <label form="short" prefix=", " suffix="." />
155
- </names>
156
- </macro>
157
- <macro name="translator-note">
158
- <names variable="translator">
159
- <name and="text" delimiter=", " sort-separator=", " />
160
- <label form="verb-short" prefix=", " suffix="." />
161
- </names>
162
- </macro>
163
- <macro name="recipient-note">
164
- <names delimiter=", " variable="recipient">
165
- <label form="verb" prefix=" " suffix=" " text-case="lowercase" />
166
- <name and="text" delimiter=", " />
167
- </names>
168
- </macro>
169
- <macro name="recipient-short">
170
- <names variable="recipient">
171
- <label form="verb" prefix=" " suffix=" " text-case="lowercase" />
172
- <name and="text" delimiter=", " form="short" />
173
- </names>
174
- </macro>
175
- <macro name="contributors-short">
176
- <names variable="author">
177
- <name and="text" delimiter=", " delimiter-precedes-last="never" form="short" sort-separator=", " />
178
- <substitute>
179
- <names variable="editor" />
180
- <names variable="translator" />
181
- </substitute>
182
- </names>
183
- <text macro="recipient-short" />
184
- </macro>
185
- <macro name="interviewer-note">
186
- <names delimiter=", " variable="interviewer">
187
- <label form="verb" prefix=" " suffix=" " text-case="lowercase" />
188
- <name and="text" delimiter=", " />
189
- </names>
190
- </macro>
191
- <macro name="locators-newspaper">
192
- <choose>
193
- <if type="article-newspaper">
194
- <group delimiter=", ">
195
- <group>
196
- <text suffix=" " variable="edition" />
197
- <text prefix=" " term="edition" />
198
- </group>
199
- <group>
200
- <text suffix=" " term="section" />
201
- <text variable="section" />
202
- </group>
203
- </group>
204
- </if>
205
- </choose>
206
- </macro>
207
- <macro name="event">
208
- <group>
209
- <text suffix=" " term="presented at" />
210
- <text variable="event" />
211
- </group>
212
- </macro>
213
- <macro name="publisher">
214
- <group delimiter=": ">
215
- <text variable="publisher-place" />
216
- <text variable="publisher" />
217
- </group>
218
- </macro>
219
- <macro name="issued">
220
- <choose>
221
- <if match="any" type="graphic report article-newspaper">
222
- <date variable="issued">
223
- <date-part name="day" suffix=" " />
224
- <date-part name="month" suffix=" " />
225
- <date-part name="year" />
226
- </date>
227
- </if>
228
- <else-if match="any" type="book chapter thesis">
229
- <date variable="issued">
230
- <date-part name="year" />
231
- </date>
232
- </else-if>
233
- <else>
234
- <date variable="issued">
235
- <date-part name="year" />
236
- </date>
237
- </else>
238
- </choose>
239
- </macro>
240
- <macro name="pages">
241
- <choose>
242
- <if type="article-journal">
243
- <text prefix=", " variable="page" />
244
- </if>
245
- <else-if match="any" type="chapter book article-newspaper thesis">
246
- <label form="short" prefix=", " strip-periods="false" suffix=" " variable="page" />
247
- <text variable="page" />
248
- </else-if>
249
- </choose>
250
- </macro>
251
- <macro name="point-locators">
252
- <choose>
253
- <if match="none" variable="locator">
254
- <text macro="pages" />
255
- </if>
256
- <else-if type="article-journal">
257
- <text prefix=": " variable="locator" />
258
- </else-if>
259
- <else>
260
- <group prefix=", ">
261
- <choose>
262
- <if locator="page" match="none">
263
- <label form="short" strip-periods="false" suffix=" " variable="locator" />
264
- </if>
265
- </choose>
266
- <text variable="locator" />
267
- </group>
268
- </else>
269
- </choose>
270
- </macro>
271
- <macro name="archive-note">
272
- <group delimiter=", ">
273
- <text variable="archive_location" />
274
- <text variable="archive" />
275
- <text variable="archive-place" />
276
- </group>
277
- </macro>
278
- <macro name="access-note">
279
- <group delimiter=", ">
280
- <choose>
281
- <if match="any" type="graphic report">
282
- <text macro="archive-note" prefix=", " />
283
- </if>
284
- <else-if match="none" type="book thesis chapter article-journal article-newspaper article-magazine">
285
- <text macro="archive-note" prefix=", " />
286
- </else-if>
287
- </choose>
288
- </group>
289
- <choose>
290
- <if variable="DOI">
291
- <text prefix=" &lt;doi:" suffix="&gt;" variable="DOI" />
292
- </if>
293
- <else>
294
- <text prefix=" &lt;" suffix="&gt;" variable="URL" />
295
- <group prefix=" [" suffix="]">
296
- <text term="accessed" text-case="lowercase" />
297
- <date variable="accessed">
298
- <date-part name="day" prefix=" " />
299
- <date-part name="month" prefix=" " />
300
- <date-part name="year" prefix=" " />
301
- </date>
302
- </group>
303
- </else>
304
- </choose>
305
- </macro>
306
- <citation
307
- disambiguate-add-givenname="true"
308
- disambiguate-add-names="true"
309
- et-al-min="4"
310
- et-al-subsequent-min="4"
311
- et-al-subsequent-use-first="1"
312
- et-al-use-first="1">
313
- <layout delimiter="; " prefix="" suffix=".">
314
- <choose>
315
- <if position="subsequent">
316
- <text macro="contributors-short" />
317
- <text macro="locators-specific-note" prefix=", " />
318
- <text macro="point-locators" />
319
- </if>
320
- <else>
321
- <group delimiter=", ">
322
- <text macro="contributors-note" />
323
- <text macro="title-note" />
324
- <text macro="container-title-note" />
325
- <text macro="editor-translator" />
326
- <text macro="collection-title" />
327
- <text macro="locators-note" />
328
- </group>
329
- <text macro="issue-note" />
330
- <text macro="locators-specific-note" prefix=", " />
331
- <text macro="locators-newspaper" prefix=", " />
332
- <text macro="point-locators" />
333
- <text macro="access-note" />
334
- </else>
335
- </choose>
336
- </layout>
337
- </citation>
338
- </style>
@@ -1,81 +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>Nature Journal</title>
5
- <id>http://www.zotero.org/styles/nature</id>
6
- <link href="http://www.zotero.org/styles/nature" rel="self"/>
7
- <author>
8
- <name>Michael Berkowitz</name>
9
- <email>mberkowi@gmu.edu</email>
10
- </author>
11
- <category field="biology"/>
12
- <category field="generic-base"/>
13
- <category citation-format="numeric"/>
14
- <updated>2008-04-01T17:46:55+00:00</updated>
15
- </info>
16
- <macro name="title">
17
- <choose>
18
- <if type="bill book graphic legal_case motion_picture report song" match="any">
19
- <text variable="title" font-style="italic"/>
20
- </if>
21
- <else>
22
- <text variable="title"/>
23
- </else>
24
- </choose>
25
- </macro>
26
- <macro name="author">
27
- <names variable="author">
28
- <name sort-separator=", " delimiter=", " and="symbol" initialize-with="." delimiter-precedes-last="never" name-as-sort-order="all"/>
29
- </names>
30
- </macro>
31
- <macro name="access">
32
- <choose>
33
- <if variable="volume"/>
34
- <else-if variable="DOI">
35
- <text variable="DOI" prefix="doi:"/>
36
- </else-if>
37
- <else-if variable="URL">
38
- <text term="at" suffix=" "/>
39
- <text variable="URL" prefix="&lt;" suffix="&gt;"/>
40
- </else-if>
41
- </choose>
42
- </macro>
43
- <macro name="issuance">
44
- <choose>
45
- <if type="bill book graphic legal_case motion_picture report song" match="any">
46
- <group prefix="(" suffix=").">
47
- <text variable="publisher" suffix=": "/>
48
- <text variable="publisher-place" suffix=", "/>
49
- <date variable="issued">
50
- <date-part name="year"/>
51
- </date>
52
- </group>
53
- </if>
54
- <else>
55
- <date prefix="(" suffix=")." variable="issued">
56
- <date-part name="year"/>
57
- </date>
58
- </else>
59
- </choose>
60
- </macro>
61
- <citation collapse="citation-number">
62
- <sort>
63
- <key variable="citation-number"/>
64
- </sort>
65
- <layout vertical-align="sup" delimiter=",">
66
- <text variable="citation-number"/>
67
- </layout>
68
- </citation>
69
- <bibliography et-al-min="4" et-al-use-first="1" second-field-align="flush" entry-spacing="0">
70
- <layout>
71
- <text variable="citation-number" suffix="."/>
72
- <text macro="author"/>
73
- <text macro="title" prefix=" " suffix=". "/>
74
- <text variable="container-title" font-style="italic" suffix=" " form="short"/>
75
- <text variable="volume" suffix=", " font-weight="bold"/>
76
- <text variable="page"/>
77
- <text macro="issuance"/>
78
- <text macro="access"/>
79
- </layout>
80
- </bibliography>
81
- </style>
@@ -1,88 +0,0 @@
1
- <style
2
- xmlns="http://purl.org/net/xbiblio/csl"
3
- class="in-text"
4
- xml:lang="en">
5
- <info>
6
- <title>Nature Journal</title>
7
- <id>http://www.zotero.org/styles/nature</id>
8
- <link href="http://www.zotero.org/styles/nature" />
9
- <author>
10
- <name>Michael Berkowitz</name>
11
- <email>mberkowi@gmu.edu</email>
12
- </author>
13
- <category term="biology" />
14
- <category term="generic-base" />
15
- <category term="numeric" />
16
- <updated />
17
- </info>
18
- <macro name="title">
19
- <choose>
20
- <if type="book">
21
- <text font-style="italic" variable="title" />
22
- </if>
23
- <else>
24
- <text variable="title" />
25
- </else>
26
- </choose>
27
- </macro>
28
- <macro name="author">
29
- <names variable="author">
30
- <name and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all" sort-separator=", " />
31
- </names>
32
- </macro>
33
- <macro name="access">
34
- <choose>
35
- <if variable="volume" />
36
- <else-if variable="DOI">
37
- <text prefix="doi:" variable="DOI" />
38
- </else-if>
39
- <else-if variable="URL">
40
- <text term="at" />
41
- <text prefix=" &lt;" suffix="&gt;" variable="URL" />
42
- </else-if>
43
- </choose>
44
- </macro>
45
- <macro name="issuance">
46
- <choose>
47
- <if type="book">
48
- <group prefix="(" suffix=").">
49
- <text suffix=": " variable="publisher" />
50
- <text suffix=", " variable="publisher-place" />
51
- <date variable="issued">
52
- <date-part name="year" />
53
- </date>
54
- </group>
55
- </if>
56
- <else>
57
- <date prefix="(" suffix=")." variable="issued">
58
- <date-part name="year" />
59
- </date>
60
- </else>
61
- </choose>
62
- </macro>
63
- <citation
64
- collapse="citation-number">
65
- <sort>
66
- <key variable="citation-number" />
67
- </sort>
68
- <layout delimiter="," vertical-align="sup">
69
- <text variable="citation-number" />
70
- </layout>
71
- </citation>
72
- <bibliography
73
- entry-spacing="0"
74
- et-al-min="4"
75
- et-al-use-first="1"
76
- second-field-align="true">
77
- <layout>
78
- <text suffix="." variable="citation-number" />
79
- <text macro="author" />
80
- <text macro="title" prefix=" " suffix=". " />
81
- <text font-style="italic" form="short" suffix=" " variable="container-title" />
82
- <text font-weight="bold" suffix=", " variable="volume" />
83
- <text variable="page" />
84
- <text macro="issuance" />
85
- <text macro="access" />
86
- </layout>
87
- </bibliography>
88
- </style>