-
Notifications
You must be signed in to change notification settings - Fork 25
/
jm-chinese-gb7714-2005-numeric.csl
369 lines (366 loc) · 12.5 KB
/
jm-chinese-gb7714-2005-numeric.csl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.1mlz1" demote-non-dropping-particle="sort-only" default-locale="zh-CN">
<info>
<title>JM Chinese Std GB/T 7714-2005 (numeric, Chinese)</title>
<id>http://juris-m.github.io/jm-styles/jm-chinese-gb7714-2005-numeric</id>
<link href="http://juris-m.github.io/jm-styles/jm-chinese-gb7714-2005-numeric" rel="self"/>
<link href="http://gradschool.ustc.edu.cn/ylb/material/xw/wdxz/19.pdf" rel="documentation"/>
<author>
<name>heromyth</name>
<email>[email protected]</email>
</author>
<category citation-format="numeric"/>
<category field="engineering"/>
<category field="generic-base"/>
<category field="science"/>
<summary>This style just partly implemented what the Chinese GB/T 7714-2005 requires.</summary>
<updated>2020-11-28T04:45:10+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale>
<terms>
<term name="edition">第%s版</term>
</terms>
</locale>
<locale xml:lang="zh">
<terms>
<term name="edition">第%s版</term>
</terms>
</locale>
<locale xml:lang="en">
<terms>
<term name="edition"> %s edn.</term>
</terms>
</locale>
<macro name="author">
<names variable="author">
<name initialize-with=" " name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always">
<name-part name="family" text-case="uppercase"/>
</name>
</names>
</macro>
<macro name="trailing-contributor">
<names variable="recipient">
<name name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " text-case="lowercase"/>
<substitute>
<names variable="interviewer"/>
<names variable="composer"/>
<names variable="original-author"/>
</substitute>
</names>
</macro>
<macro name="title">
<text variable="title"/>
</macro>
<macro name="titleField">
<choose>
<if type="report">
<text macro="title"/>
</if>
<else-if type="thesis">
<text macro="title"/>
</else-if>
<else-if type="bill legislation" match="any">
<group delimiter=", ">
<number variable="number"/>
<text macro="title"/>
</group>
</else-if>
<else-if type="book graphic legal_case motion_picture song" match="any">
<text macro="title"/>
</else-if>
<else-if type="paper-conference">
<text macro="title"/>
</else-if>
<else-if type="chapter" match="any">
<text macro="title"/>
</else-if>
<else-if type="webpage">
<text macro="title"/>
</else-if>
<else-if type="patent">
<text macro="title"/>
<number variable="number" prefix=": 中国, "/>
</else-if>
<else>
<text macro="title"/>
</else>
</choose>
</macro>
<macro name="titleFieldSuffix">
<choose>
<if type="report">
<text value="[R]."/>
</if>
<else-if type="thesis">
<text value="[D]."/>
</else-if>
<else-if type="bill legislation" match="any">
<text value="[S]"/>
</else-if>
<else-if type="book graphic legal_case motion_picture song" match="any">
<text value="[M]."/>
</else-if>
<else-if type="paper-conference">
<text value="[C]//"/>
</else-if>
<else-if type="chapter" match="any">
<text value="[G]//"/>
</else-if>
<else-if type="webpage">
<text value="[EB/OL]."/>
</else-if>
<else-if type="patent">
<text value="[P]."/>
</else-if>
<else>
<text value="[J]."/>
</else>
</choose>
</macro>
<macro name="secondaryAuthor">
<names variable="editor">
<name initialize-with=" " name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always">
<name-part name="family" text-case="uppercase"/>
</name>
</names>
<names variable="translator">
<name name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always" suffix=", 译"/>
</names>
</macro>
<macro name="publisherMain">
<choose>
<if type="chapter paper-conference" match="any">
<text variable="container-title" suffix="."/>
</if>
<else-if type="report">
<group delimiter=", ">
<text variable="collection-title"/>
<number variable="number" suffix=","/>
</group>
</else-if>
<else-if type="bill legislation" match="any">
<text variable="container-title" prefix=". "/>
</else-if>
<else>
<text variable="container-title" suffix=","/>
</else>
</choose>
</macro>
<!--
<text variable="event" suffix="event "/>
<text variable="event-place" suffix="event-place "/>
<text variable="original-title" suffix="original-title"/>
-->
<macro name="publisherSupp">
<group delimiter=", ">
<text variable="publisher-place" suffix=":"/>
<group delimiter=", ">
<text variable="publisher"/>
<choose>
<if type="webpage" variable="container-title" match="all">
<date variable="issued" suffix=".">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
</if>
<else-if type="webpage"/>
<else-if type="patent">
<date variable="issued">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
</else-if>
<else-if variable="publisher">
<date variable="issued">
<date-part name="year"/>
</date>
</else-if>
<else-if type="bill legislation" match="any"/>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</group>
<group>
<number variable="volume"/>
<number variable="issue" prefix="(" suffix=")"/>
</group>
</group>
</macro>
<macro name="pageField">
<number variable="page"/>
</macro>
<macro name="referenceDate">
<choose>
<if type="webpage">
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
<date variable="accessed" prefix="[" suffix="]">
<date-part name="year"/>
<date-part name="month" form="numeric-leading-zeros" prefix="-"/>
<date-part name="day" form="numeric-leading-zeros" prefix="-"/>
</date>
</if>
</choose>
</macro>
<macro name="access">
<choose>
<if variable="DOI">
<text variable="DOI" prefix="doi:"/>
</if>
<else-if variable="URL">
<text variable="URL"/>
</else-if>
</choose>
</macro>
<macro name="bib-entry-zh">
<group delimiter="">
<group delimiter=" ">
<group delimiter="">
<group delimiter=" ">
<text macro="author" suffix="."/>
<group delimiter="">
<choose>
<if type="bill legislation paper-conference chapter">
<group delimiter="">
<text macro="titleField"/>
<text macro="titleFieldSuffix"/>
</group>
<!-- join with NO SPACE for bill legislation paper-conference chapter -->
</if>
</choose>
<group delimiter=" ">
<choose>
<if type="bill legislation paper-conference chapter"/>
<else>
<group delimiter="">
<text macro="titleField"/>
<text macro="titleFieldSuffix"/>
</group>
<!-- join with SPACE for report thesis book graphic legal_case motion_picture song webpage patent [others] -->
</else>
</choose>
<text macro="secondaryAuthor" suffix="."/>
<group delimiter="">
<label variable="edition"/>
<number variable="edition"/>
</group>
<group delimiter="">
<text macro="publisherMain"/>
<text macro="publisherSupp"/>
</group>
<choose>
<if type="bill legislation"/>
<else>
<!-- join with SPACE for [others] -->
<text macro="pageField" prefix=": "/>
</else>
</choose>
</group>
<choose>
<if type="bill legislation">
<!-- join with NO SPACE for bill legislation -->
<text macro="pageField" prefix=": "/>
</if>
</choose>
</group>
</group>
<text macro="referenceDate"/>
</group>
<choose>
<if type="webpage" match="any">
<text macro="access" prefix="."/>
</if>
</choose>
</group>
<text macro="trailing-contributor"/>
</group>
</macro>
<macro name="bib-entry-en">
<group delimiter="">
<group delimiter=" ">
<group delimiter=" ">
<group delimiter=" ">
<text macro="author" suffix="."/>
<group delimiter="">
<choose>
<if type="bill legislation paper-conference chapter">
<group delimiter=" ">
<text macro="titleField"/>
<text macro="titleFieldSuffix"/>
</group>
<!-- join with NO SPACE for bill legislation paper-conference chapter -->
</if>
</choose>
<group delimiter=" ">
<choose>
<if type="bill legislation paper-conference chapter"/>
<else>
<group delimiter=" ">
<text macro="titleField"/>
<text macro="titleFieldSuffix"/>
</group>
<!-- join with SPACE for report thesis book graphic legal_case motion_picture song webpage patent [others] -->
</else>
</choose>
<text macro="secondaryAuthor" suffix="."/>
<number variable="edition"/>
<group delimiter=" ">
<text macro="publisherMain"/>
<text macro="publisherSupp"/>
</group>
<choose>
<if type="bill legislation"/>
<else>
<!-- join with SPACE for [others] -->
<text macro="pageField" prefix=": "/>
</else>
</choose>
</group>
<choose>
<if type="bill legislation">
<!-- join with NO SPACE for bill legislation -->
<text macro="pageField" prefix=": "/>
</if>
</choose>
</group>
</group>
<text macro="referenceDate"/>
</group>
<choose>
<if type="webpage" match="any">
<text macro="access" prefix="."/>
</if>
</choose>
</group>
<text macro="trailing-contributor"/>
</group>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number" sort="ascending"/>
</sort>
<layout vertical-align="sup" prefix="[" suffix="]" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography et-al-min="3" et-al-use-first="3" second-field-align="flush" entry-spacing="0">
<layout suffix="." locale="en">
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="bib-entry-en"/>
</layout>
<layout suffix=".">
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="bib-entry-zh"/>
</layout>
</bibliography>
</style>