Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-06-2013, 11:10 AM   #211
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,081
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
Quote:
Originally Posted by ReaderRabbit View Post
Is there a command to fix this type of error?

<p class="calibre1">“That makes her sound like an ungrateful victim,”</p>

<p class="calibre1">Peggy said.</p>
This modified version of Join Paragraph should work:

Find:
([[:alpha:],”*])</p>\s*<p\b[^>]*>
Replace: \1

Note that there needs to be a space after \1.
Doitsu is offline   Reply With Quote
Old 03-18-2013, 03:08 PM   #212
ReaderRabbit
Member
ReaderRabbit began at the beginning.
 
ReaderRabbit's Avatar
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
I scanned through this thread and did not see a solution for this, but I am tryhing to find words in all capitals in my epub. For example: <p class="calibre1">I drove under a sign that said THE MAGNOLIA RANCH.</p> Is there a Regex for finding words with more than one letter in all caps?
ReaderRabbit is offline   Reply With Quote
 
Enthusiast
Old 03-18-2013, 03:34 PM   #213
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,081
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
Quote:
Originally Posted by ReaderRabbit View Post
Is there a Regex for finding words with more than one letter in all caps?

[[:upper:]]{2,}
Doitsu is offline   Reply With Quote
Old 03-18-2013, 03:59 PM   #214
ReaderRabbit
Member
ReaderRabbit began at the beginning.
 
ReaderRabbit's Avatar
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
Quote:
Originally Posted by Doitsu View Post

[[:upper:]]{2,}
I thought this would work too, but it does not work for me
ReaderRabbit is offline   Reply With Quote
Old 03-18-2013, 04:02 PM   #215
theducks
Staff to 4 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: 10,712
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
Quote:
Originally Posted by ReaderRabbit View Post
I thought this would work too, but it does not work for me
aren't the outer brackets supposed to be curved?
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
theducks is offline   Reply With Quote
Old 03-18-2013, 04:21 PM   #216
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,081
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
Quote:
Originally Posted by ReaderRabbit View Post
I thought this would work too, but it does not work for me
It works fine with my Sigil 7.1. version. Are you sure that you've selected the regex mode?
If all else fails, you could simply buy the book.

Quote:
Originally Posted by theducks View Post
aren't the outer brackets supposed to be curved?
No, [[:upper:]] is a POSIX character class and the two curly brackets after it specify 2 or more occurrences.
Of course, you'll also need to add two additional curved brackets around the Regex to define the backreference.
Doitsu is offline   Reply With Quote
Old 03-18-2013, 04:26 PM   #217
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 627
Karma: 1901287
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
Quote:
Originally Posted by Doitsu View Post

[[:upper:]]{2,}
Another possibility:

Code:
[A-Z][A-Z]+
Pablo is offline   Reply With Quote
Old 03-19-2013, 10:41 AM   #218
ReaderRabbit
Member
ReaderRabbit began at the beginning.
 
ReaderRabbit's Avatar
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Location: Colorado
Device: Cruz Tablet
Thank You

Quote:
Originally Posted by Pablo View Post
Another possibility:

Code:
[A-Z][A-Z]+
I ended up using a combination of both suggestions: [A-Z]{2,}

Thanks so much.


Last edited by ReaderRabbit; 03-20-2013 at 07:38 PM.
ReaderRabbit is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Examples of Subgroups emonti8384 Lounge 32 02-26-2011 06:00 PM
Accessories Pen examples Gunnerp245 enTourage Archive 15 02-21-2011 03:23 PM
Stylesheet examples? Skitzman69 Sigil 15 09-24-2010 08:24 PM
Examples kafkaesque1978 iRiver Story 1 07-26-2010 03:49 PM
Looking for examples of typos in eBooks Tonycole General Discussions 1 05-05-2010 04:23 AM


All times are GMT -4. The time now is 03:42 PM.


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