Closed adunning closed 10 years ago
+++ Andrew Dunning [Aug 14 14 11:13 ]:
With citeproc-js, one can [1]add small caps to a citation using <span style="font-variant:small-caps;"> or
. This isn't, however, currently picked up by pandoc-citeproc.
From looking ath the code, these should be handled by the current version. Can you give a specific command that you think fails, with example input and output?
The system is obviously parsing the tags in some way, the tags themselves do not appear in the output; with the examples provided, the expected text simply ends up being treated as a standard lowercase word without being rendered in small caps.
I see now that putting a plain <span style="font-variant:small-caps;">
command in YAML works fine, but using the same reference from JSON does not work; is it perhaps the escaping of the quotation marks that is causing the problem with the JSON bibliography?
Understanding more clearly now what you meant by 'a specific command', here is a more detailed example:
pandoc -s -F pandoc-citeproc -t plain << EOT
---
references:
- event-place: Binghampton, <sc>ny</sc>
publisher-place: Binghampton, <sc>ny</sc>
collection-number: '118'
page: '143-159'
ISBN: '0866981721'
call-number: PR275 .R4 L58 1995
first-reference-note-number: 1
container-title: 'Literature and Religion in the Later Middle Ages: Philological
Studies in Honor of Siegfried Wenzel'
language: Latin
author:
- family: Goering
given: Joseph
source: toroprod.library.utoronto.ca Library Catalog
id: goering:1995summa
issued:
date-parts:
- - 1995
title: The Summa *Qui bene presunt* and Its Author
type: chapter
collection-title: Medieval and Renaissance Texts and Studies
publisher: Center for Medieval and Early Renaissance Studies
editor:
- family: Newhauser
given: Richard G.
- family: Alford
given: John A.
...
@goering:1995summa
EOT
Goering (1995)
Goering, Joseph. 1995. ‘The Summa Qui bene presunt and Its Author’. In Literature and Religion in the Later Middle Ages: Philological Studies in Honor of Siegfried Wenzel, edited by Richard G. Newhauser and John A. Alford, 143–59. Medieval and Renaissance Texts and Studies 118. Binghampton, NY: Center for Medieval and Early Renaissance Studies.
Goering (1995)
Goering, Joseph. 1995. ‘The Summa Qui bene presunt and Its Author’. In Literature and Religion in the Later Middle Ages: Philological Studies in Honor of Siegfried Wenzel, edited by Richard G. Newhauser and John A. Alford, 143–59. Medieval and Renaissance Texts and Studies 118. Binghampton, ny: Center for Medieval and Early Renaissance Studies.
Here also is are test files for showing the issue in a JSON bibliography, using the following command:
$ pandoc sc-test.md -F pandoc-citeproc -o sc-test.txt -t plain
Rosemann (2007)
Rosemann, Philipp W. 2007. The Story of a Great Medieval Book: Peter Lombard’s Sentences. Peterborough, ON: Broadview Press.
Rosemann (2007)
Rosemann, Philipp W. 2007. The Story of a Great Medieval Book: Peter Lombard’s Sentences. Peterborough, on: Broadview Press.
For contrast, this works correctly:
pandoc -s -F pandoc-citeproc -t plain << EOT
---
references:
- event-place: Peterborough, <span style="font-variant:small-caps;">on</span>
note: "Physical description: 248 p. : ill Subject, personal: Peter Lombard, Bishop
of Paris, ca. 1100-1160. Sententiarum libri IV Subject, corporate: Catholic Church–Doctrines–Early
works to 1800–Textbooks Bibliography note: Includes bibliographical references
and index key: 6127223"
publisher-place: Peterborough, <span style="font-variant:small-caps;">on</span>
ISBN: '9781551117188'
call-number: BX1749 .P4 R673 2007
title-short: The Story of a Great Medieval Book
first-reference-note-number: 1
author:
- family: Rosemann
given: Philipp W.
source: toroprod.library.utoronto.ca Library Catalog
id: rosemann:2007story
issued:
date-parts:
- - 2007
title: "The Story of a Great Medieval Book: Peter Lombard’s Sentences"
type: book
publisher: Broadview Press
...
@rosemann:2007story
EOT
Thanks for this better test case. I can see that the native output being produced is
RawInline (Format "html") "<sc>",Str "ny",RawInline (Format "html") "</sc>"
which comes across fine in HTML, but not, of course, in plain output.
I can't recall why I did it this way, with the raw HTML tags, rather than by using a pandoc SmallCaps
element, which would work correctly in all output formats. I'll look into this; unless there's something I'm forgetting, using a SmallCaps
seems a better solution.
Oh, I see, the sc tags are in your original.
With citeproc-js, one can add small caps to a citation using
<span style="font-variant:small-caps;">
or<sc>
. This isn't, however, currently picked up by pandoc-citeproc.Example entries: