On Fri, 8 Jul 2011, Swarup wrote:
I note the following question and reply, posted previously on this list:
-----------
On Thu, 7 Jul 2011, Mahesh T. Pai wrote:
How to configure aspell to check multiple languages in same document?
I'm afraid you can't. It is a long standing feature request that might
get implemented someday. Unfortunately, it is not a straightforward
task.
-----------
Still, even if checking multiple languages in the same document remains
too formidable a task at this time, how about getting the spellchecker
to ignore words in a different script? If it would stop underlining all
the English words when I am spellchecking Hindi, that would give
tremendous relief.
A lot of it depends on how the application uses Aspell. If it tokenizes
the words itself, than Aspell will always return false when it calls
the "check" method on a word that contains foreign characters.
If Aspell did the tokenizing, then it depends on how the language is
configured. If its a Latin based language than all non-Latin words will
be skipped. If its a non-Latin based language than Latin word may or may
not be skipped depending on if Latin letters are configured to be accepted
as word characters, which depends on the charset used. Changing the
language configuration is doable but will take a bit of work.
So would the algorithm for getting aspell to ignore latin script be
different from getting it to spellcheck multiple languages
simultaneously?
Its is fairly simple task to get the "check" method to simply accept words
that don't contain any letter characters. However, the language needs to
be correctly configured (see above). Your welcome to file a feature
request (if there is not one already).
_______________________________________________
Aspell-user mailing list
Aspell-user@gnu.org
https://lists.gnu.org/mailman/listinfo/aspell-user