aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Timothy Madden
Subject: Re: [Aspell-user] How to create and use an additional word list ?
Date: Fri, 23 Sep 2011 15:35:10 +0300
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]