diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-08-13 19:19:43 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-08-13 19:25:29 -0700 |
commit | 82638ad53bb47acde835083390f8211ac21cda6c (patch) | |
tree | fb45f6ba642cd059e7b2a3e54dfe93aa61071f84 /test/command | |
parent | 15683bb607eb924816adcb7e7884fe722d3d3129 (diff) | |
download | pandoc-82638ad53bb47acde835083390f8211ac21cda6c.tar.gz |
Convert Quoted in bib entries to special Spans...
before passing them off to citeproc.
This ensures that we get proper localization and flipflopping
if, e.g., quotes are used in titles.
Closes jgm/citeproc#87.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/citeproc-87.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/command/citeproc-87.md b/test/command/citeproc-87.md index 42cf7a6ee..4faa6bfba 100644 --- a/test/command/citeproc-87.md +++ b/test/command/citeproc-87.md @@ -14,3 +14,45 @@ references: ^D Foo (Aristotele, s.d., 50: «Disse: "bar"»). «Disse: "baz"» ``` + +For en, the localized quotes match what Quoted would produce, +so the Quoted is passed to citeproc as a Span ("",["csl-quoted"],[]) +and flipflopping and localization occur. +``` +% pandoc -C -t plain -Mlang=en +--- +references: +- id: a + author: + - literal: Aristotele + title: Metafisica et "Physica" + type: article-journal +... + +Foo [@a 50]. +^D +Foo (Aristotele, n.d., 50). + +Aristotele. n.d. “Metafisica Et ‘Physica’.” +``` + +For cs, there is no such match, so the Quoted is left alone +and has the same effect it would have elsewhere in a pandoc document. +``` +% pandoc -C -t plain -Mlang=it +--- +references: +- id: a + author: + - literal: Aristotele + title: Metafisica et "Physica" + type: article-journal +... + +Foo [@a 50]. +^D +Foo (Aristotele, s.d., 50). + +Aristotele. s.d. «Metafisica et “Physica”». +``` + |