Bug 13341

Summary: /usr/bin/spell is too dumb: -b breaks it
Product: [Retired] Red Hat Linux Reporter: luke
Component: ispellAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: samer73
Target Milestone: ---   
Target Release: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-07-03 05:19:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description luke 2000-07-03 05:18:55 UTC
/usr/bin/spell happily passes on flags that used to work for Unix spell,
and which make ispell hang.  In particular, the -b option to select British
spelling.

Note that RH also doesn't come with the British spelling dictionaries,
which is annoying.  They can be found, though.

Here is an improved version of /usr/bin/spell which you are free to use:

#!/bin/sh
#
# Make ispell work a bit more like spell.
#
# Author: Luke Kendall
#
unset SPARGS
for arg
do
    case "x$arg" in
        x-b) # British spelling
            SPARGS="$SPARGS -d english"
            ;;
        x-i) # Make deroff ignore .so and .nx commands.
            SPARGS="$SPARGS -n"
            ;;
        x-l) # Follow the chains of all included files.  How?
            ;;
        x-v) # Print all words not literally in the spelling list
            SPARGS="$SPARGS -m"
            ;;
        x-x) # Print every plausible stem, one per line, with = preceding
            SPARGS="$SPARGS -m"
            ;;
        x+*) # local spelling word file, 1 per line, sorted
            pdict=`expr "x$arg" : "x\+\(.*\)"`
            SPARGS="$SPARGS -p '$pdict'"
            ;;
        *)
            FILES="$FILES '$arg'"
            ;;
    esac
done
eval "cat $FILES | ispell -l $SPARGS | sort -u"

Comment 1 Trond Eivind Glomsrxd 2000-07-03 13:25:25 UTC
We're moving to aspell for the next release - and we include a British
dictionary with it.