Quote:
Originally Posted by AlanHK
See: "Aspose.Words"
This converts Word to epub. Every single line of text has a bunch of nested styles, almost all duplicated.
No CSS at all.
example:
<p style="font-size:12pt; line-height:normal; margin-bottom:0pt"><span style="font-family:'Times New Roman', serif; font-size:12pt"> </span></p>
Strip it out and add a minimal CSS file and the book is reduced by 2/3 in size. And it's possible to read the code and deal with it sensibly.
|
When the KDP (then the DTP) was unveiled in November 2007, I followed Amazon's suggestion to convert/export/save Word docs as html, and EVERY paragraph started like that. And stripping it out did shrink the book by half or more. But it was such a pain! There were always subtle differences, so I'd have to do the search/replace repeatedly.
I didn't know about CSS at that time, and I'm not even sure that a style sheet would have converted correctly on the K1.
In time, of course, I switched to epub (thank you, Hitch!) and never looked back.