citeproc-ruby 0.0.1
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.
- data/README.md +78 -0
- data/lib/citeproc.rb +100 -0
- data/lib/citeproc/bibliography.rb +57 -0
- data/lib/citeproc/data.rb +149 -0
- data/lib/citeproc/date.rb +133 -0
- data/lib/citeproc/formatter.rb +38 -0
- data/lib/citeproc/item.rb +53 -0
- data/lib/citeproc/name.rb +284 -0
- data/lib/citeproc/processor.rb +166 -0
- data/lib/citeproc/selector.rb +61 -0
- data/lib/citeproc/variable.rb +82 -0
- data/lib/citeproc/version.rb +3 -0
- data/lib/csl/locale.rb +223 -0
- data/lib/csl/node.rb +72 -0
- data/lib/csl/nodes.rb +1364 -0
- data/lib/csl/renderer.rb +88 -0
- data/lib/csl/sort.rb +53 -0
- data/lib/csl/style.rb +110 -0
- data/lib/csl/term.rb +124 -0
- data/lib/extensions/core.rb +43 -0
- data/lib/plugins/filters/bibtex.rb +12 -0
- data/lib/plugins/formats/default.rb +134 -0
- data/lib/plugins/formats/html.rb +67 -0
- data/lib/support/attributes.rb +99 -0
- data/lib/support/tree.rb +80 -0
- data/resource/locale/locales-af-ZA.xml +304 -0
- data/resource/locale/locales-ar-AR.xml +304 -0
- data/resource/locale/locales-bg-BG.xml +304 -0
- data/resource/locale/locales-ca-AD.xml +304 -0
- data/resource/locale/locales-cs-CZ.xml +304 -0
- data/resource/locale/locales-da-DK.xml +304 -0
- data/resource/locale/locales-de-AT.xml +304 -0
- data/resource/locale/locales-de-CH.xml +304 -0
- data/resource/locale/locales-de-DE.xml +332 -0
- data/resource/locale/locales-el-GR.xml +303 -0
- data/resource/locale/locales-en-US.xml +313 -0
- data/resource/locale/locales-es-ES.xml +304 -0
- data/resource/locale/locales-et-EE.xml +304 -0
- data/resource/locale/locales-fr-FR.xml +304 -0
- data/resource/locale/locales-he-IL.xml +304 -0
- data/resource/locale/locales-hu-HU.xml +304 -0
- data/resource/locale/locales-is-IS.xml +304 -0
- data/resource/locale/locales-it-IT.xml +304 -0
- data/resource/locale/locales-ja-JP.xml +304 -0
- data/resource/locale/locales-kh-KH.xml +303 -0
- data/resource/locale/locales-ko-KR.xml +304 -0
- data/resource/locale/locales-mn-MN.xml +304 -0
- data/resource/locale/locales-nb-NO.xml +304 -0
- data/resource/locale/locales-nl-NL.xml +304 -0
- data/resource/locale/locales-nn-NO.xml +304 -0
- data/resource/locale/locales-pl-PL.xml +304 -0
- data/resource/locale/locales-pt-BR.xml +304 -0
- data/resource/locale/locales-pt-PT.xml +304 -0
- data/resource/locale/locales-ro-RO.xml +304 -0
- data/resource/locale/locales-ru-RU.xml +304 -0
- data/resource/locale/locales-sk-SK.xml +304 -0
- data/resource/locale/locales-sl-SI.xml +304 -0
- data/resource/locale/locales-sr-RS.xml +304 -0
- data/resource/locale/locales-sv-SE.xml +304 -0
- data/resource/locale/locales-th-TH.xml +304 -0
- data/resource/locale/locales-tr-TR.xml +304 -0
- data/resource/locale/locales-uk-UA.xml +304 -0
- data/resource/locale/locales-vi-VN.xml +304 -0
- data/resource/locale/locales-zh-CN.xml +304 -0
- data/resource/locale/locales-zh-TW.xml +304 -0
- data/resource/schema/csl-categories.rnc +39 -0
- data/resource/schema/csl-data.rnc +98 -0
- data/resource/schema/csl-terms.rnc +106 -0
- data/resource/schema/csl-types.rnc +39 -0
- data/resource/schema/csl-variables.rnc +182 -0
- data/resource/schema/csl.rnc +941 -0
- data/resource/style/acta-materialia-x.csl +128 -0
- data/resource/style/advanced-engineering-materials-x.csl +121 -0
- data/resource/style/ama.csl +185 -0
- data/resource/style/ama2-x.csl +179 -0
- data/resource/style/apa-x.csl +324 -0
- data/resource/style/apa.csl +254 -0
- data/resource/style/apsa-x.csl +163 -0
- data/resource/style/apsa.csl +176 -0
- data/resource/style/asa-x.csl +203 -0
- data/resource/style/asa.csl +216 -0
- data/resource/style/asm-journals-x.csl +131 -0
- data/resource/style/bibtex-x2.csl +175 -0
- data/resource/style/bluebook-demo-x.csl +392 -0
- data/resource/style/bluebook-demo.csl +942 -0
- data/resource/style/chicago-author-date-listing.csl +434 -0
- data/resource/style/chicago-author-date.csl +369 -0
- data/resource/style/chicago-fullnote-bibliography-bb.csl +928 -0
- data/resource/style/chicago-fullnote-bibliography.csl +695 -0
- data/resource/style/chicago-note-bibliography.csl +446 -0
- data/resource/style/chicago-note.csl +388 -0
- data/resource/style/greek-chicago-x.csl +1182 -0
- data/resource/style/harvard1-institution-italic.csl +190 -0
- data/resource/style/harvard1.csl +181 -0
- data/resource/style/ieee.csl +129 -0
- data/resource/style/mhra-x.csl +312 -0
- data/resource/style/mhra.csl +390 -0
- data/resource/style/mhra_note_without_bibliography-x.csl +330 -0
- data/resource/style/mhra_note_without_bibliography.csl +338 -0
- data/resource/style/mla-x.csl +178 -0
- data/resource/style/mla.csl +189 -0
- data/resource/style/nature-x.csl +81 -0
- data/resource/style/nature.csl +88 -0
- data/resource/style/nlm.csl +117 -0
- data/spec/citeproc/bibliography_spec.rb +45 -0
- data/spec/citeproc/citeproc_spec.rb +76 -0
- data/spec/citeproc/date_spec.rb +85 -0
- data/spec/citeproc/formatter_spec.rb +101 -0
- data/spec/citeproc/item_spec.rb +71 -0
- data/spec/citeproc/name_spec.rb +30 -0
- data/spec/citeproc/processor_spec.rb +61 -0
- data/spec/citeproc/selector_spec.rb +82 -0
- data/spec/citeproc/variable_spec.rb +69 -0
- data/spec/csl/locale_spec.rb +208 -0
- data/spec/csl/node_spec.rb +25 -0
- data/spec/csl/nodes_spec.rb +140 -0
- data/spec/csl/style_spec.rb +62 -0
- data/spec/csl/term_spec.rb +56 -0
- data/spec/fixtures/dates.yaml +80 -0
- data/spec/fixtures/names.yaml +115 -0
- data/spec/fixtures/nodes.yaml +245 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/support/attributes_spec.rb +39 -0
- data/spec/support/tree_spec.rb +163 -0
- metadata +264 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="zh">
|
|
3
|
+
<style-options punctuation-in-quote="false"/>
|
|
4
|
+
<date form="text">
|
|
5
|
+
<date-part name="year" suffix="年"/>
|
|
6
|
+
<date-part name="month" form="numeric" suffix="月"/>
|
|
7
|
+
<date-part name="day" suffix="日"/>
|
|
8
|
+
</date>
|
|
9
|
+
<date form="numeric">
|
|
10
|
+
<date-part name="year"/>
|
|
11
|
+
<date-part name="month" form="numeric-leading-zeros" prefix="/"/>
|
|
12
|
+
<date-part name="day" form="numeric-leading-zeros" prefix="/"/>
|
|
13
|
+
</date>
|
|
14
|
+
<terms>
|
|
15
|
+
<term name="accessed">被取用</term>
|
|
16
|
+
<term name="and">及</term>
|
|
17
|
+
<term name="and others">及其他</term>
|
|
18
|
+
<term name="anonymous">不具名的</term>
|
|
19
|
+
<term name="anonymous" form="short">無名</term>
|
|
20
|
+
<term name="at">在</term>
|
|
21
|
+
<term name="by">by</term>
|
|
22
|
+
<term name="circa">circa</term>
|
|
23
|
+
<term name="circa" form="short">c.</term>
|
|
24
|
+
<term name="cited">被引用</term>
|
|
25
|
+
<term name="edition">
|
|
26
|
+
<single>版本</single>
|
|
27
|
+
<multiple>版本</multiple>
|
|
28
|
+
</term>
|
|
29
|
+
<term name="edition" form="short">版</term>
|
|
30
|
+
<term name="et-al">等人</term>
|
|
31
|
+
<term name="forthcoming">將來的</term>
|
|
32
|
+
<term name="from">從</term>
|
|
33
|
+
<term name="ibid">同上出處</term>
|
|
34
|
+
<term name="in">在</term>
|
|
35
|
+
<term name="in press">印行中</term>
|
|
36
|
+
<term name="internet">網際網路</term>
|
|
37
|
+
<term name="interview">訪問</term>
|
|
38
|
+
<term name="letter">信件</term>
|
|
39
|
+
<term name="no date">no date</term>
|
|
40
|
+
<term name="no date" form="short">無日期</term>
|
|
41
|
+
<term name="online">在線上</term>
|
|
42
|
+
<term name="presented at">簡報於</term>
|
|
43
|
+
<term name="reference">
|
|
44
|
+
<single>reference</single>
|
|
45
|
+
<multiple>references</multiple>
|
|
46
|
+
</term>
|
|
47
|
+
<term name="reference" form="short">
|
|
48
|
+
<single>ref.</single>
|
|
49
|
+
<multiple>refs.</multiple>
|
|
50
|
+
</term>
|
|
51
|
+
<term name="retrieved">被取回</term>
|
|
52
|
+
|
|
53
|
+
<!-- ANNO DOMINI; BEFORE CHRIST -->
|
|
54
|
+
<term name="ad">AD</term>
|
|
55
|
+
<term name="bc">BC</term>
|
|
56
|
+
|
|
57
|
+
<!-- QUOTES -->
|
|
58
|
+
<term name="open-quote">“</term>
|
|
59
|
+
<term name="close-quote">”</term>
|
|
60
|
+
<term name="open-inner-quote">‘</term>
|
|
61
|
+
<term name="close-inner-quote">’</term>
|
|
62
|
+
|
|
63
|
+
<!-- ORDINALS -->
|
|
64
|
+
<term name="ordinal-01">st</term>
|
|
65
|
+
<term name="ordinal-02">nd</term>
|
|
66
|
+
<term name="ordinal-03">rd</term>
|
|
67
|
+
<term name="ordinal-04">th</term>
|
|
68
|
+
|
|
69
|
+
<!-- LONG ORDINALS -->
|
|
70
|
+
<term name="long-ordinal-01">first</term>
|
|
71
|
+
<term name="long-ordinal-02">second</term>
|
|
72
|
+
<term name="long-ordinal-03">third</term>
|
|
73
|
+
<term name="long-ordinal-04">fourth</term>
|
|
74
|
+
<term name="long-ordinal-05">fifth</term>
|
|
75
|
+
<term name="long-ordinal-06">sixth</term>
|
|
76
|
+
<term name="long-ordinal-07">seventh</term>
|
|
77
|
+
<term name="long-ordinal-08">eighth</term>
|
|
78
|
+
<term name="long-ordinal-09">ninth</term>
|
|
79
|
+
<term name="long-ordinal-10">tenth</term>
|
|
80
|
+
|
|
81
|
+
<!-- CATEGORIES -->
|
|
82
|
+
<term name="anthropology">人類學</term>
|
|
83
|
+
<term name="astronomy">天文學</term>
|
|
84
|
+
<term name="biology">生物學</term>
|
|
85
|
+
<term name="botany">植物學</term>
|
|
86
|
+
<term name="chemistry">化學</term>
|
|
87
|
+
<term name="engineering">工程學</term>
|
|
88
|
+
<term name="generic-base">一般基礎</term>
|
|
89
|
+
<term name="geography">地理學</term>
|
|
90
|
+
<term name="geology">地質學</term>
|
|
91
|
+
<term name="history">歷史學</term>
|
|
92
|
+
<term name="humanities">人文學科</term>
|
|
93
|
+
<term name="linguistics">linguistics</term>
|
|
94
|
+
<term name="literature">文學</term>
|
|
95
|
+
<term name="math">數學</term>
|
|
96
|
+
<term name="medicine">醫學</term>
|
|
97
|
+
<term name="philosophy">哲學</term>
|
|
98
|
+
<term name="physics">物理學</term>
|
|
99
|
+
<term name="psychology">心理學</term>
|
|
100
|
+
<term name="sociology">社會學</term>
|
|
101
|
+
<term name="science">自然科學</term>
|
|
102
|
+
<term name="political_science">政治科學</term>
|
|
103
|
+
<term name="social_science">社會科學</term>
|
|
104
|
+
<term name="theology">神學</term>
|
|
105
|
+
<term name="zoology">動物學</term>
|
|
106
|
+
|
|
107
|
+
<!-- LONG LOCATOR FORMS -->
|
|
108
|
+
<term name="book">
|
|
109
|
+
<single>書</single>
|
|
110
|
+
<multiple>書</multiple>
|
|
111
|
+
</term>
|
|
112
|
+
<term name="chapter">
|
|
113
|
+
<single>章</single>
|
|
114
|
+
<multiple>章</multiple>
|
|
115
|
+
</term>
|
|
116
|
+
<term name="column">
|
|
117
|
+
<single>欄</single>
|
|
118
|
+
<multiple>欄</multiple>
|
|
119
|
+
</term>
|
|
120
|
+
<term name="figure">
|
|
121
|
+
<single>圖</single>
|
|
122
|
+
<multiple>圖</multiple>
|
|
123
|
+
</term>
|
|
124
|
+
<term name="folio">
|
|
125
|
+
<single>對開紙</single>
|
|
126
|
+
<multiple>對開紙</multiple>
|
|
127
|
+
</term>
|
|
128
|
+
<term name="issue">
|
|
129
|
+
<single>期數</single>
|
|
130
|
+
<multiple>期數</multiple>
|
|
131
|
+
</term>
|
|
132
|
+
<term name="line">
|
|
133
|
+
<single>行</single>
|
|
134
|
+
<multiple>行</multiple>
|
|
135
|
+
</term>
|
|
136
|
+
<term name="note">
|
|
137
|
+
<single>筆記</single>
|
|
138
|
+
<multiple>筆記</multiple>
|
|
139
|
+
</term>
|
|
140
|
+
<term name="opus">
|
|
141
|
+
<single>作品</single>
|
|
142
|
+
<multiple>作品</multiple>
|
|
143
|
+
</term>
|
|
144
|
+
<term name="page">
|
|
145
|
+
<single>頁</single>
|
|
146
|
+
<multiple>頁</multiple>
|
|
147
|
+
</term>
|
|
148
|
+
<term name="paragraph">
|
|
149
|
+
<single>段落</single>
|
|
150
|
+
<multiple>段落</multiple>
|
|
151
|
+
</term>
|
|
152
|
+
<term name="part">
|
|
153
|
+
<single>部</single>
|
|
154
|
+
<multiple>部</multiple>
|
|
155
|
+
</term>
|
|
156
|
+
<term name="section">
|
|
157
|
+
<single>節</single>
|
|
158
|
+
<multiple>節</multiple>
|
|
159
|
+
</term>
|
|
160
|
+
<term name="sub verbo">
|
|
161
|
+
<single>sub verbo</single>
|
|
162
|
+
<multiple>sub verbis</multiple>
|
|
163
|
+
</term>
|
|
164
|
+
<term name="verse">
|
|
165
|
+
<single>詩句</single>
|
|
166
|
+
<multiple>詩句</multiple>
|
|
167
|
+
</term>
|
|
168
|
+
<term name="volume">
|
|
169
|
+
<single>冊</single>
|
|
170
|
+
<multiple>冊</multiple>
|
|
171
|
+
</term>
|
|
172
|
+
|
|
173
|
+
<!-- SHORT LOCATOR FORMS -->
|
|
174
|
+
<term name="book" form="short">書</term>
|
|
175
|
+
<term name="chapter" form="short">章</term>
|
|
176
|
+
<term name="column" form="short">欄</term>
|
|
177
|
+
<term name="figure" form="short">圖</term>
|
|
178
|
+
<term name="folio" form="short">開</term>
|
|
179
|
+
<term name="issue" form="short">期</term>
|
|
180
|
+
<term name="opus" form="short">作</term>
|
|
181
|
+
<term name="page" form="short">
|
|
182
|
+
<single>頁</single>
|
|
183
|
+
<multiple>頁</multiple>
|
|
184
|
+
</term>
|
|
185
|
+
<term name="paragraph" form="short">段</term>
|
|
186
|
+
<term name="part" form="short">部</term>
|
|
187
|
+
<term name="section" form="short">節</term>
|
|
188
|
+
<term name="sub verbo" form="short">
|
|
189
|
+
<single>s.v.</single>
|
|
190
|
+
<multiple>s.vv.</multiple>
|
|
191
|
+
</term>
|
|
192
|
+
<term name="verse" form="short">
|
|
193
|
+
<single>句</single>
|
|
194
|
+
<multiple>句</multiple>
|
|
195
|
+
</term>
|
|
196
|
+
<term name="volume" form="short">
|
|
197
|
+
<single>冊</single>
|
|
198
|
+
<multiple>冊</multiple>
|
|
199
|
+
</term>
|
|
200
|
+
|
|
201
|
+
<!-- SYMBOL LOCATOR FORMS -->
|
|
202
|
+
<term name="paragraph" form="symbol">
|
|
203
|
+
<single>¶</single>
|
|
204
|
+
<multiple>¶¶</multiple>
|
|
205
|
+
</term>
|
|
206
|
+
<term name="section" form="symbol">
|
|
207
|
+
<single>§</single>
|
|
208
|
+
<multiple>§§</multiple>
|
|
209
|
+
</term>
|
|
210
|
+
|
|
211
|
+
<!-- LONG ROLE FORMS -->
|
|
212
|
+
<term name="author">
|
|
213
|
+
<single>作者</single>
|
|
214
|
+
<multiple>作者</multiple>
|
|
215
|
+
</term>
|
|
216
|
+
<term name="editor">
|
|
217
|
+
<single>編輯</single>
|
|
218
|
+
<multiple>編輯</multiple>
|
|
219
|
+
</term>
|
|
220
|
+
<term name="editorial-director">
|
|
221
|
+
<single>editor</single>
|
|
222
|
+
<multiple>editors</multiple>
|
|
223
|
+
</term>
|
|
224
|
+
<term name="translator">
|
|
225
|
+
<single>翻譯</single>
|
|
226
|
+
<multiple>翻譯</multiple>
|
|
227
|
+
</term>
|
|
228
|
+
<term name="editortranslator">
|
|
229
|
+
<single>editor & translator</single>
|
|
230
|
+
<multiple>editors & translators</multiple>
|
|
231
|
+
</term>
|
|
232
|
+
|
|
233
|
+
<!-- SHORT ROLE FORMS -->
|
|
234
|
+
<term name="author" form="short">
|
|
235
|
+
<single>作</single>
|
|
236
|
+
<multiple>作</multiple>
|
|
237
|
+
</term>
|
|
238
|
+
<term name="editor" form="short">
|
|
239
|
+
<single>編</single>
|
|
240
|
+
<multiple>編</multiple>
|
|
241
|
+
</term>
|
|
242
|
+
<term name="editorial-director" form="short">
|
|
243
|
+
<single>ed.</single>
|
|
244
|
+
<multiple>eds.</multiple>
|
|
245
|
+
</term>
|
|
246
|
+
<term name="translator" form="short">
|
|
247
|
+
<single>譯</single>
|
|
248
|
+
<multiple>譯</multiple>
|
|
249
|
+
</term>
|
|
250
|
+
<term name="editortranslator" form="short">
|
|
251
|
+
<single>ed. & tran.</single>
|
|
252
|
+
<multiple>eds. & trans.</multiple>
|
|
253
|
+
</term>
|
|
254
|
+
|
|
255
|
+
<!-- VERB ROLE FORMS -->
|
|
256
|
+
<term name="editor" form="verb">編者是</term>
|
|
257
|
+
<term name="editorial-director" form="verb">edited by</term>
|
|
258
|
+
<term name="translator" form="verb">譯者是</term>
|
|
259
|
+
<term name="editortranslator" form="verb">edited & translated by</term>
|
|
260
|
+
<term name="recipient" form="verb">授與</term>
|
|
261
|
+
<term name="interviewer" form="verb">訪問者是</term>
|
|
262
|
+
|
|
263
|
+
<!-- SHORT VERB ROLE FORMS -->
|
|
264
|
+
<term name="container-author" form="verb-short">by</term>
|
|
265
|
+
<term name="editor" form="verb-short">編</term>
|
|
266
|
+
<term name="editorial-director" form="verb-short">ed.</term>
|
|
267
|
+
<term name="translator" form="verb-short">譯</term>
|
|
268
|
+
<term name="editortranslator" form="verb-short">ed. & trans. by</term>
|
|
269
|
+
|
|
270
|
+
<!-- LONG MONTH FORMS -->
|
|
271
|
+
<term name="month-01">一月</term>
|
|
272
|
+
<term name="month-02">二月</term>
|
|
273
|
+
<term name="month-03">三月</term>
|
|
274
|
+
<term name="month-04">四月</term>
|
|
275
|
+
<term name="month-05">五月</term>
|
|
276
|
+
<term name="month-06">六月</term>
|
|
277
|
+
<term name="month-07">七月</term>
|
|
278
|
+
<term name="month-08">八月</term>
|
|
279
|
+
<term name="month-09">九月</term>
|
|
280
|
+
<term name="month-10">十月</term>
|
|
281
|
+
<term name="month-11">十一月</term>
|
|
282
|
+
<term name="month-12">十二月</term>
|
|
283
|
+
|
|
284
|
+
<!-- SHORT MONTH FORMS -->
|
|
285
|
+
<term name="month-01" form="short">1月</term>
|
|
286
|
+
<term name="month-02" form="short">2月</term>
|
|
287
|
+
<term name="month-03" form="short">3月</term>
|
|
288
|
+
<term name="month-04" form="short">4月</term>
|
|
289
|
+
<term name="month-05" form="short">5月</term>
|
|
290
|
+
<term name="month-06" form="short">6月</term>
|
|
291
|
+
<term name="month-07" form="short">7月</term>
|
|
292
|
+
<term name="month-08" form="short">8月</term>
|
|
293
|
+
<term name="month-09" form="short">9月</term>
|
|
294
|
+
<term name="month-10" form="short">10月</term>
|
|
295
|
+
<term name="month-11" form="short">11月</term>
|
|
296
|
+
<term name="month-12" form="short">12月</term>
|
|
297
|
+
|
|
298
|
+
<!-- SEASONS -->
|
|
299
|
+
<term name="season-01">Spring</term>
|
|
300
|
+
<term name="season-02">Summer</term>
|
|
301
|
+
<term name="season-03">Autumn</term>
|
|
302
|
+
<term name="season-04">Winter</term>
|
|
303
|
+
</terms>
|
|
304
|
+
</locale>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
namespace cs = "http://purl.org/net/xbiblio/csl"
|
|
2
|
+
|
|
3
|
+
div {
|
|
4
|
+
info-format-categories = "author-date" | "numeric" | "label" | "note" | "author"
|
|
5
|
+
|
|
6
|
+
## "generic-base" is reserved for truly generic styles (APA, Harvard, etc.).
|
|
7
|
+
info-field-categories =
|
|
8
|
+
"anthropology"
|
|
9
|
+
| "astronomy"
|
|
10
|
+
| "biology"
|
|
11
|
+
| "botany"
|
|
12
|
+
| "chemistry"
|
|
13
|
+
| "communications"
|
|
14
|
+
| "engineering"
|
|
15
|
+
| "generic-base"
|
|
16
|
+
| "geography"
|
|
17
|
+
| "geology"
|
|
18
|
+
| "history"
|
|
19
|
+
| "humanities"
|
|
20
|
+
| "law"
|
|
21
|
+
| "linguistics"
|
|
22
|
+
| "literature"
|
|
23
|
+
| "math"
|
|
24
|
+
| "medicine"
|
|
25
|
+
| "philosophy"
|
|
26
|
+
| "physics"
|
|
27
|
+
| "political_science"
|
|
28
|
+
| "psychology"
|
|
29
|
+
| "science"
|
|
30
|
+
| "social_science"
|
|
31
|
+
| "sociology"
|
|
32
|
+
| "theology"
|
|
33
|
+
| "zoology"
|
|
34
|
+
| info-categories.extension
|
|
35
|
+
|
|
36
|
+
## Categories can be redefined in a customization schema, though please
|
|
37
|
+
## report obvious gaps for inclusion in the schema.
|
|
38
|
+
info-categories.extension = notAllowed
|
|
39
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
namespace dc = "http://purl.org/dc/elements/1.1/"
|
|
2
|
+
|
|
3
|
+
dc:title [ "Citation Style Language Data" ]
|
|
4
|
+
dc:creator [ "Bruce D'Arcus" ]
|
|
5
|
+
dc:copyright [ "Bruce D'Arcus, 2009" ]
|
|
6
|
+
dc:description [ "A schema for the CSL data model." ]
|
|
7
|
+
include "csl-types.rnc"
|
|
8
|
+
include "csl-variables.rnc"
|
|
9
|
+
start = element references { reference+ }
|
|
10
|
+
reference = element reference { type, uri?, container-uri?, contributor*, date?, variable+ }
|
|
11
|
+
|
|
12
|
+
## Types
|
|
13
|
+
div {
|
|
14
|
+
type = attribute type { cs-types }
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
## Identifiers
|
|
18
|
+
div {
|
|
19
|
+
|
|
20
|
+
## The URI is the global identity for the refererence; used to associate a citation reference to its data
|
|
21
|
+
uri = attribute uri { xsd:anyURI }
|
|
22
|
+
|
|
23
|
+
## the URI for containing items (such as edited books or journals)
|
|
24
|
+
container-uri = attribute container-uri { xsd:anyURI }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
## Contributors
|
|
28
|
+
div {
|
|
29
|
+
contributor =
|
|
30
|
+
element contributor {
|
|
31
|
+
attribute type { cs-names },
|
|
32
|
+
name-attributes
|
|
33
|
+
}
|
|
34
|
+
name-attributes =
|
|
35
|
+
attribute literal { text }
|
|
36
|
+
| ((attribute given { text }?,
|
|
37
|
+
attribute family { text }?),
|
|
38
|
+
attribute dropping-particle { text }?,
|
|
39
|
+
attribute non-dropping-particle { text }?,
|
|
40
|
+
attribute suffix { text }?)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
## Dates
|
|
44
|
+
div {
|
|
45
|
+
date =
|
|
46
|
+
element date {
|
|
47
|
+
attribute type { cs-dates },
|
|
48
|
+
attribute circa { xsd:boolean }?,
|
|
49
|
+
(date-pattern | date-range)
|
|
50
|
+
}
|
|
51
|
+
date-pattern =
|
|
52
|
+
year-pattern,
|
|
53
|
+
( ( month-pattern, day-pattern? ) | season-pattern )?
|
|
54
|
+
date-range =
|
|
55
|
+
element begin-date { date-pattern },
|
|
56
|
+
element end-date { date-pattern }?
|
|
57
|
+
year-pattern =
|
|
58
|
+
attribute year {
|
|
59
|
+
xsd:integer { maxInclusive="-1" }
|
|
60
|
+
| xsd:integer { minInclusive="1" }
|
|
61
|
+
}
|
|
62
|
+
month-pattern =
|
|
63
|
+
attribute month { xsd:integer { minInclusive="1" maxInclusive="12" } }
|
|
64
|
+
day-pattern =
|
|
65
|
+
attribute day { xsd:integer { minInclusive="1" maxInclusive="31" } }
|
|
66
|
+
season-pattern =
|
|
67
|
+
attribute season { text }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
## Simple Variables
|
|
71
|
+
div {
|
|
72
|
+
variable =
|
|
73
|
+
element variable {
|
|
74
|
+
attribute type { cs-variables },
|
|
75
|
+
(simple-variable-pattern | rich-variable-pattern)
|
|
76
|
+
}
|
|
77
|
+
simple-variable-pattern = text
|
|
78
|
+
rich-variable-pattern =
|
|
79
|
+
(text
|
|
80
|
+
| element abbr { text }
|
|
81
|
+
| element b { text }
|
|
82
|
+
| element cite {
|
|
83
|
+
|
|
84
|
+
## cited title which is a part (like an article), and so typically rendered in quotes, rather than italicized
|
|
85
|
+
attribute class { "part" }?,
|
|
86
|
+
text
|
|
87
|
+
}
|
|
88
|
+
| element i { text }
|
|
89
|
+
| element sc { text }
|
|
90
|
+
| element span {
|
|
91
|
+
|
|
92
|
+
## text whose case should not be transformed (as with proper nouns)
|
|
93
|
+
attribute class { "protect" }?,
|
|
94
|
+
text
|
|
95
|
+
}
|
|
96
|
+
| element sup { text }
|
|
97
|
+
| element sub { text })+
|
|
98
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
## Terms
|
|
2
|
+
div {
|
|
3
|
+
cs-terms =
|
|
4
|
+
|
|
5
|
+
## Miscellaneous Terms
|
|
6
|
+
"accessed"
|
|
7
|
+
| "ad"
|
|
8
|
+
| "and"
|
|
9
|
+
| "and others"
|
|
10
|
+
| "anonymous"
|
|
11
|
+
| "at"
|
|
12
|
+
| "bc"
|
|
13
|
+
| "by"
|
|
14
|
+
| "circa"
|
|
15
|
+
| "cited"
|
|
16
|
+
| "edition"
|
|
17
|
+
| "et-al"
|
|
18
|
+
| "forthcoming"
|
|
19
|
+
| "from"
|
|
20
|
+
| "ibid"
|
|
21
|
+
| "in"
|
|
22
|
+
| "in press"
|
|
23
|
+
| "internet"
|
|
24
|
+
| "interview"
|
|
25
|
+
| "letter"
|
|
26
|
+
| "no date"
|
|
27
|
+
| "online"
|
|
28
|
+
| "presented at"
|
|
29
|
+
| "reference"
|
|
30
|
+
| "retrieved"
|
|
31
|
+
|
|
|
32
|
+
## Months
|
|
33
|
+
"month-01"
|
|
34
|
+
| "month-02"
|
|
35
|
+
| "month-03"
|
|
36
|
+
| "month-04"
|
|
37
|
+
| "month-05"
|
|
38
|
+
| "month-06"
|
|
39
|
+
| "month-07"
|
|
40
|
+
| "month-08"
|
|
41
|
+
| "month-09"
|
|
42
|
+
| "month-10"
|
|
43
|
+
| "month-11"
|
|
44
|
+
| "month-12"
|
|
45
|
+
|
|
|
46
|
+
## Seasons
|
|
47
|
+
"season-01"
|
|
48
|
+
| "season-02"
|
|
49
|
+
| "season-03"
|
|
50
|
+
| "season-04"
|
|
51
|
+
|
|
|
52
|
+
## Quotes
|
|
53
|
+
"open-quote"
|
|
54
|
+
| "close-quote"
|
|
55
|
+
| "open-inner-quote"
|
|
56
|
+
| "close-inner-quote"
|
|
57
|
+
|
|
|
58
|
+
## Ordinals
|
|
59
|
+
"ordinal-01"
|
|
60
|
+
| "ordinal-02"
|
|
61
|
+
| "ordinal-03"
|
|
62
|
+
| "ordinal-04"
|
|
63
|
+
|
|
|
64
|
+
## Long Ordinals
|
|
65
|
+
"long-ordinal-01"
|
|
66
|
+
| "long-ordinal-02"
|
|
67
|
+
| "long-ordinal-03"
|
|
68
|
+
| "long-ordinal-04"
|
|
69
|
+
| "long-ordinal-05"
|
|
70
|
+
| "long-ordinal-06"
|
|
71
|
+
| "long-ordinal-07"
|
|
72
|
+
| "long-ordinal-08"
|
|
73
|
+
| "long-ordinal-09"
|
|
74
|
+
| "long-ordinal-10"
|
|
75
|
+
|
|
|
76
|
+
## Contributor Roles
|
|
77
|
+
cs-names
|
|
78
|
+
| "editortranslator"
|
|
79
|
+
|
|
|
80
|
+
## Categories
|
|
81
|
+
info-field-categories
|
|
82
|
+
|
|
|
83
|
+
## Locators
|
|
84
|
+
cs-terms.locator
|
|
85
|
+
| cs-terms.extension
|
|
86
|
+
|
|
87
|
+
## Locators
|
|
88
|
+
cs-terms.locator =
|
|
89
|
+
"book"
|
|
90
|
+
| "chapter"
|
|
91
|
+
| "column"
|
|
92
|
+
| "figure"
|
|
93
|
+
| "folio"
|
|
94
|
+
| "issue"
|
|
95
|
+
| "line"
|
|
96
|
+
| "note"
|
|
97
|
+
| "opus"
|
|
98
|
+
| "page"
|
|
99
|
+
| "paragraph"
|
|
100
|
+
| "part"
|
|
101
|
+
| "section"
|
|
102
|
+
| "sub verbo"
|
|
103
|
+
| "verse"
|
|
104
|
+
| "volume"
|
|
105
|
+
}
|
|
106
|
+
|