Repository navigation
Latin diacritical characters output incorrectly in Typst mode #105
Copy link
Copy link
Open
Labels
Description
Describe the bug
Latin characters with diacritics output as odd escape sequences rather than regular characters.
From this input:
The following code is generated, and this code does not result in a correct Typst table.
#table(
columns: 3,
align: undefined,
stroke: none,
[\"a],
[\^\i],
[\'e],
[\v s],
[\=o],
[\r a],
[\d r],
[\`u],
[\c s],
[अ],
[京],
[þ],
)Creating this:
rather than this:
As you can see, only the Latin characters are affected, not the CJK or Devanagari. It should just output the exact thing that was input, as Typst can handle special characters like this just fine.
Answer the following questions
- Which browser are you using: Firefox
JSON code
{
"options": {
"imp-unknown": false,
"gen-comma": false,
"gen-surround": false,
"latex-whitespace": false,
"latex-border": true,
"latex-command": false,
"latex-split": false,
"latex-landscape": false,
"latex-float": true,
"fit-table": "none",
"latex-hhline": true,
"latex-hhline-hash": false,
"latex-tabu": false,
"latex-color": false,
"latex-microfix-alignment": false,
"tex-escape": true,
"tex-macro": true,
"html-indent": "tab",
"html-tbody": false,
"html-remove-tag": false,
"csv-separator": ",",
"bbcode-header": "1",
"pretext-indent": "two",
"context-split": false,
"context-landscape": false,
"context-float": true,
"context-indent": "two",
"wml-indent": "four",
"latexEnv": "Auto"
},
"autoBooktabs": false,
"caption": {
"caption": "",
"numbered": false,
"label": ""
},
"cells": [
[
{
"html": "ä"
},
{
"html": "î"
},
{
"html": "é"
}
],
[
{
"html": "š"
},
{
"html": "ō"
},
{
"html": "å"
}
],
[
{
"html": "ṛ"
},
{
"html": "ù"
},
{
"html": "ş"
}
],
[
{
"html": "अ"
},
{
"html": "京"
},
{
"html": "þ"
}
]
],
"version": "3.2"
}** Related Typst code **
The issue is in the generated code not typst.
Reactions are currently unavailable
Activity
keriefie commentedon Jan 10, 2026
The expected output is:
keriefie commentedon Jan 10, 2026
Additionally, this issue does not affect the LaTeX generator.