eBusiness Help
Free Whitepaper: Ten Secrets for Successful Customer Service
Reduce the cost of customer service - When customers help themselves at a web site.
Turn Raw Security Data Into An Enterprise Defense System
View the overall security posture of your security infrastructure.
Free Trial: Easily Create Online Help. And Online Anything Else.
Quickly design and deliver professional online content from your Word documents.

Free Software Archive:
Enterprise and Home Networking Downloads

Recent Articles

Red Hat, IBM Going After Emerging Markets
Linux and solutions based on that platform will get the big push as the two firms go after the biggest emerging global markets.

Linux Users Encouraged To Help Katrina Victims
A developer wants to organize a public "web station" effort to assist and connect Hurricane Katrina victims...

Linux: the Cheaper Way to Go?
IBM released a report from the Robert Frances Group (RFG), which it sponsored that claims that the total cost of operation (TCO) for Linux is 40% lower than that of Windows.

Novell Takes Linux To China
Novell along with the China Standard Software Company (CS2C) is developing Linux Server and Linux desktop offerings for the market in China.

BlackDog – A Little Server With Bite
A Linux server that plugs into a system's USB port turns any machine into a Linux box, and fits in your hand.


09.20.05


Personal Dictionary For Ispell


By A.P. Lawrence

Ispell works well, but it has to be the most confused project I've ever seen. I started looking into this because I got tired of seeing the same common words pop up for correction and wanted to add those words to some file that would cause Ispell to ignore them.

Of course the first thing I did was try "man ispell". To my surprise, nothing came up. I did a "rpm -q --whatprovides `which ispell`" and found that it belongs to aspell-0.50.3-19.1, but "man aspell" and "info aspell" turned up nothing either.

This was interesting also:

$ ispell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.3)


I did a "rpm -q --list aspell-0.50.3-19.1" and found some html documentation pages, but couldn't seem to find any easy way to add a simple list of words to ignore.

A Google search turned up http://www.gnu.org/software/ispell/ispell.html. If that's supposed to be documentation, I knew I was in big trouble. But I pressed on, and found http://cclib.nsu.ru/projects/gnudocs/gnudocs/ispell/ispell_toc.html which talked about using Ispell with emacs but also mentioned:

Your private dictionary

Whenever ispell is started the file `.ispell_words' is read from
your home directory (if it exists). This file contains a list of
words, one per line. The order of the words is not important, but
the case is. Ispell will consider all of the words good, and will
use them as possible near misses.

The I command adds words to `.ispell_words', so normally you don't have to worry about the file. You may want to check it from time to time to make sure you have not accidentally inserted a misspelled word.



Great, just what I needed. Except it didn't work. To see why, I ran ispell with strace and looked for any attempt to open a file that failed. All I got was this:

open("/etc/aspell.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/pcunixapl/.aspell.conf", O_RDONLY) = -1 ENOENT (No such file or directory)


Well, heck, I'd already read about those files, and they weren't going to help me. I checked all the "open" calls and nothing looked for a .ispell_words file.

So far, I'm stymied. It looks like the only way to do this is to build a custom dictionary, but that's not what I want. I want what the Emacs guide promised: "The I command adds words to `.ispell_words', so normally you don't have to worry about the file."

So, so far I have nothing.

*Originally published at APLawrence.com

About the Author:
A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com

About LinuxProNews
LinuxProNews is a collection of news and commentary designed to keep you in step with the ever evolving landscape of Linux environments. Opensource News and Advice for Linux Professionals

LinuxProNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com DevWebPro.com


-- LinuxProNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2005 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


Opensource News and Advice for Linux Professionals LinuxProNews News Archives About Us Feedback LinuxProNews Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact