Spellchecking for ConTeXt user on a Windows platform
Dear All, I'm currently using ConTeXt on a windows machine. I'd like to incorporate some sort of automated spell-checking in my workflow. I've seen that there are two options: 1. spell check the .tex source file 2. spell check the resulting pdf For the first option many resources online seem to suggest using *aspell. aspell* is however not maintained for windows and therefore hopelessly out of date. Furthermore many resources online seem to suggest skipping TeX and LaTeX control sequences does not always succeed. So I can only imagine how poorly it deals with ConTeXt control sequences. The second option as shown on this StackExchange https://tex.stackexchange.com/questions/42843/is-there-a-spell-check-package... post suggests using *\loadspellchecklist. *However, on of the arguments to this command includes a text file listing - and brace yourself - *all of the correctly spelled words*. I find this both an amusing and tragic proposition, since I basically need to spellcheck based on *every word in a given language.* What options are out there for someone who would like to do serious spellchecking using ConTeXt on Windows platform, using Powershell as my command line? Regards, Amine
Hi Alain, Yes that's what I mean, spellchecking any content which is not a control sequence. That should include things like section titles and footnotes. Though I'm afraid that might be asking for too much. I'd rather not make it part of my editor (I use vim) and have it as an extra step which I can add to something like a Makefile. Do I need to install all of Libreoffice to gain access to the files you mention or is there an easier way? Amine On Sat, 2 Apr 2022, 13:42 Alain Delmotte via ntg-context, < ntg-context@ntg.nl> wrote:
Hi Amine!
Do you mean spellchecking the content of your document (not the ConTeXt commands)?
This depends on your editor! I use TeXworks and there is spellchecking using the dictionaries of LibreOffice. You should copy the .aff and .dicfiles from "C:\Program Files\LibreOffice\share\extensions\..." subdirectories to the "C:\Users\<yourname>\AppData\Roaming\TUG\TeXworks\dictionaries" folder (created when installing TeXworks), (I think not in subfolders for the different languages). You can then ask for spellchecking when you type or not.
I hope this help,
Alain Le 2/04/2022 à 09:23, A A via ntg-context a écrit :
Dear All,
I'm currently using ConTeXt on a windows machine. I'd like to incorporate some sort of automated spell-checking in my workflow. I've seen that there are two options:
1. spell check the .tex source file 2. spell check the resulting pdf
For the first option many resources online seem to suggest using *aspell. aspell* is however not maintained for windows and therefore hopelessly out of date. Furthermore many resources online seem to suggest skipping TeX and LaTeX control sequences does not always succeed. So I can only imagine how poorly it deals with ConTeXt control sequences.
The second option as shown on this StackExchange https://tex.stackexchange.com/questions/42843/is-there-a-spell-check-package... post suggests using *\loadspellchecklist. *However, on of the arguments to this command includes a text file listing - and brace yourself - *all of the correctly spelled words*. I find this both an amusing and tragic proposition, since I basically need to spellcheck based on *every word in a given language.*
What options are out there for someone who would like to do serious spellchecking using ConTeXt on Windows platform, using Powershell as my command line?
Regards,
Amine
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
Hey Amine, LibreOffice (along with loads of other software) uses Hunspell dictionaries for spell-checking. You can get them here [1]. Hunspell [2] is a spell checker similar to Aspell. (A Windows port is available in the EZWinPorts [3].) Unlike Aspell, it can’t parse TeX files. One way around this is to convert the TeX files into plain text (maybe using Pandoc or DeTeX?) and spell-checking just the text. I tried this, but I found it quite cumbersome and since switched to the build-in spell-checker in my editor. PDF files could probably be spell-checked in a similar way. Tomáš [1]: https://github.com/LibreOffice/dictionaries [2]: http://hunspell.github.io/ [3]: https://www.gnu.org/software/emacs/manual/html_node/efaq-w32/EZWinPorts.html On 02/04/2022 15:19, A A via ntg-context wrote:
Hi Alain,
Yes that's what I mean, spellchecking any content which is not a control sequence. That should include things like section titles and footnotes. Though I'm afraid that might be asking for too much.
I'd rather not make it part of my editor (I use vim) and have it as an extra step which I can add to something like a Makefile.
Do I need to install all of Libreoffice to gain access to the files you mention or is there an easier way?
Amine
participants (3)
-
A A
-
Alain Delmotte
-
Tomáš V