reflowable epub

For all things Mellel

Moderators: Eyal Redler, redlers, Ori Redler

Post Reply
Amontillado
Knows everything, can prove it
Posts: 148
Joined: Fri May 04, 2018 4:00 am

reflowable epub

Post by Amontillado »

First up, I don't know much about epub format, but I'm trying to learn.

Is there a way to generate a reflowable epub document with Mellel?

The fixed layout is superior for control of things like tables, but for a text only presentation, reflowable text has some appeal.

Is that an option?
Eyal Redler
Co-founder
Posts: 692
Joined: Thu Oct 27, 2005 9:15 am

Re: reflowable epub

Post by Eyal Redler »

Yes, it is an option. In fact, it is the only option at the moment. The epub export only supports refloable ePUB.
Eyal Redler
----------------------
Co-Founder and Owner at Mellel
Facebook: http://www.facebook.com/mellelwordprocessor
YouTube: http://www.youtube.com/user/MellelRedlex
Donate: https://www.paypal.com/donate/?hosted_b ... 2LWB33YBZW
Amontillado
Knows everything, can prove it
Posts: 148
Joined: Fri May 04, 2018 4:00 am

Re: reflowable epub

Post by Amontillado »

Ok, that's actually better for my purposes, anyway.

I notice that each line in the output I'm getting is bracketed in a "p" tag, and that's why I thought it wasn't reflowable.

The default novel template may help, too. I'll experiment further.
Amontillado
Knows everything, can prove it
Posts: 148
Joined: Fri May 04, 2018 4:00 am

Re: reflowable epub

Post by Amontillado »

Stop the presses, I think I know what must have happened. I used some sample text from Project Gutenberg to test epub export, and I'm morally certain I imported newlines at the end of every line in the text.

I'm not where I can test right now, but thought I'd post this in case anyone thought the fault was Mellel's. I'm pretty sure I just proved the old axiom, garbage in, garbage out.

Many thanks for your reply, Eyal.

Mellel is an awesome tool. It's a lightsaber, not as clumsy and random as Microsoft Word.

Mellel is an elegant weapon for more civilized ages, and I'm very happy with it.
Amontillado
Knows everything, can prove it
Posts: 148
Joined: Fri May 04, 2018 4:00 am

Re: reflowable epub

Post by Amontillado »

That was it. Once I stripped out the extra newlines, all was well in the exported epub.

Redemption in one Python statement, assuming =-= didn't appear in the text of Masque of the Red Death:

open('masque1.txt', 'wt').write(open('masque.txt', 'rt').read().replace('\n\n', '=-=').replace('\n', ' ').replace('=-=', '\n'))

Now, if only my prose was less confused than my code. Sigh.
Post Reply