-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issue: Typst support #147
Comments
Kinda blocked, as I'd prefer not vendoring and only using grammars part of the tree-sitter org. Otherwise, it can get pretty painful with updates and keeping things in sync (see HCL support in srgn). |
For spell checking I was wondering if it might be sufficient to strip out the markup, similar to what the TeX tool |
For me the interesting use case would be CI Pipelines. In that case it would be interesting be able to map the spelling error to the line and column of the file in which it occurred. But for that |
Thanks for your thoughts! I had considered skipping the whole part about "if srgn is piped into something that is not a terminal, use machine-friendly/parseable output" and instead just offer JSON output. That's much more flexible, and (probably) easier to implement at the same time. It avoids work on my side (coming up with a parse-friendly format), but also allows full flexibility on the reading side of the pipe. It could look like (work on srgn is currently slow, sorry!) |
I am not opposed to json. Might very well be more flexible when transformed with jq. The blocker on my side ist that I have not found a spell checking tool gives me simple enough output that can be further processed easily. So no need to apologise for slow development. |
TODO:
richer Typst support, WIP at https://github.com/alexpovel/srgn/tree/typst
make it useful with type checking (
aspell
), for which thetext
node type seems most usefulwhich requires piping into aspell, for which srgn currently doesn't have good support. Probably needs refactoring the crappy
apply
function:srgn/src/main.rs
Line 568 in 9238fc1
so its output is something like (command run on commit 47be5f0)
e.g. (numbers made up)
i.e., it doesn't print non-
text
nodes such as#link(
, as it currently does:cc @ju6ge
The text was updated successfully, but these errors were encountered: