Skip to content

Superscripts processed in CSL JSON but not CSL YAML #147

@adunning

Description

@adunning

Using pandoc 3.6.1, Unicode superscript characters are passed through as expected with a YAML file, but are modified to use formatted superscripts if the references are stored in JSON.

YAML input

This works as expected:

pandoc -C -t plain << EOT

---
references:
- id: quantinReceptionHuguesRichard2010
  author:
    - family: Quantin
      given: Jean-Louis
  citation-key: quantinReceptionHuguesRichard2010
  collection-number: '22'
  collection-title: Bibliotheca Victorina
  container-title: "L’école de Saint-Victor de Paris: Influence et rayonnement du Moyen Âge à l’Époque moderne"
  DOI: 10.1484/M.BV-EB.3.4428
  editor:
    - family: Poirel
      given: Dominique
  event-place: Turnhout
  ISBN: 978-2-503-53562-3
  issued:
    - year: 2010
  language: fr
  page: 601-642
  publisher: Brepols
  publisher-place: Turnhout
  source: Library of Congress ISBN
  title: "La réception d’Hugues et Richard de Saint-Victor au miroir de leurs *Opera omnia* (XVIᵉ–XVIIᵉ siècles)"
  type: chapter
---

Test [@quantinReceptionHuguesRichard2010].

EOT

Result:

Test (Quantin 2010).

Quantin, Jean-Louis. 2010. “La réception d’Hugues et Richard de
Saint-Victor au miroir de leurs Opera omnia (XVIᵉ–XVIIᵉ siècles).” In
L’école de Saint-Victor de Paris: Influence et rayonnement du Moyen Âge
à l’Époque moderne, edited by Dominique Poirel, 601–42. Bibliotheca
Victorina 22. Turnhout: Brepols. https://doi.org/10.1484/M.BV-EB.3.4428.

The result is the identical with an external YAML references file.

JSON input

Running pandoc superscript-json.md -C -t plain with superscript-json.md and
test.json, one instead receives:

Test (Quantin 2010).

Quantin, Jean-Louis. 2010. “La réception d’Hugues et Richard de
Saint-Victor au miroir de leurs Opera omnia (XVI^(e)–XVII^(e) siècles).”
In L’école de Saint-Victor de Paris: Influence et rayonnement du Moyen
Âge à l’Époque moderne, edited by Dominique Poirel, 601–42. Bibliotheca
Victorina 22. Turnhout: Brepols. https://doi.org/10.1484/M.BV-EB.3.4428.

Note the undesirable reformatting of to ^(e).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions