![]() |
#31 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#32 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
The most helpful regex tutorial I have come across, it is my go-to reference. |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,189
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
bernie |
|
![]() |
![]() |
![]() |
#34 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() It would seem to me that none of the parentheses in the expressions being bandied about are actually necessary. Surely Code:
<a id="page_\d+"></a> Last edited by DiapDealer; 09-14-2014 at 03:26 PM. |
|
![]() |
![]() |
![]() |
#35 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
|
Thank you very much for all your input! I'll try it out tomorrow. Just one more question, even if it is a bit to the side of the main point of complaining about lackluster proofing and formatting on the part of certain publishers:
Is it possible, in Calibre, to search/replace globally in an entire book, as opposed to in individual chapter files like I'm doing now? |
![]() |
![]() |
![]() |
#37 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#38 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 294
Karma: 107414
Join Date: May 2013
Device: Kobo Glo
|
Thank you again. Who ever said that whining never accomplishes anything?
![]() |
![]() |
![]() |
![]() |
#39 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
And isn't it great for the lazy publishers that they have a whole team here to correct their mistakes?
|
![]() |
![]() |
![]() |
#40 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,792
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Doesn't even the most rabid command line hater have to admit that copy and pasting:
Code:
unzip file_name.epub sed -ie 's; <a id="page_[0-9]*"/> ;;g' *.html zip -u file_name.epub *.html |
![]() |
![]() |
![]() |
#41 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Code:
Randy has spent al <a id="page_540"/> most no time around military people. Code:
Randy has spent <a id="page_540"/> almost no time around military people. Last edited by JSWolf; 09-14-2014 at 05:25 PM. |
![]() |
![]() |
![]() |
#42 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,792
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
Quote:
|
|
![]() |
![]() |
![]() |
#43 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I don't think anyone's recommending blindly doing a Replace All. I Know the Cryptonomicon is pretty dang large, but once you get in a rhythm, it wouldn't take that long to step through and verify every occurrence. Once through and you're done.
It's pretty safe (not to mention smart) to assume that no regex is "Replace All"-safe. That assumption is why many of these errors creep in to begin with ... too much confidence in one's own S&R skills. |
![]() |
![]() |
![]() |
#44 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But given that that's page 540 that's showing and the book is over 1000 pages, that's going to be a lot of manual search/replace.
|
![]() |
![]() |
![]() |
#45 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Hour and forty-five minutes. Tops.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |