View Single Post
Old 12-21-2010, 01:28 PM   #6
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,732
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Quote:
Originally Posted by ldolse View Post
Several of those functions are logic I've placed in Calibre's preprocess code so I didn't have to find/rewrite the regexes every time I convert a book. The ones that aren't there yet:
  • Converting ` ' to '' - haven't tried to come up with a safe function to fix that one yet.
  • I don't mess with <span> tags too much though unless there isn't any content between them. Empty spans and other empty formatting tags get deleted.
  • I don't see a lot of use of divs except in LRF content, haven't done that one yet either.
  • Deleting a lot of microsoft junk is still on my to-do, that's partially done though.
Interesting, could you share the things you do as "preprocess code" and how? While I use Calibre I haven't yet gone through the huge amount of options to figure out what ones might be most useful to me.
kiwidude is offline   Reply With Quote