Use new citeproc + unicode-collation.
Add command test for unicode-collation.
commitff5a5048091b765ed15750ccb5ea30f9459ba33a
authorJohn MacFarlane <jgm@berkeley.edu>
dateSun 4 Apr 2021, 11:51 (6 years ago)
parent5f79a66
cabal.project+10
@@ -2,6 +2,16 @@ packages: pandoc.cabal
22tests: True
33flags: +embed_data_files
44
5+source-repository-package
6+ type: git
7+ location: https://github.com/jgm/citeproc
8+ tag: b42857be658b8f2649e989e061978e304986f853
9+
10+source-repository-package
11+ type: git
12+ location: https://github.com/jgm/unicode-collation
13+ tag: 9d229a5c6bcbaf53d7022575234eb223cfa90d55
14+
515-- source-repository-package
616-- type: git
717-- location: https://github.com/jgm/citeproc
stack.yaml+5−1
@@ -13,10 +13,14 @@ extra-deps:
1313- skylighting-core-0.10.5.1
1414- skylighting-0.10.5.1
1515- doclayout-0.3.0.2
16−- citeproc-0.3.0.9
1716- texmath-0.12.2
1817- random-1.2.0
1918- xml-conduit-1.9.1.1
19+# - citeproc-0.3.0.9
20+- git: https://github.com/jgm/citeproc
21+ commit: b42857be658b8f2649e989e061978e304986f853
22+- git: https://github.com/jgm/unicode-collation
23+ commit: 9d229a5c6bcbaf53d7022575234eb223cfa90d55
2024ghc-options:
2125 "$locals": -fhide-source-paths -Wno-missing-home-modules
2226resolver: lts-17.5
test/command/unicode-collation.mdnew file+130
@@ -0,0 +1,130 @@
1+```
2+% pandoc --citeproc -t plain
3+---
4+lang: en-US
5+csl: command/apa.csl
6+references:
7+- id: a1
8+ type: book
9+ author:
10+ - family: Ubina
11+ given: A. John
12+ issued: 1985
13+- id: a2
14+ type: book
15+ author:
16+ - family: Über
17+ given: Aglaia
18+ issued: 1996
19+- id: a3
20+ type: book
21+ author:
22+ - family: Oñate
23+ given: José
24+ issued: 1985
25+- id: a4
26+ type: book
27+ author:
28+ - family: Onush
29+ given: Frank
30+ issued: 2002
31+- id: a5
32+ type: book
33+ author:
34+ - family: O'Neil
35+ given: Timothy
36+ issued: 2010
37+---
38+
39+[@a1;@a2;@a3;@a4;@a5]
40+^D
41+(O’Neil, 2010; Oñate, 1985; Onush, 2002; Über, 1996; Ubina, 1985)
42+
43+O’Neil, T. (2010).
44+
45+Oñate, J. (1985).
46+
47+Onush, F. (2002).
48+
49+Über, A. (1996).
50+
51+Ubina, A. J. (1985).
52+```
53+
54+```
55+% pandoc --citeproc -t plain
56+---
57+lang: es
58+csl: command/apa.csl
59+references:
60+- id: a1
61+ type: book
62+ author:
63+ - family: Ubina
64+ given: A. John
65+ issued: 1985
66+- id: a2
67+ type: book
68+ author:
69+ - family: Über
70+ given: Aglaia
71+ issued: 1996
72+- id: a3
73+ type: book
74+ author:
75+ - family: Oñate
76+ given: José
77+ issued: 1985
78+- id: a4
79+ type: book
80+ author:
81+ - family: Onush
82+ given: Frank
83+ issued: 2002
84+- id: a5
85+ type: book
86+ author:
87+ - family: O'Neil
88+ given: Timothy
89+ issued: 2010
90+---
91+
92+[@a1;@a2;@a3;@a4;@a5]
93+^D
94+(O’Neil, 2010; Onush, 2002; Oñate, 1985; Über, 1996; Ubina, 1985)
95+
96+O’Neil, T. (2010).
97+
98+Onush, F. (2002).
99+
100+Oñate, J. (1985).
101+
102+Über, A. (1996).
103+
104+Ubina, A. J. (1985).
105+```
106+
107+```
108+% pandoc -C -t plain
109+---
110+nocite: '@*'
111+lang: fr
112+references:
113+- id: cote
114+ author: cote
115+- id: côte
116+ author: côte
117+- id: coté
118+ author: coté
119+- id: côté
120+ author: côté
121+...
122+^D
123+cote. s. d.
124+
125+côte. s. d.
126+
127+coté. s. d.
128+
129+côté. s. d.
130+```