opensubscriber
   Find in this group all groups
 
Unknown more information…

a : aspell-user@gnu.org 23 September 2011 • 8:35PM -0400

Re: [Aspell-user] How to create and use an additional word list ?
by Timothy Madden

REPLY TO AUTHOR
 
REPLY TO GROUP




On 21.09.2011 22:30, Kevin Atkinson wrote:
[...]
>> If I try
>> aspell --add-word-list-path=./ --personal=documentlist check docfile.tex
>> than aspell starts up but does not use the words in my word list and
>> asks me to correct them when encountered in the document
>
> Try
> aspell --add-extra-dicts=./documentlist check docfile.tex
>
> If that doesn't work, try renaming documentlist.multi to
> documentlist.rws and try again with
> aspell --add-extra-dicts=./documentlist.rws check docfile.tex
>
>> Is there a way to use aspell with an additional local dictionary ?
>
> If you use the right commands, file extensions, etc. It should work.
>
>> Also, what is the proper way to check a document non-interactively
>> from the command line ?
>
> What are you looking for? A list of misspelled words, in that case use
> "aspell list"

Thank you ! It worked now.

Using --add-extra-dicts=./documentlist.rws worked well, and indeed
"list" is indeed what I needed, except that I find it a little strange
to take its input document from the standard input instead of a file
name parameter, so it also needs an explicit --mode=tex argument on the
command line, since reading text from standard input now means the
command can no longer see the file name extension (.tex) to get the
default mode.

Now I have the problem that I do not know how to add a tex-command on
the command line to aspell list. As embedded in my .tex document, my
current command to check my text is:

\write 18
     {
aspell
    --encoding=utf-8
    --lang=en
    --add-extra-dicts=./\currfilebase.rws
    --mode=tex
    --add-tex-command="autoref p"
    --add-tex-command="nameref p"
    --add-tex-command="url p"
    --add-tex-command="href opP"
    --add-tex-command="hyperdef ppP"
    --add-tex-command="write pp"
    list<\currfilepath
     }

However something is wrong with the arguments because the arguments to
all those LaTeX commands (autoref, nameref, url, href, hyperdef, write)
are still being output by aspell list as being misspelled words.

What is the proper way to add a new TeX command on the aspell command line ?

Thank you,
Timothy Madden


_______________________________________________
Aspell-user mailing list
Aspell-user@gnu....
https://lists.gnu.org/mailman/listinfo/aspell-user

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.