diff options
-rw-r--r-- | cabal.project | 10 | ||||
-rw-r--r-- | stack.yaml | 6 | ||||
-rw-r--r-- | test/command/unicode-collation.md | 130 |
3 files changed, 145 insertions, 1 deletions
diff --git a/cabal.project b/cabal.project index a0406da3c..fa17a20a6 100644 --- a/cabal.project +++ b/cabal.project @@ -2,6 +2,16 @@ packages: pandoc.cabal tests: True flags: +embed_data_files +source-repository-package + type: git + location: https://github.com/jgm/citeproc + tag: b42857be658b8f2649e989e061978e304986f853 + +source-repository-package + type: git + location: https://github.com/jgm/unicode-collation + tag: 9d229a5c6bcbaf53d7022575234eb223cfa90d55 + -- source-repository-package -- type: git -- location: https://github.com/jgm/citeproc diff --git a/stack.yaml b/stack.yaml index bf8e76239..159bf74b9 100644 --- a/stack.yaml +++ b/stack.yaml @@ -13,10 +13,14 @@ extra-deps: - skylighting-core-0.10.5.1 - skylighting-0.10.5.1 - doclayout-0.3.0.2 -- citeproc-0.3.0.9 - texmath-0.12.2 - random-1.2.0 - xml-conduit-1.9.1.1 +# - citeproc-0.3.0.9 +- git: https://github.com/jgm/citeproc + commit: b42857be658b8f2649e989e061978e304986f853 +- git: https://github.com/jgm/unicode-collation + commit: 9d229a5c6bcbaf53d7022575234eb223cfa90d55 ghc-options: "$locals": -fhide-source-paths -Wno-missing-home-modules resolver: lts-17.5 diff --git a/test/command/unicode-collation.md b/test/command/unicode-collation.md new file mode 100644 index 000000000..a53ed7577 --- /dev/null +++ b/test/command/unicode-collation.md @@ -0,0 +1,130 @@ +``` +% pandoc --citeproc -t plain +--- +lang: en-US +csl: command/apa.csl +references: +- id: a1 + type: book + author: + - family: Ubina + given: A. John + issued: 1985 +- id: a2 + type: book + author: + - family: Über + given: Aglaia + issued: 1996 +- id: a3 + type: book + author: + - family: Oñate + given: José + issued: 1985 +- id: a4 + type: book + author: + - family: Onush + given: Frank + issued: 2002 +- id: a5 + type: book + author: + - family: O'Neil + given: Timothy + issued: 2010 +--- + +[@a1;@a2;@a3;@a4;@a5] +^D +(O’Neil, 2010; Oñate, 1985; Onush, 2002; Über, 1996; Ubina, 1985) + +O’Neil, T. (2010). + +Oñate, J. (1985). + +Onush, F. (2002). + +Über, A. (1996). + +Ubina, A. J. (1985). +``` + +``` +% pandoc --citeproc -t plain +--- +lang: es +csl: command/apa.csl +references: +- id: a1 + type: book + author: + - family: Ubina + given: A. John + issued: 1985 +- id: a2 + type: book + author: + - family: Über + given: Aglaia + issued: 1996 +- id: a3 + type: book + author: + - family: Oñate + given: José + issued: 1985 +- id: a4 + type: book + author: + - family: Onush + given: Frank + issued: 2002 +- id: a5 + type: book + author: + - family: O'Neil + given: Timothy + issued: 2010 +--- + +[@a1;@a2;@a3;@a4;@a5] +^D +(O’Neil, 2010; Onush, 2002; Oñate, 1985; Über, 1996; Ubina, 1985) + +O’Neil, T. (2010). + +Onush, F. (2002). + +Oñate, J. (1985). + +Über, A. (1996). + +Ubina, A. J. (1985). +``` + +``` +% pandoc -C -t plain +--- +nocite: '@*' +lang: fr +references: +- id: cote + author: cote +- id: côte + author: côte +- id: coté + author: coté +- id: côté + author: côté +... +^D +cote. s. d. + +côte. s. d. + +coté. s. d. + +côté. s. d. +``` |