TIP KWord and Spellcheck

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the Tips & Tricks series.
Terminals / Shells Network X Window System Portage System Filesystems Kernel Other

Contents

[edit] Getting KWord to check your spelling (with aspell)

In a nutshell, if you plan on using spellcheck with KWord kde-base/kdelibs needs to be (re)emerged with the spell USE flag. However, this article goes through the main steps from nothing to KWord using aspell.

If you haven't emerged kdelibs (or KDE anything) you should put spell in your USE section of your /etc/make.conf. Any method of setting your USE flag should be fine.

Note: This tip also works for other KDE text editing applications such as Kwrite, Kile, or Kpresenter.

[edit] Emerge kdelibs with spell USE flag

We'll assume we installed KDE already without the spell USE flag and this is a re-emerge of kdelibs:

 # USE="spell" emerge -va kdelibs

(If you can, check that the spell USE flag is indeed activated. For example, you can use

 $ equery uses kdelibbs

)

[edit] Emerge aspell

Assuming after your kdelibs emerged fine with the spell USE flag on, time to install a spellchecker. aspell is a fine choice.

 # emerge -va aspell-en
Note: Portage should tell you that it will install aspell because aspell-en is dependant on it.


aspell-en is the english dictionary. You can do a search for your dictionary of choice:

 # emerge -s aspell | less

(Press q to exit less)

[edit] Setting up KDE's spellcheck

Now that you have a spellchecker, you need to tell KDE that your spellchecker exists and to use it in KDE-aware/KDE-family applications.

To open the Control Center hit ALT + F2 and use the command kcontrol.

Navigate to KDE Components > Spell Checker

Image:kde_spellcheck.png

Under Client choose aspell. Under Dictionary, choose the language you want.

[edit] Emerge KWord

Finally, you need to emerge KWord. You can do it a number of ways: through koffice, koffice-meta, kword... We'll use koffice.

 # emerge -va koffice

[edit] Test your spellcheck

Try testing your spellcheck. Open KWord and type some real words and then some fake ones. If all went well, your misspelled words should be picked up and corrected. If not, you could spellcheck it yourself.

Personal tools