Wrong location of footnotes in bidirectional text
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
When a footnote appears directly after a text flow in a different direction to the surrounding text, the footnote number will attach the the inner text and appear on the wrong side of it, at least in most cases where the inner text is semantically considered as a distinct flow from the outer one (for example in quotations).
Examples:
English text ואז עברית#footnote[With an English footnote]
Generates:
This second example is perhaps much more motivating for why this behaviour should not be the default:
טקסט בעברית שמציג מספר כמו 123#footnote[והערת שוליים אחריו]
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 by reproducing the two bidirectional-text examples in Typst and trace the footnote placement and text-direction handling. The issue does not name files or tests, so locate the relevant footnote and bidi layout entry points first. Done means the footnote number appears on the correct side of the distinct text flow in both examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- internationalization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100