-
-
Notifications
You must be signed in to change notification settings - Fork 2
Spell checker does not respect text.lang if the *.typ is not included in main.typ #675
Copy link
Copy link
Open
Labels
bugSomething isn't working.Something isn't working.improveRelated to the diagnostics, comments, and spellcheckRelated to the diagnostics, comments, and spellcheckspellcheckAbout spellcheck.About spellcheck.
Description
Description
All Chinese characters are considered misspellings if text.lang ≠ "zh".
If I am previewing an English main.typ, and having another Chinese side.typ that is not included/imported in main.typ, then the content of side.typ will be considered misspellings even though I set text(lang: "zh") in side.typ.
// main.typ
#set text(lang: "en")
English
// #set text(lang: "zh")// side.typ
#set text(lang: "zh")
中文
The behavior is not stable. As shown in the following screenshots, the spell checking result of side.typ depends on whether and where I write #set text(lang: "zh") in main.typ.
Reproduction URL
https://typst.app/project/rt7RCtMFgDLlFw4duOkfmE
Browsers
Firefox
OS
Windows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't working.Something isn't working.improveRelated to the diagnostics, comments, and spellcheckRelated to the diagnostics, comments, and spellcheckspellcheckAbout spellcheck.About spellcheck.