Home » Questions » Computers [ Ask a new question ]

How do I make Firefox spellcheck in multiple languages simultaneously?

How do I make Firefox spellcheck in multiple languages simultaneously?

I want Firefox to assume that text may be in a mixture of languages and words should be looked up in multiple dictionaries. (For example, everything in en-GB, en-US, ru, be and be-classic should be consider as good, everything else should be underlined and corrections from all dictionaries should be offered). Is there an add-on for "multi-language spell-check"?

Asked by: Guest | Views: 73
Total answers/comments: 3
Guest [Entry]

"Thanks François; this was inspiring. The corresponding solution in Ubuntu/Linux does the same for the hunspell. I wanted to combine my English dictionary with Hebrew, and I did this:

cd /usr/share/hunspell
sudo cp he.dic he.dic.bak
sudo cp he.aff he.aff.bak
sudo sh -c 'cat en_US.dic >> he.dic'
sudo sh -c 'cat en_US.aff >> he.aff'

(The sh -c is required since the append, >>, operation needs sudo privileges also). And of course fix the number of lines on the top of the .dic file like you said (count the lines using wc -l he.dic."
Guest [Entry]

"I found a hack that sort of works using the Firefox user dictionary.

You can manually add individual words to your personal user dictionary which will then not be marked as typos. You can also edit the file for it ('persdict.dat' within your Firefox profile folder) and add LOTS of words to it. I downloaded a dictionary list for my second language with 400k words and just paste it in the .dat file, which is essentially a text file you can open with any editor.

Now I can type in two languages without annoying spell check underlines."
"I found a hack that sort of works using the Firefox user dictionary.

You can manually add individual words to your personal user dictionary which will then not be marked as typos. You can also edit the file for it ('persdict.dat' within your Firefox profile folder) and add LOTS of words to it. I downloaded a dictionary list for my second language with 400k words and just paste it in the .dat file, which is essentially a text file you can open with any editor.

Now I can type in two languages without annoying spell check underlines."
Guest [Entry]

"Modifying dictionary no loner works (dictionaries are elsewhere than specified in answers and are signed, so no modification is possible).
It is possible to add entries to persdict.dat - words that you add manually go there.
To generate all possible words in polish on Linux close Firefox and use following command:
unmunch /usr/share/hunspell/pl_PL.{dic,aff} 2>/dev/null \
| iconv -f iso-8859-2 -t utf-8 \
> /home/mateuszzz/.mozilla/firefox/z2d3veoq.default-release/persdict.dat

I determined input encoding with program enca.
This still isn't full solution, as Capitalized variants of words are not generated and still treated as errors (""dobrze"" is recognized as correct, ""Dobrze"" at beginning of sentence is not).
Warning: it is important to close Firefox before running this command."