cspell-dicts icon indicating copy to clipboard operation
cspell-dicts copied to clipboard

💡: Support Typst

Open memeplex opened this issue 1 year ago • 3 comments

Problem

Typst is a new open-source markup-based typesetting system that is designed to be as powerful as LaTeX and is quickly gaining popularity.

But it doesn't play quite well with cspell. For example, it's trying to spellcheck where it shouldn't:

image

Solution

Spellcheck accordingly to the Typst language grammar.

Alternatives

No response

Additional Context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

memeplex avatar Aug 02 '24 22:08 memeplex

@memeplex,

Dictionaries are used to add support for different file types.

The first step is to add keywords. The second is to add some Regular Expressions to define parts of the language (this is the more difficult part and is not perfect).

Jason3S avatar Aug 03 '24 07:08 Jason3S

I'm going to experiment with my user settings and report the rules I come up with.

On Sat, Aug 3, 2024, 4:59 AM Jason Dent @.***> wrote:

@memeplex https://github.com/memeplex,

Dictionaries are used to add support for different file types.

The first step is to add keywords. The second is to add some Regular Expressions to define parts of the language (this is the more difficult part and is not perfect).

— Reply to this email directly, view it on GitHub https://github.com/streetsidesoftware/cspell-dicts/issues/3432#issuecomment-2266629485, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVWV6NRBOVO4JJPDFHPPVTZPSEWJAVCNFSM6AAAAABL5WNII6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRWGYZDSNBYGU . You are receiving this because you were mentioned.Message ID: @.***>

memeplex avatar Aug 03 '24 14:08 memeplex

I'm open to a Pull Request. Zig was just recently added. Typst is a good option.

Jason3S avatar Nov 18 '25 07:11 Jason3S