Skip to content

smart quotes do not honor the 'lang' specifcation for pdf via typst after starting with pandoc 3.8 #11256

@baikal

Description

@baikal

Explain the problem.
Starting with pandoc 3.8, smart quotes do no longer honor the 'lang' specifcation when creating pdf via '--pdf-engine typst'. It did work till 3.7.0.2, starting with 3.8 up to the latest (3.8.2.1) it does not anymore.

test.md:

---
lang: de-CH
papersize: a4
---

# Titel
Ein "Text" mit Quotes.

pandoc-3702 -s -o test.pdf test.md --pdf-engine typst creates a pdf with nice & correct quotes: Ein «Text» mit Quotes
pandoc-3821 -s -o test.pdf test.md --pdf-engine typst creates a pdf with nice but english quotes: Ein “Text” mit Quotes.

Interestingly, when creating an intermediate .typ file pandoc-3xxx -s -o test.typ test.md followed by typst compile test.typ, both version result in nice & correct quotes: Ein «Text» mit Quotes. Although the .typ files differ quite a bit between these pandoc versions, the result after typst compile is identical.

Pandoc version?
3.8.2.1 vs 3.7.0.2 with typst 0.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions