|02-25-2013, 07:55 AM||#16|
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
For example, a div can be used to give a bit of a top margin. Take that away and you lose that. You have to know what it is you are removing before removing it. There are blockquotes you do not want to remove. There are divs that are used to simulate blockquotes (stupid coding, but that's how they do it in India these days) that you do not want to remove.
Look at the code before you delete it. See what it is that you are deleting. Then you can decide if it's OK to delete. For example, I've seen divs that have no purpose other then to be an ID that is not actually used anyplace. Those can go. Then there are divs to help deal with chapter titles that can go because you can do it all in something like an h2 as long as h2 is defined properly in the CSS.
Now, a lot of chapter titles are defined using h1 or h2 and if you remove all but <p></p> then you would lose all the chapter titles if they use h1 or h2.
|02-25-2013, 09:53 AM||#17|
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Adding/extending the post from theducks
Overall problem - The way I'd do it, is convert in calibre to txtz->textile output, the convert that back to epub.
keeping copies of original just in case.
Last edited by Perkin; 02-25-2013 at 09:57 AM.
|02-25-2013, 09:57 AM||#18|
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
I forgot to mention that the Tags needed to be replaced after the capture.
I always step through a few times before hitting the 'all' button.
Now you see why
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Help removing bold text||tecweston||Sigil||5||02-08-2012 12:33 PM|
|Removing text from an ebook||mjt57||Conversion||3||04-29-2011 02:55 AM|
|Tool for removing line breaks in text documents||kahn10||Sony Reader||9||08-22-2010 10:05 PM|
|PDF Conversion - Removing Header / Footer Text||heb||Sony Reader||9||07-11-2010 11:02 PM|
|Converting PDF - Removing text at top of pages||halljames||Calibre||4||07-21-2009 07:00 AM|