/usr/bin/ispell

Advanced feature discussion, beta programs and unsupported "Labs" features.
2 posts Page 1 of 1
by nhdesign » Mon Mar 05, 2018 3:07 pm
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.$$
by scott » Mon Mar 05, 2018 7:52 pm
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
2 posts Page 1 of 1

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 2 guests