sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 211 forks source link

interactive spellcheck for documents, in particular latex and md #7693

Open haraldschilly opened 1 month ago

haraldschilly commented 1 month ago

The spellchecker just highlights words, but doesn't guide you through all found issues, and there is no possibility to add words to a local dictionary for the non-browser spellchecker.

It would be nice to have a spellcheck frame, which highlights all wrong words, with some context (+/- 1 line) and shows options.

workaround

Run aspell in interactive mode in a terminal frame. Pick the correct mode, e.g. this one for latex.

aspell --mode=tex -d en_US check FILENAME.tex

2024-07-18-spellcheck-latex

williamstein commented 1 month ago

dup of https://github.com/sagemathinc/cocalc/issues/4719

haraldschilly commented 1 month ago

So, I don't think this is a dup, because I don't see how #4719 helps going through all misspelled words. I.e. the root problem this ticket tries to solve is having a long tex file and a few misspelled words. If there are only highlights in the source, you're forced to tediously scroll through everything, likely to miss.

williamstein commented 1 month ago

I'm promoting this to BUG + Hitlist, since if you just hit this, I bet a lot of people do regularly, and it makes cocalc "relatively unusable"....

williamstein commented 1 week ago

I'm changing latex to use the frontend browser's spellcheck. The backend will no longer be used at all. A user can configure whatever language in their browser, it's faster, etc.... and it actually works.

williamstein commented 1 week ago

I'm changing latex to use the frontend browser's spellcheck

More precisely, by default. This was turned off only because of a temporary codemirror bug. It will still be possible to enable backend spell check, though I can't imagine how anyone would be able to figure out how...