reflowable epub

For all things Mellel

Moderators: redlers, Eyal Redler, Ori Redler

Post Reply
Amontillado
Knows everything, can also explain
Posts: 55
Joined: Fri May 04, 2018 4:00 am

reflowable epub

Post by Amontillado » Wed Oct 14, 2020 1:49 am

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: 623
Joined: Thu Oct 27, 2005 9:15 am

Re: reflowable epub

Post by Eyal Redler » Wed Oct 14, 2020 4:30 pm

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 Developer at Mellel AAR LTD
Facebook: http://www.facebook.com/mellelwordprocessor
YouTube: http://www.youtube.com/user/MellelRedlex

Amontillado
Knows everything, can also explain
Posts: 55
Joined: Fri May 04, 2018 4:00 am

Re: reflowable epub

Post by Amontillado » Wed Oct 14, 2020 4:51 pm

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 also explain
Posts: 55
Joined: Fri May 04, 2018 4:00 am

Re: reflowable epub

Post by Amontillado » Wed Oct 14, 2020 6:29 pm

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 also explain
Posts: 55
Joined: Fri May 04, 2018 4:00 am

Re: reflowable epub

Post by Amontillado » Wed Oct 14, 2020 7:28 pm

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

Who is online

Users browsing this forum: No registered users and 15 guests