View Single Post
Old 01-14-2021, 08:17 PM   #12
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
Quote:
Originally Posted by davidfor View Post
I have to say "WOW!!!!" In the last few days I looked at a book and declared it was the worst coded book I have ever seen. Compared to this one, that book was well coded.
I just had to look at it after that .

It is salvageable using regex that might be quicker than starting over. I first used regex to remove all span classes (with <span class="text_(.*?)"> and </span> ) and replaced with nothing. There were over 339k of them btw. That just took a few seconds.

Do the same to get rid of all the <p class="block_xxxx"> and replace it with a single sensible text option for now to whatever your preference is. Eliminate all the now unused styles, etc. I was wondering why the stylesheet.css wasn't loading. When it finally did, I looked and there were 238k lines in the file.

Then go through to do chapter titles, etc. in whatever style you want.

It's still work, but might be quicker than starting over.
Ripplinger is offline   Reply With Quote