Skip to content

Latin diacritical characters output incorrectly in Typst mode #105

Open

Description

@keriefie

Describe the bug
Latin characters with diacritics output as odd escape sequences rather than regular characters.

From this input:

Image

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:

Image

rather than this:

Image

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

  1. 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.

Activity

  1. keriefie commented on Jan 10, 2026

    @keriefie
    Author

    The expected output is:

    #table(
      columns: 3,
      align: left,
      stroke: none,
      [ä],
      [î],
      [é],
      [š],
      [ō],
      [å],
      [ṛ],
      [ù],
      [ş],
      [अ],
      [京],
      [þ],
    )
  2. keriefie commented on Jan 10, 2026

    @keriefie
    Author

    Additionally, this issue does not affect the LaTeX generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions