01-01-2016, 10:13 PM | #1 |
Evangelist
Posts: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Finding lines with dropped opening quote
I have a particular epub that the author seems to have omitted a lot of the opening quotes at the beginning of a 'paragraph' (by this I mean right after a <p> tag). It's an intermittent problem though, not constant, which I think makes it more difficult.
An example is (this is made up text so no copyright issues)
I did try a couple of option, but the only one that worked, would also pick up the following, which doesn't need changing:
Any ideas or suggestions would be appreciated. I know I'm probably just missing something obvious, but... |
01-01-2016, 11:17 PM | #2 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I use a few for finding missing opening and closing quotes. They aren't perfect and I have to look at the matches before making changes.
Missing opening quote: Code:
(<p>)([^“]*\”.*</p>) Code:
\1“\2 Code:
”([^“]*\”) Missing closing quote: Code:
“[^”]+?<p>“ These aren't perfect and I have to look at the matches before making changes. There is a sticky thread in the Sigil forum with a lot of Regex example. It has a lot of good suggestions like this. I think the first one came from it. |
Advert | |
|
01-02-2016, 01:39 AM | #3 | ||
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
BR |
||
01-02-2016, 06:22 AM | #4 |
Evangelist
Posts: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
@davidfor - I'll certainly give them a try. At worst, it might give me a starting point.
@BetterRed - No, this is only intermittent OPENING quotes and when I re-did some spot checks this morning to be sure, none I checked were part of continuing dialogs |
01-02-2016, 04:15 PM | #5 | |
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Other Fiction Various: A Little Collection of Opening Lines from Various Novels v1. 6. Apr. 2015 | Kasper Hviid | ePub Books | 1 | 04-09-2015 12:49 PM |
K1 with lines on screen, wasn't dropped | sneakyspider | Kindle Developer's Corner | 2 | 07-11-2013 03:18 PM |
Kindle Literature Quiz Game - Quote for Quote | glowingeyegames | Self-Promotions by Authors and Publishers | 0 | 07-16-2012 12:50 PM |
What are your favorite opening lines to a sci/fi novel? | wayspooled | Reading Recommendations | 76 | 11-06-2009 08:51 AM |
Opening lines of classic novels | HarryT | Lounge | 32 | 07-11-2009 07:01 PM |