Page 1 of 1

/usr/bin/ispell

Posted: Mon Mar 05, 2018 3:07 pm
by nhdesign
I write in VIM, format through nroff.
For spell check I use a script named ispell.
Yup, worked on bolt, works at panix, works on the linux at my work too.

At sh.sonic.net the following line appears at the top of the file.

Error: No word lists can be found for the language "en_US".

sh.sonic.net:nhdesign:/home/n/nhdesign 43 % env|grep en_US
LANG=en_US.UTF-8

sh.sonic.net:nhdesign:/home/n/nhdesign 60 % which ispell
/usr/bin/ispell

bolt.sonic.net:nhdesign:/home/n/nhdesign 38 % env | grep en_US
LANG=en_US.iso885915
SUPPORTED=en_US.iso885915:en_US:en

bolt.sonic.net:nhdesign:/home/n/nhdesign 49 % which ispell
/usr/local/bin/ispell


#!/bin/sh
#ispell-filter
#
# Ives Aerts, ives@lynch.sonytel.be
#
# This script can be used to run ispell on stdin, returning the
# result through stdout.
#
# It can be used from VI or VIM like this
# :%! $HOME/bin/ispell-filter
#
# Or map it to a key sequence in .exrc and .vimrc
# In .vimrc add a <cr> to the end
# map v :%! $HOME/bin/ispell-filter
#
#
cat > /tmp/tmp.$$
ispell $* /tmp/tmp.$$ < /dev/tty > /dev/tty
cat /tmp/tmp.$$
rm -f /tmp/tmp.$$

Re: /usr/bin/ispell

Posted: Mon Mar 05, 2018 7:52 pm
by scott
nhdesign wrote:
I write in VIM, format through nroff.
For spell check I use a script named ispell.
Yup, worked on bolt, works at panix, works on the linux at my work too.

At sh.sonic.net the following line appears at the top of the file.

Error: No word lists can be found for the language "en_US".

sh.sonic.net:nhdesign:/home/n/nhdesign 43 % env|grep en_US
LANG=en_US.UTF-8

sh.sonic.net:nhdesign:/home/n/nhdesign 60 % which ispell
/usr/bin/ispell

bolt.sonic.net:nhdesign:/home/n/nhdesign 38 % env | grep en_US
LANG=en_US.iso885915
SUPPORTED=en_US.iso885915:en_US:en

bolt.sonic.net:nhdesign:/home/n/nhdesign 49 % which ispell
/usr/local/bin/ispell


#!/bin/sh
#ispell-filter
#
# Ives Aerts, ives@lynch.sonytel.be
#
# This script can be used to run ispell on stdin, returning the
# result through stdout.
#
# It can be used from VI or VIM like this
# :%! $HOME/bin/ispell-filter
#
# Or map it to a key sequence in .exrc and .vimrc
# In .vimrc add a <cr> to the end
# map v :%! $HOME/bin/ispell-filter
#
#
cat > /tmp/tmp.$$
ispell $* /tmp/tmp.$$ < /dev/tty > /dev/tty
cat /tmp/tmp.$$
rm -f /tmp/tmp.$$


Good catch. aspell was installed (which provides backward compatibility with the ispell command), but the aspell-en package wasn't installed. It's installed now. :)

-Scott