ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Spellchecking for ConTeXt user on a Windows platform
@ 2022-04-02  7:23 A A via ntg-context
  2022-04-02 11:01 ` Alain Delmotte via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: A A via ntg-context @ 2022-04-02  7:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: A A


[-- Attachment #1.1: Type: text/plain, Size: 1223 bytes --]

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-for-latex>
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

[-- Attachment #1.2: Type: text/html, Size: 1452 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Spellchecking for ConTeXt user on a Windows platform
  2022-04-02  7:23 Spellchecking for ConTeXt user on a Windows platform A A via ntg-context
@ 2022-04-02 11:01 ` Alain Delmotte via ntg-context
  2022-04-02 13:19   ` A A via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: Alain Delmotte via ntg-context @ 2022-04-02 11:01 UTC (permalink / raw)
  To: A A via ntg-context; +Cc: Alain Delmotte

[-- Attachment #1: Type: text/html, Size: 4381 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Spellchecking for ConTeXt user on a Windows platform
  2022-04-02 11:01 ` Alain Delmotte via ntg-context
@ 2022-04-02 13:19   ` A A via ntg-context
  2022-04-02 13:58     ` Tomáš V via ntg-context
  0 siblings, 1 reply; 4+ messages in thread
From: A A via ntg-context @ 2022-04-02 13:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: A A


[-- Attachment #1.1: Type: text/plain, Size: 3592 bytes --]

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-for-latex> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 6102 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Spellchecking for ConTeXt user on a Windows platform
  2022-04-02 13:19   ` A A via ntg-context
@ 2022-04-02 13:58     ` Tomáš V via ntg-context
  0 siblings, 0 replies; 4+ messages in thread
From: Tomáš V via ntg-context @ 2022-04-02 13:58 UTC (permalink / raw)
  To: A A via ntg-context; +Cc: Tomáš V

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-02 13:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-02  7:23 Spellchecking for ConTeXt user on a Windows platform A A via ntg-context
2022-04-02 11:01 ` Alain Delmotte via ntg-context
2022-04-02 13:19   ` A A via ntg-context
2022-04-02 13:58     ` Tomáš V via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).