View Single Post
Old 07-16-2009, 11:09 PM   #45
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
rbmake also supports regex search/replace, built in. Just add a rule to your basic rbmake script (or a separate regex file using the s switch) or OPT file to replace <div style="page-break-after:always"/> with either <hr size=0> or <hr new-page>. Or whatever your preferred output is. (Maybe you want to keep the div, just replace the style?)

You could have quite a list of standard replacements to make your work easier. (You could share too! )

rbmake can be told to recognize <hr size=0> or to ignore it, using the z switch.

If you're going to update the program, I think you want the RBhtml libraries. I've emailed with Wayne Davison a few times, he's super-approachable. (I think he might hang out here, too -- don't know why I think that...)

m a r
rogue_ronin is offline   Reply With Quote