Convert unwrapped paragraphs to hard wrapped paragraphs when there's no blank lines.

Linux for blind general discussion blinux-list at
Fri Mar 27 16:25:32 UTC 2020


On Fri, 27 Mar 2020 15:30:29 +0000
Linux for blind general discussion <blinux-list at> wrote:

> Okay, this isn't strictly an accessibility question, but I can't think
> of any better place to ask and Google didn't help much.
> I occasionally purchase eBooks from Smash Words as they're the only
> eBook Store I know of that offers plain text along side the far too
> prevalent for my liking PDF, ePub, and Kindle formats.
> Problem is, their plain text eBooks are typically long enough Firefox
> and Orca simply choke on them and they have paragraphs that are
> unwrapped, which makes reading them with nano and SBL cumbersome.
> Normally, I'd just use nano's justify command to hard wrap thewhole
> file, but they lack blank lines between paragraphs, so Nano would
> think the whole book a single paragraph.
> So, does anyone know a way to automate inserting blank lines before
> and after each line in a file that's too long to fit on the screen all
> at once and then hard wrap those long lines?

I don't understand how paragraphs start and end in these files. Otherwise you
can try using one of the text processing tools mentioned here:





Note that you may have better luck converting EPUBs (assuming they lack ) to plaintext using
tools such as , , etc.


	Shlomi Fish

> _______________________________________________
> Blinux-list mailing list
> Blinux-list at


Shlomi Fish - The Atom Text Editor edits a 2,000,001B file

Real programmers use a nice editor and a nice programming language and get it
done in less than O(N!).
    — vanguard on Freenode’s ##programming

Please reply to list if it's a mailing list post - .

More information about the Blinux-list mailing list