View Single Post
Old 05-30-2015, 05:51 AM   #14
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by AlanHK View Post
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">&nbsp;</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.
Notjohn is offline   Reply With Quote