When I use TeXworks there is no automatic spell checking. If I go Edit -> Spelling, the only option I have is none
How can I enable spell checking?
Thanks for your help
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
In case you already have LibreOffice installed, the
en_US.dic files are already on your system in the
/usr/share/hunspell folder. In this case, just symlink these two files into
/usr/share/myspell/dicts and you are done:
sudo ln -s /usr/share/hunspell/en_US.dic /usr/share/myspell/dicts/ sudo ln -s /usr/share/hunspell/en_US.aff /usr/share/myspell/dicts/
You can do so for all dictionaries you find in
Restart Texworks afterwards.
You can see Texworks > Edit > Spelling > Unites-States now. Click it.
Also change Texworks > Edit > Preferences > Editor > spell-check-language > English-United-States.
You are done after restarting.
There is a section of the TeXWorks manual in which there is the reference to a guide on how to use dictionaries.
The link it refers to is this, so you should place your personal dictionaries in the folder /usr/share/myspell/dicts.
One easy way to add them is to install them.
I suppose that if you use LibreOffice then they are installed by default.
If not, you can simply install the packages named
myspell-XX, where XX stands for your language.
You can easily find them with apt-get and auto-completion or via Synaptic.
I just installed ubuntu 18.04 on an old toshiba laptop. The config file of TeXworks looks for its dictionaries in /usr/share/hunspell. And it is not easy (if possible at all) to change this behaviour. But one can copy (or move) the dictionaries that have been installed. Or download them from Open Office; they will be with oxt extension but these are zip files and making the extension from oxt to zip does the job, then unzip these. You need the *.aff and *.dic files only (plus the rules for hyphenation if any). Then you need root access to copy or move these to /usr/share/hunspell. If you have it, just open terminal in the folder where the files are: sudo cp /usr/share/hunspell/filename And that is it. Another advantage: If you want to switch to TeXstudio then from its config menu you can select the folder where the dictionaries are. So you can select the same.