[SC.LUG] Converting text files

Roger Gibson rcgibson at iee.org
Fri Oct 21 23:38:23 BST 2005


I'm sure it can be done with vi too.

Geoff wrote:

> They also offer html versions which only mark paragraphs and not line 
> breaks, though each chapter seems to be in a different file.
>
> Other than that you could use perl to remove single line breaks and 
> leave line breaks in place where you have two with no other characters 
> in between (ie a new paragraph), but I am not a master at backtracking 
> and backreferencing
>
> Though from a google search, it looks like emacs may accomplish this 
> task for you:
> http://www.delorie.com/gnu/docs/elisp-manual-21/elisp_509.html
> or
> http://www.xahlee.org/UnixResource_dir/emacs.html
>
> Geoff
>
>
> Dave Briggs wrote:
>
>> Does anyone know of a quick way to make Project Gutenberg text files 
>> actually
>> readable?
>>
>> They always come with hard line breaks, meaning that if you want to 
>> decrease the
>> font size and whatnot to make printing a little cheaper, the whole 
>> thing ends up
>> looking utterly rubbish.
>>
>> Any ideas?
>>
>>  
>>
>
> _______________________________________________
> SC mailing list
> SC at mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/sc
>



More information about the SC mailing list