Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2015, 03:15 PM   #1
CarlM
Junior Member
CarlM began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2014
Device: Kindle
Page number editing.

I'm editing some books that I received that have all sorts of leftovers in them.

e.g. file:///C|/2590%20Sci-Fi%20and%20Fantasy%20...s%2011%20-%20Time%20Nomads(v1.0)

These and can just search and replace. What I'm struggling with is when it is a page number.

e.g. (3 of 200)

Is there a code I can use that will delete the parenthesis and what is inside them without having to do it 200 times.

Many Thanks.

Carl
CarlM is offline   Reply With Quote
Old 04-24-2015, 01:30 AM   #2
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
there is, but its far better to not " acquire" such crap source material in the first place.
if you look in the sigil forum there is a thread of regex examples.
regex is what you need for this, and you will have to learn some.

i think the find string for that specific example would be \(\d+ of \d+\)

that finds a bracket followed by a number followed by " of " followed by another number followed by a closing bracket

i use the sigil editor rather then the calibre one, but I guess the syntax is same or similar

you need a little knowledge in order to tweak the code as needed for other books
cybmole is offline   Reply With Quote
Advert
Old 04-24-2015, 10:31 AM   #3
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,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
If you were using the Book Editor, there is a helper tool: Select the string: Ctrl-F (find hotkey): right-click in the Search box: Tokenize Selection
theducks is offline   Reply With Quote
Old 04-24-2015, 10:55 AM   #4
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
the rationale for scrapping such sources is that they often have other hard-to-fix problems: e.g paragraph breaks that occur mid sentence, missing or incomplete TOC, messed up punctuation, annoying OCR errors...

I treat the presence of hard coded "page numbers" as a warning sign:
"beware: crap conversion ahead"
cybmole is offline   Reply With Quote
Old 04-24-2015, 11:14 AM   #5
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,047
Karma: 60358908
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 cybmole View Post
the rationale for scrapping such sources is that they often have other hard-to-fix problems: e.g paragraph breaks that occur mid sentence, missing or incomplete TOC, messed up punctuation, annoying OCR errors...

I treat the presence of hard coded "page numbers" as a warning sign:
"beware: crap conversion ahead"
Hard page numbers ALSO come from PDF conversions (just one of many issues, most can be fixed with a bunch of REGEX, but NOT during conversion). OCR errors are always going to take TLC proofing to remove
theducks is offline   Reply With Quote
Advert
Old 04-24-2015, 11:20 AM   #6
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
true- but this looks more like a footer left in by MS word, or similar
e.g. file:///C|/2590%20Sci-Fi%20and%20Fantasy%20...s%2011%20-%20Time%20Nomads(v1.0)
cybmole is offline   Reply With Quote
Old 04-25-2015, 01:48 PM   #7
CarlM
Junior Member
CarlM began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2014
Device: Kindle
Cybmole: I tried your suggestion using Sigil but it didn't work, thanks for trying anyway.

Theducks: Are you talking about the book editor in Calibre?

Carl
CarlM is offline   Reply With Quote
Old 04-25-2015, 01:53 PM   #8
CarlM
Junior Member
CarlM began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jul 2014
Device: Kindle
Cybmole: Please ignore my last. I'm an idiot. I hadn't selected the correct mode. Worked a treat. Cheers.

Carl
CarlM is offline   Reply With Quote
Old 04-25-2015, 03:19 PM   #9
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,047
Karma: 60358908
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 CarlM View Post
Cybmole: I tried your suggestion using Sigil but it didn't work, thanks for trying anyway.

Theducks: Are you talking about the book editor in Calibre?

Carl
Yes!
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Aura HD Display page number Gazella Kobo Reader 4 04-07-2014 08:32 PM
Page number skully Amazon Kindle 2 05-29-2011 11:49 PM
Do they display page number? Ivy Which one should I buy? 15 12-30-2010 08:40 AM
Displaying the number of the next page. cmm Kobo Reader 4 09-09-2010 10:54 PM
ePub and number of page Haya ePub 34 12-10-2009 11:21 AM


All times are GMT -4. The time now is 07:15 AM.


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