Incorrect French smartquotes after `html.frame` with HTML export
Open
Nobody has claimed this yet.
bug
html
text
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
Consider the following code:
#set text(lang: "fr")
"#box(html.frame[foo])"
In the generated HTML, the <body> consists of the following paragraph:
<p>« <span style="display: inline-block">(omitted for brevity)</span>« </p>
Notice how the closing smartquote is in the wrong direction.
When setting text.lang to "en" instead, the closing smartquote is correct:
<p>“<span style="display: inline-block">(omitted for brevity)</span>”</p>
Tested on c7938e93. Paged export works as intended.
Reproduction URL
No response
Operating system
No response
Typst version
- I am using the latest version of Typst
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided Typst reproduction using French text and HTML export, then compare its smartquote output with the English and paged-export examples. Done means the generated HTML uses the correct closing French smartquote direction without changing the correct English or paged behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- internationalization, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100