View Single Post
Old 09-10-2010, 08:53 AM   #2
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
I guess I cheat... I use tidy to convert from html to xhtml and gather up the style info into one place in the <header>; then I delete all that and change <p class=... > into <p>. Then I write a stylesheet.css that does what I want.

I know that loses all the classes, but it works fairly well for simple book conversions.

But, yes, I have been thinking about a parser that does what you want, at least items 2 & 3. I'll get to it eventually, unless someone else does it first.
pholy is offline   Reply With Quote