Bug 13341 - /usr/bin/spell is too dumb: -b breaks it
/usr/bin/spell is too dumb: -b breaks it
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: ispell (Show other bugs)
6.0
i586 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-07-03 01:18 EDT by luke
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-07-03 01:19:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description luke 2000-07-03 01:18:55 EDT
/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 09:25:25 EDT
We're moving to aspell for the next release - and we include a British
dictionary with it.

Note You need to log in before you can comment on or make changes to this bug.