citeproc-ruby 0.0.6 → 1.0.0

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 (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,707 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <style xmlns="http://purl.org/net/xbiblio/csl" default-locale="eu" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
3
- <info>
4
- <title>Chicago Manual of Style (author-date, Basque)</title>
5
- <id>http://www.zotero.org/styles/chicago-author-date-basque</id>
6
- <link href="http://www.zotero.org/styles/chicago-author-date-basque" rel="self"/>
7
- <link href="http://www.zotero.org/styles/chicago-author-date" rel="template"/>
8
- <author>
9
- <name>amaraun</name>
10
- <email>amaraun@gmail.com</email>
11
- </author>
12
- <category citation-format="author-date"/>
13
- <category field="generic-base"/>
14
- <updated>2011-12-23T01:16:03+00:00</updated>
15
- <summary>Modification for Basque language of the Chicago Manual</summary>
16
- <rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
17
- </info>
18
- <locale>
19
- <style-options punctuation-in-quote="false"/>
20
- <date form="text">
21
- <date-part name="year" suffix="(e)ko "/>
22
- <date-part name="month" suffix="aren "/>
23
- <date-part name="day" suffix="a"/>
24
- </date>
25
- <date form="numeric">
26
- <date-part name="year" suffix="/"/>
27
- <date-part name="month" form="numeric-leading-zeros" suffix="/"/>
28
- <date-part name="day" form="numeric-leading-zeros"/>
29
- </date>
30
- <terms>
31
- <term name="accessed">eskuratua</term>
32
- <term name="and">eta</term>
33
- <term name="and others">eta beste</term>
34
- <term name="anonymous">ezezaguna</term>
35
- <term name="anonymous" form="short">ezez.</term>
36
- <term name="at">-(e)n</term>
37
- <term name="by">-(e)k egina</term>
38
- <term name="circa">inguru</term>
39
- <term name="circa" form="short">ing.</term>
40
- <term name="cited">aipatua</term>
41
- <term name="edition">
42
- <single>argitalpena</single>
43
- <multiple>argitalpenak</multiple>
44
- </term>
45
- <term name="edition" form="short">arg.</term>
46
- <term name="et-al">et al.</term>
47
- <term name="forthcoming">bidean</term>
48
- <term name="from">-(e)tik</term>
49
- <term name="ibid">ibíd.</term>
50
- <term name="in">in</term>
51
- <term name="in press">moldiztegian</term>
52
- <term name="internet">internet</term>
53
- <term name="interview">elkarrizketa</term>
54
- <term name="letter">gutuna</term>
55
- <term name="no date">datarik gabe</term>
56
- <term name="no date" form="short">d. g.</term>
57
- <term name="online">sarean</term>
58
- <term name="presented at">-(e)n aurkeztua</term>
59
- <term name="reference">
60
- <single>aipamena</single>
61
- <multiple>aipamenak</multiple>
62
- </term>
63
- <term name="reference" form="short">
64
- <single>aip.</single>
65
- <multiple>aip.</multiple>
66
- </term>
67
- <term name="retrieved">berreskuratua</term>
68
- <!-- ANNO DOMINI; BEFORE CHRIST -->
69
- <term name="ad">K.a.</term>
70
- <term name="bc">K.o.</term>
71
- <!-- QUOTES -->
72
- <!-- Source: http://en.wikipedia.org/wiki/Non-English_usage_of_quotation_marks -->
73
- <term name="open-quote">«</term>
74
- <term name="close-quote">»</term>
75
- <term name="open-inner-quote">“</term>
76
- <term name="close-inner-quote">”</term>
77
- <!-- ORDINALS -->
78
- <term name="ordinal-01">.</term>
79
- <term name="ordinal-02">.</term>
80
- <term name="ordinal-03">.</term>
81
- <term name="ordinal-04">.</term>
82
- <!-- LONG ORDINALS -->
83
- <term name="long-ordinal-01">lehengo</term>
84
- <term name="long-ordinal-02">bigarren</term>
85
- <term name="long-ordinal-03">hirugarren</term>
86
- <term name="long-ordinal-04">laugarren</term>
87
- <term name="long-ordinal-05">bosgarren</term>
88
- <term name="long-ordinal-06">seigarren</term>
89
- <term name="long-ordinal-07">zazpigarren</term>
90
- <term name="long-ordinal-08">zortzigarren</term>
91
- <term name="long-ordinal-09">bederatzigarren</term>
92
- <term name="long-ordinal-10">hamargarren</term>
93
- <!-- CATEGORIES -->
94
- <term name="anthropology">antropologia</term>
95
- <term name="astronomy">astronomia</term>
96
- <term name="biology">biologia</term>
97
- <term name="botany">botanika</term>
98
- <term name="chemistry">kimika</term>
99
- <term name="engineering">ingenieritza</term>
100
- <term name="generic-base">oinarri orokorra</term>
101
- <term name="geography">geografia</term>
102
- <term name="geology">geologia</term>
103
- <term name="history">historia</term>
104
- <term name="humanities">giza-gaiak</term>
105
- <term name="linguistics">hizkuntzalaritza</term>
106
- <term name="literature">literatura</term>
107
- <term name="math">matematika</term>
108
- <term name="medicine">medikuntza</term>
109
- <term name="philosophy">filosofia</term>
110
- <term name="physics">fiska</term>
111
- <term name="psychology">psicologia</term>
112
- <term name="sociology">soziologia</term>
113
- <term name="science">zientziak</term>
114
- <term name="political_science">politika zientziak</term>
115
- <term name="social_science">gizarte zientziak</term>
116
- <term name="theology">teologia</term>
117
- <term name="zoology">zoologia</term>
118
- <!-- LONG LOCATOR FORMS -->
119
- <term name="book">
120
- <single>liburua</single>
121
- <multiple>liburuak</multiple>
122
- </term>
123
- <term name="chapter">
124
- <single>kapitulua</single>
125
- <multiple>kapituluak</multiple>
126
- </term>
127
- <term name="column">
128
- <single>zutabea</single>
129
- <multiple>zutabeak</multiple>
130
- </term>
131
- <term name="figure">
132
- <single>irudia</single>
133
- <multiple>irudiak</multiple>
134
- </term>
135
- <term name="folio">
136
- <single>orria</single>
137
- <multiple>orriak</multiple>
138
- </term>
139
- <term name="issue">
140
- <single>zenbakia</single>
141
- <multiple>zenbakiak</multiple>
142
- </term>
143
- <term name="line">
144
- <single>lerroa</single>
145
- <multiple>lerroak</multiple>
146
- </term>
147
- <term name="note">
148
- <single>oharra</single>
149
- <multiple>oharrak</multiple>
150
- </term>
151
- <term name="opus">
152
- <single>obra</single>
153
- <multiple>obrak</multiple>
154
- </term>
155
- <term name="page">
156
- <single>orrialdea</single>
157
- <multiple>orrialdeak</multiple>
158
- </term>
159
- <term name="paragraph">
160
- <single>paragrafoa</single>
161
- <multiple>paragrafoak</multiple>
162
- </term>
163
- <term name="part">
164
- <single>zatia</single>
165
- <multiple>zatiak</multiple>
166
- </term>
167
- <term name="section">
168
- <single>atala</single>
169
- <multiple>atalak</multiple>
170
- </term>
171
- <term name="sub verbo">
172
- <single>sub voce</single>
173
- <multiple>sub vocem</multiple>
174
- </term>
175
- <term name="verse">
176
- <single>bertsoa</single>
177
- <multiple>bertsoak</multiple>
178
- </term>
179
- <term name="volume">
180
- <single>luburikia</single>
181
- <multiple>luburukiak</multiple>
182
- </term>
183
- <!-- SHORT LOCATOR FORMS -->
184
- <term name="book" form="short">lib.</term>
185
- <term name="chapter" form="short">kap.</term>
186
- <term name="column" form="short">zut.</term>
187
- <term name="figure" form="short">iru.</term>
188
- <term name="folio" form="short">or.</term>
189
- <term name="issue" form="short">zenb.</term>
190
- <term name="opus" form="short">op.</term>
191
- <term name="page" form="short">
192
- <single>or.</single>
193
- <multiple>or.</multiple>
194
- </term>
195
- <term name="paragraph" form="short">par.</term>
196
- <term name="part" form="short">zt.</term>
197
- <term name="section" form="short">atal.</term>
198
- <term name="sub verbo" form="short">
199
- <single>s.v.</single>
200
- <multiple>s.v.</multiple>
201
- </term>
202
- <term name="verse" form="short">
203
- <single>b.</single>
204
- <multiple>bb.</multiple>
205
- </term>
206
- <term name="volume" form="short">
207
- <single>libk.</single>
208
- <multiple>libk.</multiple>
209
- </term>
210
- <!-- SYMBOL LOCATOR FORMS -->
211
- <term name="paragraph" form="symbol">
212
- <single>¶</single>
213
- <multiple>¶¶</multiple>
214
- </term>
215
- <term name="section" form="symbol">
216
- <single>§</single>
217
- <multiple>§</multiple>
218
- </term>
219
- <!-- LONG ROLE FORMS -->
220
- <term name="author">
221
- <single/>
222
- <multiple/>
223
- </term>
224
- <term name="editor">
225
- <single>argitaratzailea</single>
226
- <multiple>argitaratzaileak</multiple>
227
- </term>
228
- <term name="editorial-director">
229
- <single>argitaratzailea</single>
230
- <multiple>argitaratzaileak</multiple>
231
- </term>
232
- <term name="translator">
233
- <single>itzultzailea</single>
234
- <multiple>itzultzaileak</multiple>
235
- </term>
236
- <term name="editortranslator">
237
- <single>argitaratzaile eta itzultzailea</single>
238
- <multiple>argitaratzaile eta itzultzaileak</multiple>
239
- </term>
240
- <!-- SHORT ROLE FORMS -->
241
- <term name="author" form="short">
242
- <single/>
243
- <multiple/>
244
- </term>
245
- <term name="editor" form="short">
246
- <single>arg.</single>
247
- <multiple>arg.</multiple>
248
- </term>
249
- <term name="editorial-director" form="short">
250
- <single>arg.</single>
251
- <multiple>arg.</multiple>
252
- </term>
253
- <term name="translator" form="short">
254
- <single>itzul.</single>
255
- <multiple>itzul.</multiple>
256
- </term>
257
- <term name="editortranslator" form="short">
258
- <single>arg. eta itzul.</single>
259
- <multiple>arg. eta itzul.</multiple>
260
- </term>
261
- <!-- VERB ROLE FORMS -->
262
- <term name="editor" form="verb">-(e)k argitaratua</term>
263
- <term name="editorial-director" form="verb">-(e)k argitaratua</term>
264
- <term name="translator" form="verb">-(e)k itzulia</term>
265
- <term name="editortranslator" form="verb">-(e)k argitaratu eta itzulia</term>
266
- <term name="recipient" form="verb">-(r)entzat</term>
267
- <term name="interviewer" form="verb">-(e)k elkarrizketatua</term>
268
- <!-- SHORT VERB ROLE FORMS -->
269
- <term name="container-author" form="verb-short"/>
270
- <term name="editor" form="verb-short">arg.</term>
271
- <term name="editorial-director" form="verb-short">arg.</term>
272
- <term name="translator" form="verb-short">itzul.</term>
273
- <term name="editortranslator" form="verb-short">-(e)k arg. eta itzul.</term>
274
- <!-- LONG MONTH FORMS -->
275
- <term name="month-01">urtarrilak</term>
276
- <term name="month-02">otsailak</term>
277
- <term name="month-03">martxoak</term>
278
- <term name="month-04">apirilak</term>
279
- <term name="month-05">maiatzak</term>
280
- <term name="month-06">ekainak</term>
281
- <term name="month-07">uztailak</term>
282
- <term name="month-08">abuztuak</term>
283
- <term name="month-09">irailak</term>
284
- <term name="month-10">urriak</term>
285
- <term name="month-11">azaroak</term>
286
- <term name="month-12">abenduak</term>
287
- <!-- SHORT MONTH FORMS -->
288
- <term name="month-01" form="short">urt.</term>
289
- <term name="month-02" form="short">ots.</term>
290
- <term name="month-03" form="short">martx.</term>
291
- <term name="month-04" form="short">apr.</term>
292
- <term name="month-05" form="short">mai.</term>
293
- <term name="month-06" form="short">eka.</term>
294
- <term name="month-07" form="short">uzt.</term>
295
- <term name="month-08" form="short">abz.</term>
296
- <term name="month-09" form="short">ira.</term>
297
- <term name="month-10" form="short">urr.</term>
298
- <term name="month-11" form="short">aza.</term>
299
- <term name="month-12" form="short">abe.</term>
300
- <!-- SEASONS -->
301
- <term name="season-01">udaberria</term>
302
- <term name="season-02">uda</term>
303
- <term name="season-03">udazkena</term>
304
- <term name="season-04">negua</term>
305
- </terms>
306
- </locale>
307
- <macro name="secondary-contributors">
308
- <choose>
309
- <if type="chapter paper-conference" match="none">
310
- <group delimiter=". ">
311
- <choose>
312
- <if variable="author">
313
- <names variable="editor">
314
- <name and="symbol" delimiter="; " name-as-sort-order="all"/>
315
- <label form="verb-short" text-case="capitalize-first" prefix=" (" suffix=".)" strip-periods="true"/>
316
- </names>
317
- </if>
318
- </choose>
319
- <choose>
320
- <if variable="author editor" match="any">
321
- <names variable="translator">
322
- <name and="symbol" delimiter="; " name-as-sort-order="all"/>
323
- <label form="verb-short" text-case="capitalize-first" prefix=" (" suffix=".)" strip-periods="true"/>
324
- </names>
325
- </if>
326
- </choose>
327
- </group>
328
- </if>
329
- </choose>
330
- </macro>
331
- <macro name="container-prefix">
332
- <text term="in"/>
333
- </macro>
334
- <macro name="container-contributors">
335
- <choose>
336
- <if type="chapter paper-conference" match="any">
337
- <text macro="container-prefix" prefix=" " suffix=" "/>
338
- </if>
339
- </choose>
340
- <choose>
341
- <if type="chapter paper-conference" match="any">
342
- <group delimiter="; ">
343
- <choose>
344
- <if variable="author">
345
- <choose>
346
- <if variable="container-author">
347
- <group>
348
- <names variable="container-author">
349
- <name name-as-sort-order="all" delimiter="; " delimiter-precedes-last="never" et-al-min="3" et-al-use-first="1"/>
350
- </names>
351
- </group>
352
- </if>
353
- </choose>
354
- <names variable="editor">
355
- <name and="symbol" name-as-sort-order="all" delimiter="; " delimiter-precedes-last="never" et-al-min="3" et-al-use-first="1"/>
356
- <label form="verb-short" prefix=" (" text-case="lowercase" suffix=".)" strip-periods="true"/>
357
- </names>
358
- </if>
359
- </choose>
360
- <choose>
361
- <if variable="author editor" match="any">
362
- <names variable="translator">
363
- <name and="symbol" name-as-sort-order="all" delimiter="; " delimiter-precedes-last="never" et-al-min="3" et-al-use-first="1"/>
364
- <label form="verb-short" prefix=" (" text-case="lowercase" suffix=".)" strip-periods="true"/>
365
- </names>
366
- </if>
367
- </choose>
368
- </group>
369
- </if>
370
- </choose>
371
- </macro>
372
- <macro name="anon">
373
- <text term="anonymous" form="short" text-case="capitalize-first" suffix="." strip-periods="true"/>
374
- </macro>
375
- <macro name="editor">
376
- <names variable="editor">
377
- <name name-as-sort-order="all" and="symbol" sort-separator=", " delimiter="; " delimiter-precedes-last="never" et-al-min="3" et-al-use-first="1"/>
378
- <label form="short" prefix=" (" suffix=".)" strip-periods="true"/>
379
- </names>
380
- </macro>
381
- <macro name="translator">
382
- <names variable="translator">
383
- <name name-as-sort-order="all" and="symbol" sort-separator=", " delimiter="; " delimiter-precedes-last="never" et-al-min="3" et-al-use-first="1"/>
384
- <label form="verb-short" prefix=" (" suffix=".)" strip-periods="true"/>
385
- </names>
386
- </macro>
387
- <macro name="recipient">
388
- <choose>
389
- <if type="personal_communication">
390
- <choose>
391
- <if variable="genre">
392
- <text variable="genre" text-case="capitalize-first"/>
393
- </if>
394
- <else>
395
- <text term="letter" text-case="capitalize-first"/>
396
- </else>
397
- </choose>
398
- </if>
399
- </choose>
400
- <names variable="recipient" delimiter=", ">
401
- <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
402
- <name and="symbol" delimiter="; "/>
403
- </names>
404
- </macro>
405
- <macro name="contributors">
406
- <names variable="author">
407
- <name and="symbol" name-as-sort-order="all" sort-separator=", " delimiter="; " delimiter-precedes-last="never"/>
408
- <label form="verb-short" prefix=", " suffix="." text-case="lowercase" strip-periods="true"/>
409
- <substitute>
410
- <text macro="editor"/>
411
- <text macro="translator"/>
412
- <text macro="anon"/>
413
- </substitute>
414
- </names>
415
- <text macro="recipient"/>
416
- </macro>
417
- <macro name="contributors-short">
418
- <names variable="author">
419
- <name form="short" and="symbol" delimiter="; " initialize-with=". "/>
420
- <substitute>
421
- <names variable="editor"/>
422
- <names variable="translator"/>
423
- <text macro="anon"/>
424
- </substitute>
425
- </names>
426
- </macro>
427
- <macro name="interviewer">
428
- <names variable="interviewer" delimiter=", ">
429
- <label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/>
430
- <name and="symbol" delimiter="; "/>
431
- </names>
432
- </macro>
433
- <macro name="archive">
434
- <group delimiter=". ">
435
- <text variable="archive_location" text-case="capitalize-first"/>
436
- <text variable="archive"/>
437
- <text variable="archive-place"/>
438
- </group>
439
- </macro>
440
- <macro name="access">
441
- <group delimiter=". ">
442
- <choose>
443
- <if type="graphic report" match="any">
444
- <text macro="archive"/>
445
- </if>
446
- <else-if type="article-magazine article-newspaper bill book chapter graphic legal_case legislation motion_picture paper-conference report song thesis" match="none">
447
- <text macro="archive"/>
448
- </else-if>
449
- </choose>
450
- <text variable="DOI" prefix="doi:"/>
451
- <choose>
452
- <if type="legal_case" match="none">
453
- <text variable="URL"/>
454
- </if>
455
- </choose>
456
- </group>
457
- </macro>
458
- <macro name="title">
459
- <choose>
460
- <if variable="title" match="none">
461
- <choose>
462
- <if type="personal_communication" match="none">
463
- <text variable="genre" text-case="capitalize-first"/>
464
- </if>
465
- </choose>
466
- </if>
467
- <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
468
- <text variable="title" font-style="italic"/>
469
- </else-if>
470
- <else>
471
- <text variable="title" quotes="true"/>
472
- </else>
473
- </choose>
474
- </macro>
475
- <macro name="edition">
476
- <choose>
477
- <if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
478
- <choose>
479
- <if is-numeric="edition">
480
- <group delimiter=" ">
481
- <number variable="edition" form="ordinal"/>
482
- <text term="edition" form="short" suffix="." strip-periods="true"/>
483
- </group>
484
- </if>
485
- <else>
486
- <text variable="edition" suffix="."/>
487
- </else>
488
- </choose>
489
- </if>
490
- </choose>
491
- </macro>
492
- <macro name="locators">
493
- <choose>
494
- <if type="article-journal">
495
- <text variable="volume" prefix=" "/>
496
- <text variable="issue" prefix=" (" suffix=")"/>
497
- </if>
498
- <else-if type="legal_case">
499
- <text variable="volume" prefix=", "/>
500
- <text variable="container-title" prefix=" "/>
501
- <text variable="page" prefix=" "/>
502
- </else-if>
503
- <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
504
- <group prefix=". " delimiter=". ">
505
- <group>
506
- <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
507
- <number variable="volume" form="numeric"/>
508
- </group>
509
- <group>
510
- <number variable="number-of-volumes" form="numeric"/>
511
- <text term="volume" form="short" prefix=" " suffix="." plural="true" strip-periods="true"/>
512
- </group>
513
- </group>
514
- </else-if>
515
- <else-if type="chapter paper-conference" match="any">
516
- <choose>
517
- <if variable="page" match="none">
518
- <group prefix=". ">
519
- <text term="volume" form="short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
520
- <number variable="volume" form="numeric"/>
521
- </group>
522
- </if>
523
- </choose>
524
- </else-if>
525
- </choose>
526
- </macro>
527
- <macro name="locators-chapter">
528
- <choose>
529
- <if type="chapter paper-conference" match="any">
530
- <choose>
531
- <if variable="page">
532
- <group prefix=", ">
533
- <text variable="volume" suffix=":"/>
534
- <text variable="page"/>
535
- </group>
536
- </if>
537
- </choose>
538
- </if>
539
- </choose>
540
- </macro>
541
- <macro name="locators-article">
542
- <choose>
543
- <if type="article-newspaper">
544
- <group prefix=", " delimiter=", ">
545
- <group>
546
- <text variable="edition" suffix=" "/>
547
- <text term="edition" prefix=" "/>
548
- </group>
549
- <group>
550
- <text term="section" form="short" suffix=". " strip-periods="true"/>
551
- <text variable="section"/>
552
- </group>
553
- </group>
554
- </if>
555
- <else-if type="article-journal">
556
- <text variable="page" prefix=": "/>
557
- </else-if>
558
- </choose>
559
- </macro>
560
- <macro name="point-locators">
561
- <choose>
562
- <if variable="locator">
563
- <choose>
564
- <if locator="page" match="none">
565
- <choose>
566
- <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
567
- <choose>
568
- <if variable="volume">
569
- <group>
570
- <text term="volume" form="short" text-case="lowercase" suffix=". " strip-periods="true"/>
571
- <number variable="volume" form="numeric"/>
572
- <label variable="locator" form="short" prefix=", " suffix=" "/>
573
- </group>
574
- </if>
575
- <else>
576
- <label variable="locator" form="short" suffix=" "/>
577
- </else>
578
- </choose>
579
- </if>
580
- </choose>
581
- </if>
582
- <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
583
- <number variable="volume" form="numeric" suffix=":"/>
584
- </else-if>
585
- </choose>
586
- <text variable="locator"/>
587
- </if>
588
- </choose>
589
- </macro>
590
- <macro name="container-title">
591
- <choose>
592
- <if type="legal_case" match="none">
593
- <text variable="container-title" font-style="italic"/>
594
- </if>
595
- </choose>
596
- </macro>
597
- <macro name="publisher">
598
- <group delimiter=": ">
599
- <text variable="publisher-place"/>
600
- <text variable="publisher"/>
601
- </group>
602
- </macro>
603
- <macro name="date">
604
- <date variable="issued">
605
- <date-part name="year"/>
606
- </date>
607
- </macro>
608
- <macro name="day-month">
609
- <date variable="issued">
610
- <date-part name="month"/>
611
- <date-part name="day" prefix=" "/>
612
- </date>
613
- </macro>
614
- <macro name="collection-title">
615
- <text variable="collection-title"/>
616
- <text variable="collection-number" prefix=" "/>
617
- </macro>
618
- <macro name="event">
619
- <group>
620
- <text term="presented at" suffix=" "/>
621
- <text variable="event"/>
622
- </group>
623
- </macro>
624
- <macro name="description">
625
- <choose>
626
- <if type="interview">
627
- <group delimiter=". ">
628
- <text macro="interviewer"/>
629
- <text variable="medium" text-case="capitalize-first"/>
630
- </group>
631
- </if>
632
- <else>
633
- <text variable="medium" text-case="capitalize-first" prefix=". "/>
634
- </else>
635
- </choose>
636
- <choose>
637
- <if variable="title" match="none"/>
638
- <else-if type="thesis"/>
639
- <else>
640
- <text variable="genre" text-case="capitalize-first" prefix=". "/>
641
- </else>
642
- </choose>
643
- </macro>
644
- <macro name="issue">
645
- <choose>
646
- <if type="article-journal">
647
- <text macro="day-month" prefix=" (" suffix=")"/>
648
- </if>
649
- <else-if type="legal_case">
650
- <text variable="authority" prefix=". "/>
651
- </else-if>
652
- <else-if type="speech">
653
- <group prefix=" " delimiter=", ">
654
- <text macro="event"/>
655
- <text macro="day-month"/>
656
- <text variable="event-place"/>
657
- </group>
658
- </else-if>
659
- <else-if type="article-newspaper article-magazine" match="any">
660
- <text macro="day-month" prefix=", "/>
661
- </else-if>
662
- <else>
663
- <group prefix=". " delimiter=", ">
664
- <choose>
665
- <if type="thesis">
666
- <text variable="genre" text-case="capitalize-first"/>
667
- </if>
668
- </choose>
669
- <text macro="publisher"/>
670
- </group>
671
- </else>
672
- </choose>
673
- </macro>
674
- <citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name">
675
- <layout prefix="(" suffix=")" delimiter="; ">
676
- <group delimiter=", ">
677
- <group delimiter=" ">
678
- <text macro="contributors-short"/>
679
- <text macro="date"/>
680
- </group>
681
- <text macro="point-locators"/>
682
- </group>
683
- </layout>
684
- </citation>
685
- <bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1" subsequent-author-substitute="———" entry-spacing="0">
686
- <sort>
687
- <key macro="contributors"/>
688
- <key variable="issued"/>
689
- </sort>
690
- <layout suffix=".">
691
- <text macro="contributors" suffix=". "/>
692
- <text macro="date" suffix=". "/>
693
- <text macro="title"/>
694
- <text macro="description"/>
695
- <text macro="secondary-contributors" prefix=". "/>
696
- <text macro="container-contributors"/>
697
- <text macro="container-title" prefix=". "/>
698
- <text macro="locators-chapter"/>
699
- <text macro="edition" prefix=". "/>
700
- <text macro="locators"/>
701
- <text macro="collection-title" prefix=". "/>
702
- <text macro="issue"/>
703
- <text macro="locators-article"/>
704
- <text macro="access" prefix=". "/>
705
- </layout>
706
- </bibliography>
707
- </style>