Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2014, 12:21 PM   #16
Joques
Addict
Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.
 
Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
Quote:
Originally Posted by gbm View Post
Did you download the epub using Adobe or did you covert a kepub to epub using cabilre?

bernie
I bought it a long time ago, maybe 5 years, so this was an ADE epub that I had knocking about and recently kepubified with Calibre.

Last edited by Joques; 09-14-2014 at 12:23 PM.
Joques is offline   Reply With Quote
Old 09-14-2014, 12:23 PM   #17
Joques
Addict
Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.
 
Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
Quote:
Originally Posted by HarryT View Post
Then that is an error in the book.
Thank you, which brings me back to my original point, and the title of this thread
Joques is offline   Reply With Quote
Advert
Old 09-14-2014, 12:32 PM   #18
robko
Wizard
robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.robko ought to be getting tired of karma fortunes by now.
 
Posts: 2,454
Karma: 5469320
Join Date: Jul 2010
Device: Kobo
I agree with your title and it drives me NUTS!!! I can handle the occasional miss, but some books are so riddled with OCR mix ups it makes them hard to read. They seem to run it through a spell checker, but that leaves legitimate words aren't the correct word all over the place.
robko is offline   Reply With Quote
Old 09-14-2014, 12:56 PM   #19
HYPE
Groupie
HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.
 
HYPE's Avatar
 
Posts: 178
Karma: 1057078
Join Date: Dec 2012
Device: Kobo Aura One
I know it doesn't make it any better (or less worse), but if the only thing that is changing is the ID, then you can easily delete them all with a single REGEX.
HYPE is offline   Reply With Quote
Old 09-14-2014, 01:02 PM   #20
Joques
Addict
Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.
 
Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
HYPE, how do you do that? I've been deleting them manually, but it takes a while. I tried putting in a wildcard character in Calibre's editor's search function, but that didn't work.
Joques is offline   Reply With Quote
Advert
Old 09-14-2014, 01:12 PM   #21
HYPE
Groupie
HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.
 
HYPE's Avatar
 
Posts: 178
Karma: 1057078
Join Date: Dec 2012
Device: Kobo Aura One
Quote:
Originally Posted by Joques View Post
HYPE, how do you do that? I've been deleting them manually, but it takes a while. I tried putting in a wildcard character in Calibre's editor's search function, but that didn't work.
I'm not sure if Calibre supports regular expressions. If you open the .epub like you would a .zip, you will get all the HTML files. From there you will be able to process them with a more powerful text editor, such as Sublime Text. It can handle REGEX on huge files pretty well, and it can also search throughout a whole folder, so you won't have to work file by file.

Then it is only a matter of writing a regular expression that can find all occurrences. This one seems to be working fine in your case :

Code:
( <a id="page_)([0-9]+)("></a> )

Last edited by HYPE; 07-27-2019 at 02:03 PM.
HYPE is offline   Reply With Quote
Old 09-14-2014, 01:12 PM   #22
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Calibre DOES support regular expressions.
doubleshuffle is offline   Reply With Quote
Old 09-14-2014, 01:16 PM   #23
HYPE
Groupie
HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.
 
HYPE's Avatar
 
Posts: 178
Karma: 1057078
Join Date: Dec 2012
Device: Kobo Aura One
Quote:
Originally Posted by doubleshuffle View Post
Calibre DOES support regular expressions.
Great, then it's going to be even easier.
HYPE is offline   Reply With Quote
Old 09-14-2014, 02:08 PM   #24
Joques
Addict
Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.
 
Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
Where would I insert that code? I tried the regular search field, but no luck. Sorry, I really am that clueless about html editing
Joques is offline   Reply With Quote
Old 09-14-2014, 02:19 PM   #25
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Quote:
Originally Posted by Joques View Post
Where would I insert that code? I tried the regular search field, but no luck. Sorry, I really am that clueless about html editing
You have opened the book in the Calibre Editor? Ctrl+F will open a Find and Replace menu at the bottom. Put your search term in the Find field, leave the Replace field empty, because you just want to remove the code. Below the Replace field there is a dropdown menu "Mode". This must be set to "Regex". Before hitting "Replace all", replace one instance first, and then another two or three, to see if the regex really does what it's supposed to do...
doubleshuffle is offline   Reply With Quote
Old 09-14-2014, 02:32 PM   #26
Joques
Addict
Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.Joques is my name, but call me Ishmael.
 
Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
Thank you! But ... the search string the HYPE provided, only nets me an error message: "The regular expression you entered is invalid."

I tried to read an introduction to regex, but it seems very arcane indeed
Joques is offline   Reply With Quote
Old 09-14-2014, 02:43 PM   #27
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Quote:
Originally Posted by Joques View Post
Thank you! But ... the search string the HYPE provided, only nets me an error message: "The regular expression you entered is invalid."

I tried to read an introduction to regex, but it seems very arcane indeed
For the example you provided in post #11, this works for me:

Code:
 <a id="page_[0-9]+"/>
(Don't forget the spaces at beginning and end...)
doubleshuffle is offline   Reply With Quote
Old 09-14-2014, 02:48 PM   #28
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,189
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Joques View Post
Thank you! But ... the search string the HYPE provided, only nets me an error message: "The regular expression you entered is invalid."

I tried to read an introduction to regex, but it seems very arcane indeed
Quote:
Originally Posted by doubleshuffle View Post
For the example you provided in post #11, this works for me:

Code:
 <a id="page_[0-9]+"/>
(Don't forget the spaces at beginning and end...)
This one works in my test.
Code:
( <a id="page_([0-9]+)"></a> )
Don't forget that you are using regex mode on "all test files".
bernie
gbm is offline   Reply With Quote
Old 09-14-2014, 02:48 PM   #29
HYPE
Groupie
HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.HYPE ought to be getting tired of karma fortunes by now.
 
HYPE's Avatar
 
Posts: 178
Karma: 1057078
Join Date: Dec 2012
Device: Kobo Aura One
Quote:
Originally Posted by Joques View Post
Thank you! But ... the search string the HYPE provided, only nets me an error message: "The regular expression you entered is invalid."

I tried to read an introduction to regex, but it seems very arcane indeed
Yeah, it had a double "[". Sorry about that.

As for it being arcane, I agree that it can be quite hostile, but it can be a real life saver when working on ebooks.

Last edited by HYPE; 07-27-2019 at 02:04 PM.
HYPE is offline   Reply With Quote
Old 09-14-2014, 02:52 PM   #30
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Quote:
Originally Posted by HYPE View Post
As for it being arcane, I agree that it can be quite hostile, but it can be a real life saver when working on ebooks.
Indeed. I'm generally rather clueless about Regex myself, but RegexBuddy and Mobileread together are a great lifesaving outfit...
doubleshuffle is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
0.7.1 acting different than 0.6.2 Gregg Bell Sigil 9 03-26-2013 09:35 PM
Publishers Now Offering Agency Pricing 2.0 (big win for Publishers) Top100EbooksRank News 24 12-20-2012 12:47 PM
Tired of being patient amo Kobo Reader 13 04-13-2011 05:17 PM
My DX is acting up. Again. Scott Nielsen Amazon Kindle 4 02-27-2010 02:33 PM


All times are GMT -4. The time now is 10:40 PM.


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