View Single Post
Old 02-20-2015, 10:46 AM   #899
Francois_C
Zealot
Francois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipseFrancois_C can illuminate an eclipse
 
Francois_C's Avatar
 
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
Quote:
Originally Posted by Terisa de morgan View Post
I don't understand. I modify my epubs as I prefer, why does a software have to prevent me to do it?

(Out of curiosity note: why do anybody mind the xhtml code inside your book if it looks nice? I can understand this if you have to maintain later the code by hand. In other case, not so much).
In some books I was given by friends, unskilled use of some plugins break the basic layouts and may even remove italics, bold chars… Most ebooks manipulated by newbies are indented even on text which should be centered.

Yes, I'm also a programmer and I hate ugly code, which causes errors and slowdowns. I maintain the code by hand on my ebooks with the Calibre editor, and I often remove dozens of useless classes: I first remove the tag string between < > in the whole text, then the</> with the auto repair function, then the css class in the stylesheet…

But the simplest way is often to shrink all html files into one, change the xml header to an html one, export the html, css and images, open and edit with LibreOffice, save to ODT and rebuild with Amanuensis.

Sometimes, I had ebooks which loaded very slowly, and I found that every html page contained an integral, sometimes gigantic, list of all fonts in the computer, which is totally useless and can be removed without any display change (and a serious size decrease) by a search and replace with Calibre editor in the whole text. I don't know for sure what causes this oddity: always in books made with MS Office. I suppose with former versions of Calibre and RTF files.
Francois_C is offline