Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2015, 02:15 PM   #1
Wipneus
Connoisseur
Wipneus began at the beginning.
 
Wipneus's Avatar
 
Posts: 77
Karma: 12
Join Date: Jan 2012
Location: Nederland
Device: Ipad Pro
How to remove the codes

Somethimes i have a book with a code in it. How can i remove the code?

for example: Here are the codes.

<div id="x978902348694761" title="f9CGCY7LPINmW1sTFliH5+ngfBC8EuLRoNu/EDS30fjgnAm8WIAaQA==">

<div id="x978902348694762" title="5UpK5EPrKtttkCKKIyxzd680SfUpcoksVJY2Q4MAm/5BXddUXE38tQ==">

On every page you will find these code. Now i remove them page by page.

Is there a faster way to remove all codes?


And here is a code that i find an every page too but some letters or numbers are different as above mentioned

<div class="dataImg"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYgAAAABCAIAAAB L6a7VAAAAfUlEQVQ4jZ2RQQ6AQAgD+f+n9WA0bIeWxD2YBSqU2 aqq6zz1nucuXypZ+sIukLsIZHTXc1DoSfPdkuSlvxvhfHIXh4J OgpINAzdXWsO8rFPy1Yh99OzCsOnIc/U5ks+sVkrOqjBZp7u/mPzBk8SYdKF708DcrTm+FP1wUynda7g64kIkllQAAAAASUVORK 5CYII=" alt="" /></div>
Wipneus is offline   Reply With Quote
Old 03-19-2015, 03:12 PM   #2
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
The first kind looks like ToC markers. No idea why the title looks like a hash of some kind though, that's not exactly what the attribute is for. It doesn't impact the book's contents at all, though, so at worst there's no hurt in keeping them where they are.

The second is an image encoded in base64 instead of being linked to a separate file. Again, no idea what it's supposed to be for, but it looks like some kind of barcode. Depending on the book, it may have some real significance. Or not.

You can remove all of those by finding the right regexp in a search/replace.

N.
aleyx is offline   Reply With Quote
Advert
Old 03-19-2015, 05:19 PM   #3
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
The 9789023486947 is a valid ISBN for: https://www.bruna.nl/ebook/gevangene...-9789023486947 . Obviously superfluous to have on every page.
DaltonST is offline   Reply With Quote
Old 03-19-2015, 07:18 PM   #4
Wipneus
Connoisseur
Wipneus began at the beginning.
 
Wipneus's Avatar
 
Posts: 77
Karma: 12
Join Date: Jan 2012
Location: Nederland
Device: Ipad Pro
I ask is there a way to remove both in a quick manner. I know it's a code, a sort of watermark. This can I get out of it but should do this page for page but is there an easy way to do this quickly in 1 time.
Wipneus is offline   Reply With Quote
Old 03-19-2015, 07:56 PM   #5
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Aleyx gave you the answer at the bottom of his post. Regex means Regular Expression. Search and Replace is an option when you convert or reconvert from one format to another. Refer to the Calibre User Guide Help for more details. It is easy and intuitive if you know Regular Expressions.
DaltonST is offline   Reply With Quote
Advert
Old 03-20-2015, 03:19 AM   #6
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Make sure you are in regex mode of Search and Replace (not Normal),
Find this
Code:
<div id="(.*?)" title="(.*?)==">
Replace with "nothing"

Then, use the feature "Beautify" under Tools. I think it will help to remove also the redundant </div>
nqk is offline   Reply With Quote
Old 08-26-2016, 05:56 PM   #7
Wipneus
Connoisseur
Wipneus began at the beginning.
 
Wipneus's Avatar
 
Posts: 77
Karma: 12
Join Date: Jan 2012
Location: Nederland
Device: Ipad Pro
Thanks NQK
Wipneus is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sainsburysebooks.co.uk Codes bookaho!ic Deals and Resources (No Self-Promotion or Affiliate Links) 69 03-08-2015 07:58 AM
Help needed with codes Hoods7070 Conversion 8 03-07-2012 06:07 AM
Hiding codes Goldenrod ePub 2 02-28-2012 04:06 PM
RFE: Remove remove tags in bulk edit magphil Calibre 0 08-11-2009 10:37 AM


All times are GMT -4. The time now is 12:49 AM.


MobileRead.com is a privately owned, operated and funded community.