Re: [iPAQ] Gutenberg Project comes to Ruby

From: W. Suika Roberts <ssfr.a.t.unm.edu>
Date: Tue Oct 09 2001 - 13:48:04 EDT

On Tue, Oct 09, 2001 at 05:47:56PM +1000, Sam Watkins wrote:
> On Mon, Oct 08, 2001 at 02:42:42PM +0200, Nils Faerber wrote:

> I need to write a hack that refills text, that will be pretty easy. I
> suppose people who read preformatted email (like this one!) on the iPAQ have
> a similar problem.

in my lesspipe.sh:

        *.txt) sed 's'^ //' $1 | fmt -c -t -w 60 2>/dev/null ;;
        *.txt.gz) gzip -dc $1 | sed 's'^ //' | fmt -c -t -w 60 2>/dev/null ;;
        
The sed at the begining is to strip the three spaces lynx puts at the
beginning of an html file when it prints it as text.

fmt doesn't work properly, however, with text that isn't separated into
paragraphs by blank lines.

HTH,
        Suika
Received on Tue Oct 9 09:48:11 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:12 EDT