Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

At the moment, I'm working on a big LaTeX document about mathematics and once in a while I do some spell-checking on it. As you can guess, there are a lot of words which are not in a standard dictionary. But I've added them with aspell with a to the standard dictionary.

aspell -d de -t -c my-document.tex

Is there a way to export my words (and only those)?

Restoring seems to be quite simple: another question.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

When dealing with aspell if you're not sure where things are stored it's best to consult its configuration to find out.

$ aspell --lang=en dump config | less

The 2 items that will tell you where the added words are ending up are as follows:

# home-dir (string)
#   location for personal files
# default: <$HOME|./> = /home/saml

# personal (string)
#   personal dictionary file name
# default: .aspell.<lang>.pws = .aspell.en.pws

So with this information in hand you can consult the file $HOME/.aspell.en.pws. Which contains the added words.

Example

Now say we have this file.

$ cat sample.txt 
smurf
loook

Now we spell check the file, sample.txt.

$ aspell -t -c sample.txt

                    ss #1

So we add the word loook, in the same manner you've described, using a with the word selected.

Now if we consult the file mentioned above.

$ cat .aspell.en.pws 
personal_ws-1.1 en 1 
loook

References

share|improve this answer

There is a file where all the added entries are, which is by default (for english):

/home/user/.aspell.en.pws

http://aspell.net/man-html/Format-of-the-Personal-and-Replacement-Dictionaries.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.