I have a tex document spanning several files that I want to check with aspell. The command I use is:
cat $f | aspell list --extra-dicts="./names.spl" --mode=tex -l en |sort -u
for every file name f.
Some files that concern pronunciation have "words" like aj and oo inside them, which aspell counts as spelling mistakes. I want to filter them out without putting them into the names.spl dictionary. (first because they are not names, second because they shouldn't be ignored in other files)
the aspell documentation states that the "extra-dicts" argument can receive a list, but I can't seem to delimit it properly. I tried , : and plain spaces to no avail. They are either treated as a long file path or get entirely separated from the extra-dicts keywords.
I also tried to use the option twice, but the second time just overrides the first.
Am I missing something trivial about how lists are provided as command line arguments in the terminal?
According to the texinfo manual (
info aspell),aspelluses a list option format that is different from other GNU programs, in which the base option name is prefixed withadd-orrem-to respectively add or remove items from a list:Following this pattern for the
--extra-dictsoption, you would add multiple extra dictionaries asThe documentation for
Aspell 0.60.7-20110707also mentions a (possibly newer) more direct delimited list format, using a third prefixlset:Following this format, your option would become