![]() |
#1 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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" ![]() |
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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) |
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |