View Single Post
Old 08-24-2015, 11:24 AM   #43
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by Tex2002ans View Post
For cleaning up this type of hideous code, I have personally began using the Calibre Editor with DiapDealer's "Editing Toolbag":

https://www.mobileread.com/forums/sho...d.php?t=251365

This Plugin is more intelligent (can handle hideously nested spans) compared to just a Regex cleanup.

These are the settings I would use:

Attachment 141370

Just a single run with the above settings would have cleaned up your initial example to this:



Then it becomes much easier to focus on reading the code and clean up the rest.
Very,very usefull, thank you, I like the examples because even when it is not in my language they are easy to recognise.
The second and third book both had the same class where a new alinea must begin so I could easyly save those to keep the layout, the first book just has blanc lines everywhere,also in the middle of paragraps and have hyphens in it so the only solution there was to take out all the code and start all over.
Mailed the publisher but no answer yet.

I bookmarked this topic and will save all answers for future use.
Used "your" tool and example to clean out the rest and the books are now manageble so thanks everyone for helping me out.
Nick_1964 is offline   Reply With Quote