git.iko.soy/typeable/pandoc
on master help sign in
Removed tests relating to citation processing.
commit152d2919ab804a6b0de313a987f207bc9501d98d authorJohn MacFarlane <jgm@berkeley.edu> dateSun 25 Aug 2013, 07:41 (13 years ago) parentaf898dd
8 files changed−1367
pandoc.cabal−7 tests/biblio.bib−26 tests/chicago-author-date.csl−458 tests/ieee.csl−302 tests/markdown-citations.chicago-author-date.txt−51 tests/markdown-citations.ieee.txt−51 tests/markdown-citations.mhra.txt−73 tests/mhra.csl−399
pandoc.cabal−7
@@ -123,10 +123,6 @@ Extra-Source-Files:
123123 tests/insert,
124124 tests/lalune.jpg,
125125 tests/movie.jpg,
126− tests/biblio.bib,
127− tests/chicago-author-date.csl,
128− tests/ieee.csl,
129− tests/mhra.csl,
130126 tests/latex-reader.latex,
131127 tests/latex-reader.native,
132128 tests/textile-reader.textile,
@@ -134,9 +130,6 @@ Extra-Source-Files:
134130 tests/markdown-reader-more.txt,
135131 tests/markdown-reader-more.native,
136132 tests/markdown-citations.txt,
137− tests/markdown-citations.chicago-author-date.txt,
138− tests/markdown-citations.mhra.txt,
139− tests/markdown-citations.ieee.txt,
140133 tests/textile-reader.textile,
141134 tests/mediawiki-reader.wiki,
142135 tests/mediawiki-reader.native,
tests/biblio.bibdeleted−26
@@ -1,26 +0,0 @@
1−@Book{item1,
2−author="John Doe",
3−title="First Book",
4−year="2005",
5−address="Cambridge",
6−publisher="Cambridge University Press"
7−}
8−
9−@Article{item2,
10−author="John Doe",
11−title="Article",
12−year="2006",
13−journal="Journal of Generic Studies",
14−volume="6",
15−pages="33-34"
16−}
17−
18−@InCollection{пункт3,
19−author="John Doe and Jenny Roe",
20−title="Why Water Is Wet",
21−booktitle="Third Book",
22−editor="Sam Smith",
23−publisher="Oxford University Press",
24−address="Oxford",
25−year="2007"
26−}
tests/chicago-author-date.csldeleted−458
@@ -1,458 +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" demote-non-dropping-particle="never">
3− <info>
4− <title>Chicago Manual of Style (author-date)</title>
5− <id>http://www.zotero.org/styles/chicago-author-date</id>
6− <link href="http://www.zotero.org/styles/chicago-author-date" rel="self"/>
7− <link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
8− <author>
9− <name>Julian Onions</name>
10− <email>julian.onions@gmail.com</email>
11− </author>
12− <contributor>
13− <name>Sebastian Karcher</name>
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="author-date"/>
21− <category field="generic-base"/>
22− <summary>The author-date variant of the Chicago style</summary>
23− <updated>2013-03-28T05:37:10+00:00</updated>
24− <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
25− </info>
26− <locale>
27− <terms>
28− <term name="editor" form="verb-short">ed.</term>
29− <term name="container-author" form="verb">by</term>
30− <term name="translator" form="verb-short">trans.</term>
31− <term name="translator" form="short">trans.</term>
32− </terms>
33− </locale>
34− <macro name="secondary-contributors">
35− <choose>
36− <if type="chapter paper-conference" match="none">
37− <group delimiter=". ">
38− <names variable="editor translator">
39− <label form="verb" text-case="capitalize-first" suffix=" " plural="never"/>
40− <name and="text" delimiter=", "/>
41− </names>
42− </group>
43− </if>
44− </choose>
45− </macro>
46− <macro name="container-contributors">
47− <choose>
48− <if type="chapter paper-conference" match="any">
49− <group prefix=", " delimiter=", ">
50− <names variable="container-author editor" delimiter=", ">
51− <label form="verb" suffix=" " plural="never"/>
52− <name and="text" delimiter=", "/>
53− </names>
54− </group>
55− </if>
56− </choose>
57− </macro>
58− <macro name="editor">
59− <names variable="editor">
60− <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
61− <label form="short" prefix=", "/>
62− </names>
63− </macro>
64− <macro name="translator">
65− <names variable="translator">
66− <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
67− <label form="short" prefix=", " plural="never"/>
68− </names>
69− </macro>
70− <macro name="recipient">
71− <choose>
72− <if type="personal_communication">
73− <choose>
74− <if variable="genre">
75− <text variable="genre" text-case="capitalize-first"/>
76− </if>
77− <else>
78− <text term="letter" text-case="capitalize-first"/>
79− </else>
80− </choose>
81− </if>
82− </choose>
83− <names variable="recipient" delimiter=", ">
84− <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
85− <name and="text" delimiter=", "/>
86− </names>
87− </macro>
88− <macro name="contributors">
89− <names variable="author">
90− <name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
91− <label form="short" plural="never" prefix=", "/>
92− <substitute>
93− <names variable="editor"/>
94− <names variable="translator"/>
95− <text macro="title"/>
96− </substitute>
97− </names>
98− <text macro="recipient"/>
99− </macro>
100− <macro name="contributors-short">
101− <names variable="author">
102− <name form="short" and="text" delimiter=", " initialize-with=". "/>
103− <substitute>
104− <names variable="editor"/>
105− <names variable="translator"/>
106− <text macro="title"/>
107− </substitute>
108− </names>
109− </macro>
110− <macro name="interviewer">
111− <names variable="interviewer" delimiter=", ">
112− <label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/>
113− <name and="text" delimiter=", "/>
114− </names>
115− </macro>
116− <macro name="archive">
117− <group delimiter=". ">
118− <text variable="archive_location" text-case="capitalize-first"/>
119− <text variable="archive"/>
120− <text variable="archive-place"/>
121− </group>
122− </macro>
123− <macro name="access">
124− <group delimiter=". ">
125− <choose>
126− <if type="graphic report" match="any">
127− <text macro="archive"/>
128− </if>
129− <else-if type="article-magazine article-newspaper bill book chapter graphic legal_case legislation motion_picture paper-conference report song thesis" match="none">
130− <text macro="archive"/>
131− </else-if>
132− </choose>
133− <text variable="DOI" prefix="doi:"/>
134− <choose>
135− <if variable="DOI issued" match="none">
136− <choose>
137− <if variable="URL accessed" match="all">
138− <group delimiter=" ">
139− <text term="accessed" text-case="capitalize-first"/>
140− <date variable="accessed" delimiter=" ">
141− <date-part name="month"/>
142− <date-part name="day"/>
143− </date>
144− </group>
145− </if>
146− </choose>
147− </if>
148− <else-if type="webpage">
149− <date variable="issued" delimiter=" ">
150− <date-part name="month"/>
151− <date-part name="day"/>
152− </date>
153− </else-if>
154− </choose>
155− <choose>
156− <if type="legal_case" match="none">
157− <text variable="URL"/>
158− </if>
159− </choose>
160− </group>
161− </macro>
162− <macro name="title">
163− <choose>
164− <if variable="title" match="none">
165− <choose>
166− <if type="personal_communication" match="none">
167− <text variable="genre" text-case="capitalize-first"/>
168− </if>
169− </choose>
170− </if>
171− <else-if type="bill book graphic legal_case legislation motion_picture song" match="any">
172− <text variable="title" text-case="title" font-style="italic"/>
173− </else-if>
174− <else>
175− <text variable="title" text-case="title" quotes="true"/>
176− </else>
177− </choose>
178− </macro>
179− <macro name="edition">
180− <choose>
181− <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
182− <choose>
183− <if is-numeric="edition">
184− <group delimiter=" " prefix=". ">
185− <number variable="edition" form="ordinal"/>
186− <text term="edition" form="short" strip-periods="true"/>
187− </group>
188− </if>
189− <else>
190− <text variable="edition" prefix=". "/>
191− </else>
192− </choose>
193− </if>
194− <else-if type="chapter paper-conference" match="any">
195− <choose>
196− <if is-numeric="edition">
197− <group delimiter=" " prefix=", ">
198− <number variable="edition" form="ordinal"/>
199− <text term="edition" form="short"/>
200− </group>
201− </if>
202− <else>
203− <text variable="edition" prefix=", "/>
204− </else>
205− </choose>
206− </else-if>
207− </choose>
208− </macro>
209− <macro name="locators">
210− <choose>
211− <if type="article-journal">
212− <text variable="volume" prefix=" "/>
213− <text variable="issue" prefix=" (" suffix=")"/>
214− </if>
215− <else-if type="legal_case">
216− <text variable="volume" prefix=", "/>
217− <text variable="container-title" prefix=" "/>
218− <text variable="page" prefix=" "/>
219− </else-if>
220− <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
221− <group prefix=". " delimiter=". ">
222− <group>
223− <text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
224− <number variable="volume" form="numeric"/>
225− </group>
226− <group>
227− <number variable="number-of-volumes" form="numeric"/>
228− <text term="volume" form="short" prefix=" " plural="true"/>
229− </group>
230− </group>
231− </else-if>
232− <else-if type="chapter paper-conference" match="any">
233− <choose>
234− <if variable="page" match="none">
235− <group prefix=". ">
236− <text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
237− <number variable="volume" form="numeric"/>
238− </group>
239− </if>
240− </choose>
241− </else-if>
242− </choose>
243− </macro>
244− <macro name="locators-chapter">
245− <choose>
246− <if type="chapter paper-conference" match="any">
247− <choose>
248− <if variable="page">
249− <group prefix=", ">
250− <text variable="volume" suffix=":"/>
251− <text variable="page"/>
252− </group>
253− </if>
254− </choose>
255− </if>
256− </choose>
257− </macro>
258− <macro name="locators-article">
259− <choose>
260− <if type="article-newspaper">
261− <group prefix=", " delimiter=", ">
262− <group>
263− <text variable="edition" suffix=" "/>
264− <text term="edition" prefix=" "/>
265− </group>
266− <group>
267− <text term="section" form="short" suffix=" "/>
268− <text variable="section"/>
269− </group>
270− </group>
271− </if>
272− <else-if type="article-journal">
273− <text variable="page" prefix=": "/>
274− </else-if>
275− </choose>
276− </macro>
277− <macro name="point-locators">
278− <choose>
279− <if variable="locator">
280− <choose>
281− <if locator="page" match="none">
282− <choose>
283− <if type="bill book graphic legal_case legislation motion_picture report song" match="any">
284− <choose>
285− <if variable="volume">
286− <group>
287− <text term="volume" form="short" suffix=" "/>
288− <number variable="volume" form="numeric"/>
289− <label variable="locator" form="short" prefix=", " suffix=" "/>
290− </group>
291− </if>
292− <else>
293− <label variable="locator" form="short" suffix=" "/>
294− </else>
295− </choose>
296− </if>
297− <else>
298− <label variable="locator" form="short" suffix=" "/>
299− </else>
300− </choose>
301− </if>
302− <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
303− <number variable="volume" form="numeric" suffix=":"/>
304− </else-if>
305− </choose>
306− <text variable="locator"/>
307− </if>
308− </choose>
309− </macro>
310− <macro name="container-prefix">
311− <text term="in" text-case="capitalize-first"/>
312− </macro>
313− <macro name="container-title">
314− <choose>
315− <if type="chapter paper-conference" match="any">
316− <text macro="container-prefix" suffix=" "/>
317− </if>
318− </choose>
319− <choose>
320− <if type="legal_case" match="none">
321− <text variable="container-title" text-case="title" font-style="italic"/>
322− </if>
323− </choose>
324− </macro>
325− <macro name="publisher">
326− <group delimiter=": ">
327− <text variable="publisher-place"/>
328− <text variable="publisher"/>
329− </group>
330− </macro>
331− <macro name="date">
332− <choose>
333− <if variable="issued">
334− <date variable="issued">
335− <date-part name="year"/>
336− </date>
337− </if>
338− <else-if variable="accessed">
339− <date variable="accessed">
340− <date-part name="year"/>
341− </date>
342− </else-if>
343− </choose>
344− </macro>
345− <macro name="day-month">
346− <date variable="issued">
347− <date-part name="month"/>
348− <date-part name="day" prefix=" "/>
349− </date>
350− </macro>
351− <macro name="collection-title">
352− <text variable="collection-title" text-case="title"/>
353− <text variable="collection-number" prefix=" "/>
354− </macro>
355− <macro name="event">
356− <group>
357− <text term="presented at" suffix=" "/>
358− <text variable="event"/>
359− </group>
360− </macro>
361− <macro name="description">
362− <choose>
363− <if type="interview">
364− <group delimiter=". ">
365− <text macro="interviewer"/>
366− <text variable="medium" text-case="capitalize-first"/>
367− </group>
368− </if>
369− <else>
370− <text variable="medium" text-case="capitalize-first" prefix=". "/>
371− </else>
372− </choose>
373− <choose>
374− <if variable="title" match="none"/>
375− <else-if type="thesis"/>
376− <else>
377− <group delimiter=" " prefix=". ">
378− <text variable="genre" text-case="capitalize-first"/>
379− <choose>
380− <if type="report">
381− <text variable="number"/>
382− </if>
383− </choose>
384− </group>
385− </else>
386− </choose>
387− <!--This is for computer programs only. Localization new to 1.0.1, so may be missing in many locales-->
388− <group delimiter=" " prefix=" (" suffix=")">
389− <text term="version"/>
390− <text variable="version"/>
391− </group>
392− </macro>
393− <macro name="issue">
394− <choose>
395− <if type="article-journal">
396− <text macro="day-month" prefix=" (" suffix=")"/>
397− </if>
398− <else-if type="legal_case">
399− <text variable="authority" prefix=". "/>
400− </else-if>
401− <else-if type="speech">
402− <group prefix=" " delimiter=", ">
403− <text macro="event"/>
404− <text macro="day-month"/>
405− <text variable="event-place"/>
406− </group>
407− </else-if>
408− <else-if type="article-newspaper article-magazine" match="any">
409− <text macro="day-month" prefix=", "/>
410− </else-if>
411− <else>
412− <group prefix=". " delimiter=", ">
413− <choose>
414− <if type="thesis">
415− <text variable="genre" text-case="capitalize-first"/>
416− </if>
417− </choose>
418− <text macro="publisher"/>
419− </group>
420− </else>
421− </choose>
422− </macro>
423− <citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name">
424− <layout prefix="(" suffix=")" delimiter="; ">
425− <group delimiter=", ">
426− <group delimiter=" ">
427− <text macro="contributors-short"/>
428− <text macro="date"/>
429− </group>
430− <text macro="point-locators"/>
431− </group>
432− </layout>
433− </citation>
434− <bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" subsequent-author-substitute="&#8212;&#8212;&#8212;" entry-spacing="0">
435− <sort>
436− <key macro="contributors"/>
437− <key variable="issued"/>
438− </sort>
439− <layout suffix=".">
440− <group delimiter=". ">
441− <text macro="contributors"/>
442− <text macro="date"/>
443− <text macro="title"/>
444− </group>
445− <text macro="description"/>
446− <text macro="secondary-contributors" prefix=". "/>
447− <text macro="container-title" prefix=". "/>
448− <text macro="container-contributors"/>
449− <text macro="edition"/>
450− <text macro="locators-chapter"/>
451− <text macro="locators"/>
452− <text macro="collection-title" prefix=". "/>
453− <text macro="issue"/>
454− <text macro="locators-article"/>
455− <text macro="access" prefix=". "/>
456− </layout>
457− </bibliography>
458−</style>
tests/ieee.csldeleted−302
@@ -1,302 +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" demote-non-dropping-particle="sort-only">
3− <info>
4− <title>IEEE</title>
5− <id>http://www.zotero.org/styles/ieee</id>
6− <link href="http://www.zotero.org/styles/ieee" rel="self"/>
7− <author>
8− <name>Michael Berkowitz</name>
9− <email>mberkowi@gmu.edu</email>
10− </author>
11− <contributor>
12− <name>Julian Onions</name>
13− <email>julian.onions@gmail.com</email>
14− </contributor>
15− <contributor>
16− <name>Rintze Zelle</name>
17− <uri>http://twitter.com/rintzezelle</uri>
18− </contributor>
19− <contributor>
20− <name>Stephen Frank</name>
21− <uri>http://www.zotero.org/sfrank</uri>
22− </contributor>
23− <contributor>
24− <name>Sebastian Karcher</name>
25− </contributor>
26− <category field="engineering"/>
27− <category field="generic-base"/>
28− <category citation-format="numeric"/>
29− <updated>2011-09-15T07:01:02+00:00</updated>
30− <rights>
31− This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License:
32− http://creativecommons.org/licenses/by-sa/3.0/
33− </rights>
34− <link href="http://www.ieee.org/portal/cms_docs_iportals/iportals/publications/authors/transjnl/stylemanual.pdf" rel="documentation"/>
35− <link href="http://www.ieee.org/documents/auinfo07.pdf" rel="documentation"/>
36− </info>
37− <!-- Macros -->
38− <macro name="edition">
39− <choose>
40− <if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
41− <choose>
42− <if is-numeric="edition">
43− <group delimiter=" ">
44− <number variable="edition" form="ordinal"/>
45− <text term="edition" form="short" suffix="." strip-periods="true"/>
46− </group>
47− </if>
48− <else>
49− <text variable="edition" text-case="capitalize-first" suffix="."/>
50− </else>
51− </choose>
52− </if>
53− </choose>
54− </macro>
55− <macro name="issued">
56− <choose>
57− <if type="article-journal report" match="any">
58− <date variable="issued">
59− <date-part name="month" form="short" suffix=" "/>
60− <date-part name="year" form="long"/>
61− </date>
62− </if>
63− <else-if type="bill book graphic legal_case motion_picture song thesis chapter paper-conference" match="any">
64− <date variable="issued">
65− <date-part name="year" form="long"/>
66− </date>
67− </else-if>
68− <else>
69− <date variable="issued">
70− <date-part name="day" form="numeric-leading-zeros" suffix="-"/>
71− <date-part name="month" form="short" suffix="-" strip-periods="true"/>
72− <date-part name="year" form="long"/>
73− </date>
74− </else>
75− </choose>
76− </macro>
77− <macro name="author">
78− <names variable="author">
79− <name initialize-with=". " delimiter=", " and="text"/>
80− <label form="short" prefix=", " text-case="capitalize-first" suffix="." strip-periods="true"/>
81− <substitute>
82− <names variable="editor"/>
83− <names variable="translator"/>
84− </substitute>
85− </names>
86− </macro>
87− <macro name="editor">
88− <names variable="editor">
89− <name initialize-with=". " delimiter=", " and="text"/>
90− <label form="short" prefix=", " text-case="capitalize-first" suffix="." strip-periods="true"/>
91− </names>
92− </macro>
93− <macro name="locators">
94− <group delimiter=", ">
95− <text macro="edition"/>
96− <group delimiter=" ">
97− <text term="volume" form="short" suffix="." strip-periods="true"/>
98− <number variable="volume" form="numeric"/>
99− </group>
100− <group delimiter=" ">
101− <number variable="number-of-volumes" form="numeric"/>
102− <text term="volume" form="short" suffix="." plural="true" strip-periods="true"/>
103− </group>
104− <group delimiter=" ">
105− <text term="issue" form="short" suffix="." strip-periods="true"/>
106− <number variable="issue" form="numeric"/>
107− </group>
108− </group>
109− </macro>
110− <macro name="title">
111− <choose>
112− <if type="bill book graphic legal_case motion_picture song" match="any">
113− <text variable="title" font-style="italic"/>
114− </if>
115− <else>
116− <text variable="title" quotes="true"/>
117− </else>
118− </choose>
119− </macro>
120− <macro name="publisher">
121− <choose>
122− <if type="bill book graphic legal_case motion_picture song chapter paper-conference" match="any">
123− <text variable="publisher-place" suffix=": "/>
124− <text variable="publisher"/>
125− </if>
126− <else>
127− <group delimiter=", ">
128− <text variable="publisher"/>
129− <text variable="publisher-place"/>
130− </group>
131− </else>
132− </choose>
133− </macro>
134− <macro name="event">
135− <choose>
136− <if type="paper-conference">
137− <choose>
138− <!-- Published Conference Paper -->
139− <if variable="container-title">
140− <group delimiter=", ">
141− <text variable="container-title" prefix="in " font-style="italic"/>
142− <text variable="event-place"/>
143− </group>
144− </if>
145− <!-- Unpublished Conference Paper -->
146− <else>
147− <group delimiter=", ">
148− <text variable="event" prefix="presented at the "/>
149− <text variable="event-place"/>
150− </group>
151− </else>
152− </choose>
153− </if>
154− </choose>
155− </macro>
156− <macro name="access">
157− <choose>
158− <if type="webpage">
159− <choose>
160− <if variable="URL">
161− <group delimiter=". ">
162− <text value="[Online]"/>
163− <text variable="URL" prefix="Available: "/>
164− <group prefix="[" suffix="]">
165− <date variable="accessed" prefix="Accessed: ">
166− <date-part name="day" form="numeric-leading-zeros" suffix="-"/>
167− <date-part name="month" form="short" suffix="-" strip-periods="true"/>
168− <date-part name="year" form="long"/>
169− </date>
170− </group>
171− </group>
172− </if>
173− </choose>
174− </if>
175− </choose>
176− </macro>
177− <macro name="page">
178− <group>
179− <label variable="page" form="short" suffix=". " strip-periods="true"/>
180− <text variable="page"/>
181− </group>
182− </macro>
183− <!-- Citation -->
184− <citation collapse="citation-number">
185− <sort>
186− <key variable="citation-number"/>
187− </sort>
188− <layout prefix="[" suffix="]" delimiter="], [">
189− <text variable="citation-number"/>
190− </layout>
191− </citation>
192− <!-- Bibliography -->
193− <bibliography entry-spacing="0" second-field-align="flush">
194− <layout suffix=".">
195− <!-- Citation Number -->
196− <text variable="citation-number" prefix="[" suffix="]"/>
197− <!-- Author(s) -->
198− <text macro="author" prefix=" " suffix=", "/>
199− <!-- Rest of Citation -->
200− <choose>
201− <!-- Specific Formats -->
202− <if type="article-journal">
203− <group delimiter=", ">
204− <text macro="title"/>
205− <text variable="container-title" font-style="italic" form="short"/>
206− <text macro="locators"/>
207− <text macro="page"/>
208− <text macro="issued"/>
209− </group>
210− </if>
211− <else-if type="paper-conference">
212− <group delimiter=", ">
213− <text macro="title"/>
214− <text macro="event"/>
215− <text macro="issued"/>
216− <text macro="locators"/>
217− <text macro="page"/>
218− </group>
219− </else-if>
220− <else-if type="report">
221− <group delimiter=", ">
222− <text macro="title"/>
223− <text macro="publisher"/>
224− <group delimiter=" ">
225− <text variable="genre"/>
226− <text variable="number"/>
227− </group>
228− <text macro="issued"/>
229− </group>
230− </else-if>
231− <else-if type="thesis">
232− <group delimiter=", ">
233− <text macro="title"/>
234− <text variable="genre"/>
235− <text macro="publisher"/>
236− <text macro="issued"/>
237− </group>
238− </else-if>
239− <else-if type="webpage">
240− <group delimiter=", " suffix=". ">
241− <text macro="title"/>
242− <text variable="container-title" font-style="italic"/>
243− <text macro="issued"/>
244− </group>
245− <text macro="access"/>
246− </else-if>
247− <else-if type="patent">
248− <text macro="title" suffix=", "/>
249− <text variable="number" prefix="U.S. Patent "/>
250− <text macro="issued"/>
251− </else-if>
252− <!-- Generic/Fallback Formats -->
253− <else-if type="bill book graphic legal_case motion_picture report song" match="any">
254− <group delimiter=", " suffix=". ">
255− <text macro="title"/>
256− <text macro="locators"/>
257− </group>
258− <group delimiter=", ">
259− <text macro="publisher"/>
260− <text macro="issued"/>
261− <text macro="page"/>
262− </group>
263− </else-if>
264− <else-if type="article-magazine article-newspaper broadcast interview manuscript map patent personal_communication song speech thesis webpage" match="any">
265− <group delimiter=", ">
266− <text macro="title"/>
267− <text variable="container-title" font-style="italic"/>
268− <text macro="locators"/>
269− <text macro="publisher"/>
270− <text macro="page"/>
271− <text macro="issued"/>
272− </group>
273− </else-if>
274− <else-if type="chapter paper-conference" match="any">
275− <group delimiter=", " suffix=", ">
276− <text macro="title"/>
277− <text variable="container-title" prefix="in " font-style="italic"/>
278− <text macro="locators"/>
279− </group>
280− <text macro="editor" suffix=" "/>
281− <group delimiter=", ">
282− <text macro="publisher"/>
283− <text macro="issued"/>
284− <text macro="page"/>
285− </group>
286− </else-if>
287− <else>
288− <group delimiter=", " suffix=". ">
289− <text macro="title"/>
290− <text variable="container-title" font-style="italic"/>
291− <text macro="locators"/>
292− </group>
293− <group delimiter=", ">
294− <text macro="publisher"/>
295− <text macro="page"/>
296− <text macro="issued"/>
297− </group>
298− </else>
299− </choose>
300− </layout>
301− </bibliography>
302−</style>
tests/markdown-citations.chicago-author-date.txtdeleted−51
@@ -1,51 +0,0 @@
1−Pandoc with citeproc-hs
2−=======================
3−
4−- ([CSL BIBLIOGRAPHIC DATA ERROR: reference "nonexistent" not found.])
5−
6−- ([CSL BIBLIOGRAPHIC DATA ERROR: reference "nonexistent" not found.])
7−
8−- Doe (2005) says blah.
9−
10−- Doe (2005, 30) says blah.
11−
12−- Doe (2005, 30, with suffix) says blah.
13−
14−- Doe (2005; 2006, 30; see also Doe and Roe 2007) says blah.
15−
16−- In a note.[^1]
17−
18−- A citation group (see Doe 2005, chap. 3; also Doe and Roe 2007, 34–35).
19−
20−- Another one (see Doe 2005, 34–35).
21−
22−- And another one in a note.[^2]
23−
24−- Citation with a suffix and locator (Doe 2005, 33, 35–37, and nowhere else).
25−
26−- Citation with suffix only (Doe 2005 and nowhere else).
27−
28−- Now some modifiers.[^3]
29−
30−- With some markup (*see* Doe 2005, 32).
31−
32−<div class="references">
33−
34−References
35−==========
36−
37−“Nonexistent Not Found!”
38−
39−Doe, John. 2005. *First Book*. Cambridge: Cambridge University Press.
40−
41−———. 2006. “Article.” *Journal of Generic Studies* 6: 33–34.
42−
43−Doe, John, and Jenny Roe. 2007. “Why Water Is Wet.” In *Third Book*, edited by Sam Smith. Oxford: Oxford University Press.
44−
45−</div>
46−
47−[^1]: Doe and Roe (2007, 12) and a citation without locators (Doe and Roe 2007).
48−
49−[^2]: Some citations (see Doe 2005, chap. 3; Doe and Roe 2007; Doe 2006).
50−
51−[^3]: Like a citation without author: (2005), and now Doe with a locator (2006, 44).
tests/markdown-citations.ieee.txtdeleted−51
@@ -1,51 +0,0 @@
1−Pandoc with citeproc-hs
2−=======================
3−
4−- []
5−
6−-
7−
8−- Reference 2 says blah.
9−
10−- Reference 2 says blah.
11−
12−- Reference 2 says blah.
13−
14−- Reference 2 [4] says blah.
15−
16−- In a note.[^1]
17−
18−- A citation group [2], [4].
19−
20−- Another one [2].
21−
22−- And another one in a note.[^2]
23−
24−- Citation with a suffix and locator [2].
25−
26−- Citation with suffix only [2].
27−
28−- Now some modifiers.[^3]
29−
30−- With some markup [2].
31−
32−<div class="references">
33−
34−References
35−==========
36−
37−[1]“nonexistent not found!” .
38−
39−[2] J. Doe, *First Book*. Cambridge: Cambridge University Press, 2005.
40−
41−[3] J. Doe, “Article,” *Journal of Generic Studies*, vol. 6, pp. 33–34, 2006.
42−
43−[4] J. Doe and J. Roe, “Why Water Is Wet,” in *Third Book*, S. Smith, Ed. Oxford: Oxford University Press, 2007.
44−
45−</div>
46−
47−[^1]: Reference 4 and a citation without locators [4].
48−
49−[^2]: Some citations [2–4].
50−
51−[^3]: Like a citation without author: [2], and now Doe with a locator [3].
tests/markdown-citations.mhra.txtdeleted−73
@@ -1,73 +0,0 @@
1−Pandoc with citeproc-hs
2−=======================
3−
4−- [^1]
5−
6−- [^2]
7−
8−- John Doe[^3] says blah.
9−
10−- Doe[^4] says blah.
11−
12−- Doe[^5] says blah.
13−
14−- Doe[^6] says blah.
15−
16−- In a note.[^7]
17−
18−- A citation group.[^8]
19−
20−- Another one.[^9]
21−
22−- And another one in a note.[^10]
23−
24−- Citation with a suffix and locator.[^11]
25−
26−- Citation with suffix only.[^12]
27−
28−- Now some modifiers.[^13]
29−
30−- With some markup.[^14]
31−
32−<div class="references">
33−
34−References
35−==========
36−
37−Doe, John, ‘Article’, *Journal of Generic Studies*, 6 (2006), 33–34.
38−
39−---, *First Book* (Cambridge: Cambridge University Press, 2005).
40−
41−Doe, John, and Jenny Roe, ‘Why Water Is Wet’, in *Third Book*, ed. by Sam Smith (Oxford: Oxford University Press, 2007).
42−
43−‘Nonexistent Not Found!’.
44−
45−</div>
46−
47−[^1]: [CSL BIBLIOGRAPHIC DATA ERROR: reference "nonexistent" not found.].
48−
49−[^2]: [CSL STYLE ERROR: reference with no printed form.].
50−
51−[^3]: *First Book* (Cambridge: Cambridge University Press, 2005).
52−
53−[^4]: *First Book*, p. 30.
54−
55−[^5]: *First Book*, p. 30, with suffix.
56−
57−[^6]: *First Book*; ‘Article’, *Journal of Generic Studies*, 6 (2006), 33–34 (p. 30); see also John Doe and Jenny Roe, ‘Why Water Is Wet’, in *Third Book*, ed. by Sam Smith (Oxford: Oxford University Press, 2007).
58−
59−[^7]: Doe and Roe, p. 12 and a citation without locators Doe and Roe.
60−
61−[^8]: See Doe, *First Book*, chap. 3; also Doe and Roe, pp. 34–35.
62−
63−[^9]: See Doe, *First Book*, pp. 34–35.
64−
65−[^10]: Some citations see Doe, *First Book*, chap. 3; Doe and Roe; Doe, ‘Article’, 33–34.
66−
67−[^11]: Doe, *First Book*, pp. 33, 35–37, and nowhere else.
68−
69−[^12]: Doe, *First Book* and nowhere else.
70−
71−[^13]: Like a citation without author: *First Book*, and now Doe with a locator ‘Article’, 33–34 (p. 44).
72−
73−[^14]: *See* Doe, *First Book*, p. 32.
tests/mhra.csldeleted−399
@@ -1,399 +0,0 @@
1−<?xml version="1.0" encoding="utf-8"?>
2−<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
3− <info>
4− <title>Modern Humanities Research Association (Note with Bibliography)</title>
5− <id>http://www.zotero.org/styles/mhra</id>
6− <link href="http://www.zotero.org/styles/mhra" rel="self"/>
7− <link href="http://www.mhra.org.uk/Publications/Books/StyleGuide/download.shtml" rel="documentation"/>
8− <author>
9− <name>Rintze Zelle</name>
10− <uri>http://twitter.com/rintzezelle</uri>
11− </author>
12− <contributor>
13− <name>Sebastian Karcher</name>
14− </contributor>
15− <summary>MHRA format with full notes and bibliography</summary>
16− <category field="generic-base"/>
17− <category citation-format="note"/>
18− <updated>2011-08-18T16:08:33+00:00</updated>
19− <rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
20− </info>
21− <locale xml:lang="en">
22− <terms>
23− <term name="et-al">and others</term>
24− <term name="editor" form="verb-short">ed. by</term>
25− <term name="edition" form="short">edn</term>
26− <term name="translator" form="verb-short">trans. by</term>
27− </terms>
28− </locale>
29− <macro name="author">
30− <names variable="author">
31− <name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
32− <label form="short" prefix=", " suffix="."/>
33− <substitute>
34− <names variable="editor"/>
35− <names variable="translator"/>
36− <text macro="title-note"/>
37− </substitute>
38− </names>
39− </macro>
40− <macro name="contributors-note">
41− <names variable="author">
42− <name and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never"/>
43− </names>
44− <text macro="recipient-note"/>
45− </macro>
46− <macro name="title-note">
47− <choose>
48− <if type="bill book graphic legal_case motion_picture report song" match="any">
49− <text variable="title" font-style="italic" text-case="title"/>
50− </if>
51− <else>
52− <text variable="title" prefix="‘" suffix="’" text-case="title"/>
53− </else>
54− </choose>
55− </macro>
56− <macro name="title-short">
57− <choose>
58− <if disambiguate="true">
59− <choose>
60− <if type="bill book graphic legal_case motion_picture report song" match="any">
61− <text variable="title" font-style="italic" text-case="title" form="short"/>
62− </if>
63− <else>
64− <text variable="title" prefix="‘" suffix="’" text-case="title" form="short"/>
65− </else>
66− </choose>
67− </if>
68− </choose>
69− </macro>
70− <macro name="editor-translator">
71− <group delimiter=", ">
72− <names variable="editor" delimiter=", ">
73− <label form="verb-short" text-case="lowercase" suffix=" "/>
74− <name and="text" delimiter=", " delimiter-precedes-last="never"/>
75− </names>
76− <choose>
77− <if variable="author editor" match="any">
78− <names variable="translator" delimiter=", ">
79− <label form="verb-short" text-case="lowercase" suffix=" "/>
80− <name and="text" delimiter=", " delimiter-precedes-last="never"/>
81− </names>
82− </if>
83− </choose>
84− </group>
85− </macro>
86− <macro name="collection-title">
87− <text variable="collection-title" text-case="title"/>
88− <text variable="collection-number" prefix=", "/>
89− </macro>
90− <macro name="locators-note">
91− <choose>
92− <if type="article-journal">
93− <text variable="volume"/>
94− </if>
95− <else-if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
96− <group delimiter=", ">
97− <text macro="edition-note"/>
98− <group>
99− <number variable="number-of-volumes" form="numeric"/>
100− <text term="volume" form="short" prefix=" " plural="true"/>
101− </group>
102− </group>
103− </else-if>
104− </choose>
105− </macro>
106− <macro name="volume">
107− <choose>
108− <if type="article-journal">
109− <text variable="volume"/>
110− </if>
111− <else-if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
112− <group delimiter=", ">
113− <text macro="edition-note"/>
114− <group>
115− <number variable="number-of-volumes" form="numeric"/>
116− <text term="volume" form="short" prefix=" " plural="true"/>
117− </group>
118− </group>
119− </else-if>
120− </choose>
121− </macro>
122− <macro name="issue-note">
123− <choose>
124− <if type="article-journal">
125− <choose>
126− <if variable="volume">
127− <text macro="issued" prefix=" (" suffix=")"/>
128− </if>
129− <else>
130− <text macro="issued" prefix=", "/>
131− </else>
132− </choose>
133− </if>
134− <else-if variable="publisher-place publisher" match="any">
135− <group prefix=" (" suffix=")" delimiter=", ">
136− <group delimiter=" ">
137− <choose>
138− <if variable="title" match="none"/>
139− <else-if type="thesis speech" match="any">
140− <text variable="genre" prefix="unpublished "/>
141− </else-if>
142− </choose>
143− <text macro="event"/>
144− </group>
145− <text macro="publisher"/>
146− <text macro="issued"/>
147− </group>
148− </else-if>
149− <else>
150− <text macro="issued" prefix=", "/>
151− </else>
152− </choose>
153− </macro>
154− <macro name="locators-specific-note">
155− <choose>
156− <if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
157− <choose>
158− <if is-numeric="volume">
159− <number variable="volume" form="roman" font-variant="small-caps"/>
160− </if>
161− </choose>
162− </if>
163− </choose>
164− </macro>
165− <macro name="container-title-note">
166− <choose>
167− <if type="chapter paper-conference" match="any">
168− <text term="in" text-case="lowercase" suffix=" "/>
169− </if>
170− </choose>
171− <text variable="container-title" font-style="italic" text-case="title"/>
172− </macro>
173− <macro name="edition-note">
174− <choose>
175− <if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
176− <choose>
177− <if is-numeric="edition">
178− <group delimiter=" ">
179− <number variable="edition" form="ordinal"/>
180− <text term="edition" form="short"/>
181− </group>
182− </if>
183− <else>
184− <text variable="edition"/>
185− </else>
186− </choose>
187− </if>
188− </choose>
189− </macro>
190− <macro name="editor-note">
191− <names variable="editor">
192− <name and="text" sort-separator=", " delimiter=", "/>
193− <label form="short" prefix=", " suffix="."/>
194− </names>
195− </macro>
196− <macro name="translator-note">
197− <names variable="translator">
198− <name and="text" sort-separator=", " delimiter=", "/>
199− <label form="verb-short" prefix=", " suffix="."/>
200− </names>
201− </macro>
202− <macro name="recipient-note">
203− <names variable="recipient" delimiter=", ">
204− <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
205− <name and="text" delimiter=", "/>
206− </names>
207− </macro>
208− <macro name="recipient-short">
209− <names variable="recipient">
210− <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
211− <name form="short" and="text" delimiter=", "/>
212− </names>
213− </macro>
214− <macro name="contributors-short">
215− <names variable="author">
216− <name form="short" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="never"/>
217− <substitute>
218− <names variable="editor"/>
219− <names variable="translator"/>
220− </substitute>
221− </names>
222− <text macro="recipient-short"/>
223− </macro>
224− <macro name="interviewer-note">
225− <names variable="interviewer" delimiter=", ">
226− <label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
227− <name and="text" delimiter=", "/>
228− </names>
229− </macro>
230− <macro name="locators-newspaper">
231− <choose>
232− <if type="article-newspaper">
233− <group delimiter=", ">
234− <group>
235− <text variable="edition" suffix=" "/>
236− <text term="edition" prefix=" "/>
237− </group>
238− <group>
239− <text term="section" suffix=" "/>
240− <text variable="section"/>
241− </group>
242− </group>
243− </if>
244− </choose>
245− </macro>
246− <macro name="event">
247− <group>
248− <text term="presented at" suffix=" "/>
249− <text variable="event"/>
250− </group>
251− </macro>
252− <macro name="publisher">
253− <group delimiter=": ">
254− <text variable="publisher-place"/>
255− <text variable="publisher"/>
256− </group>
257− </macro>
258− <macro name="issued">
259− <choose>
260− <if type="graphic report article-newspaper" match="any">
261− <date variable="issued">
262− <date-part name="day" suffix=" "/>
263− <date-part name="month" suffix=" "/>
264− <date-part name="year"/>
265− </date>
266− </if>
267− <else-if type="bill book graphic legal_case motion_picture report song thesis chapter paper-conference" match="any">
268− <date variable="issued">
269− <date-part name="year"/>
270− </date>
271− </else-if>
272− <else>
273− <date variable="issued">
274− <date-part name="year"/>
275− </date>
276− </else>
277− </choose>
278− </macro>
279− <macro name="pages">
280− <choose>
281− <if type="article-journal">
282− <text variable="page" prefix=", "/>
283− </if>
284− <else>
285− <choose>
286− <if variable="volume">
287− <text variable="page" prefix=", "/>
288− </if>
289− <else>
290− <label variable="page" form="short" prefix=", " suffix=" "/>
291− <text variable="page"/>
292− </else>
293− </choose>
294− </else>
295− </choose>
296− </macro>
297− <macro name="point-locators">
298− <text macro="pages"/>
299− <choose>
300− <if variable="page">
301− <group prefix=" (" suffix=")">
302− <label variable="locator" form="short" suffix=" "/>
303− <text variable="locator"/>
304− </group>
305− </if>
306− <else>
307− <label variable="locator" form="short" prefix=", " suffix=" "/>
308− <text variable="locator"/>
309− </else>
310− </choose>
311− </macro>
312− <macro name="archive-note">
313− <group delimiter=", ">
314− <text variable="archive_location"/>
315− <text variable="archive"/>
316− <text variable="archive-place"/>
317− </group>
318− </macro>
319− <macro name="access-note">
320− <group delimiter=", ">
321− <choose>
322− <if type="graphic report" match="any">
323− <text macro="archive-note" prefix=", "/>
324− </if>
325− <else-if type="bill book graphic legal_case motion_picture report song article-journal article-magazine article-newspaper thesis chapter paper-conference" match="none">
326− <text macro="archive-note" prefix=", "/>
327− </else-if>
328− </choose>
329− </group>
330− <choose>
331− <if variable="DOI">
332− <text variable="DOI" prefix=" &lt;doi:" suffix="&gt;"/>
333− </if>
334− <else>
335− <choose>
336− <if variable="URL">
337− <text variable="URL" prefix=" &lt;" suffix="&gt;"/>
338− <group prefix=" [" suffix="]">
339− <text term="accessed" text-case="lowercase"/>
340− <date variable="accessed">
341− <date-part name="day" prefix=" "/>
342− <date-part name="month" prefix=" "/>
343− <date-part name="year" prefix=" "/>
344− </date>
345− </group>
346− </if>
347− </choose>
348− </else>
349− </choose>
350− </macro>
351− <citation et-al-min="4" et-al-use-first="1" et-al-subsequent-min="4" et-al-subsequent-use-first="1" disambiguate-add-names="true" disambiguate-add-givenname="true">
352− <layout prefix="" suffix="." delimiter="; ">
353− <choose>
354− <if position="subsequent">
355− <text macro="contributors-short"/>
356− <text macro="title-short" prefix=", "/>
357− <text macro="locators-specific-note" prefix=", "/>
358− <text macro="point-locators"/>
359− </if>
360− <else>
361− <group delimiter=", ">
362− <text macro="contributors-note"/>
363− <text macro="title-note"/>
364− <text macro="container-title-note"/>
365− <text macro="editor-translator"/>
366− <text macro="collection-title"/>
367− <text macro="locators-note"/>
368− </group>
369− <text macro="issue-note"/>
370− <text macro="locators-specific-note" prefix=", "/>
371− <text macro="locators-newspaper" prefix=", "/>
372− <text macro="point-locators"/>
373− <text macro="access-note"/>
374− </else>
375− </choose>
376− </layout>
377− </citation>
378− <bibliography hanging-indent="true" et-al-min="6" et-al-use-first="6" subsequent-author-substitute="---">
379− <sort>
380− <key macro="author"/>
381− <key variable="title"/>
382− </sort>
383− <layout suffix=".">
384− <group delimiter=", ">
385− <text macro="author"/>
386− <text macro="title-note"/>
387− <text macro="container-title-note"/>
388− <text macro="editor-translator"/>
389− <text macro="collection-title"/>
390− <text macro="volume"/>
391− </group>
392− <text macro="issue-note"/>
393− <text macro="locators-specific-note" prefix=", "/>
394− <text macro="locators-newspaper" prefix=", "/>
395− <text macro="pages"/>
396− <text macro="access-note"/>
397− </layout>
398− </bibliography>
399−</style>