[Beta 16] ebook (epub) export multiple malformed HTML / CSS wraps

User avatar
shaybella
Posts: 11
Joined: Thu Dec 06, 2012 4:53 am
Platform: Windows
Contact:

Thu May 02, 2019 7:59 pm Post

A zip file of the project and the ebook as it was exported are up at http://sharethe.work/betaScriv/ through May 15.

I usually have to clean up the ebook exports because I'm picky about my formating, and I use tables. I use the ebook editor that comes bundled with Calibre for this purpose, and here's what showed up as problematic:

• mixing RTL and LTR direction text produced duplicate CSS tagging (see epub internals body10.xhtml line 132

Copied from CSS file:

Code: Select all

/* Base text formatting */
p { margin: 0rem 0% 0rem 0rem; text-indent: 0rem;  }
/* Base text formatting */
p { margin: 0rem 0% 0rem 0rem; text-indent: 0rem; }

/* Styles */
.heading-1 { margin: 1.25rem 0% 0.5rem 0rem; text-indent: 0rem; text-align: left; line-height: 1.1em; font-size: 1.5rem; font-weight: bold; color: #1085D6; }


Aside from the duplicate lines of code, using CSS3 screws with how the book looks on a lot of existing eReaders. I like the support for newer standards, but I prefer the broader compatibility.