View Single Post
Old 07-30-2022, 01:19 PM   #23
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,343
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Karellen View Post
It's interesting reading these comments and wonder why it is even an issue? Don't you just replace all the garbage?

I get an ebook and the first thing I do is completely reformat it. Wipe the css and replace with my own, rename the html files, replace all the existing html tags and attributes to minimise the tags and match the new css code.

Sometimes it is quite easy with some well placed Regex S&R, other books are a disaster and require a lot of work.

When you get code that looks like that in the image, why would you keep it? (I had to stretch the window across my dual screens, hence the taskbar in the middle).

What on earth is the point of that??
I have a baen-dediv saved search that I LOOP run 'all' until I get a not found.
(the number of loops is the deepest nest, usually the last chapter. This mess seems to be done by Cocoa)

Note: I hand adjust the class and ID values as they vary.Sigil type REGEX
Code:
(?sm)<div class="calibre4" id="calibre_pb_\d+">\s+<p (.+)</p>\s+(<div class="calibre6" id="calibre_pb_\d+"></div>\s+)*</div>
theducks is offline   Reply With Quote