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 10-09-2015, 06:44 PM   #1
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
anybody got a Sigil regex for words with all caps?

I'm looking for words with all caps (in a 57K doc) so I can apply small caps tags to them (if they're signs). Is there a Sigil regex for just finding words with all caps? Or if no Sigil regex, then a LibreOffice regex? Thanks
Gregg Bell is offline   Reply With Quote
Old 10-09-2015, 06:56 PM   #2
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: 29,768
Karma: 54401244
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 Gregg Bell View Post
I'm looking for words with all caps (in a 57K doc) so I can apply small caps tags to them (if they're signs). Is there a Sigil regex for just finding words with all caps? Or if no Sigil regex, then a LibreOffice regex? Thanks
([A-Z]{3,})
theducks is offline   Reply With Quote
Advert
Old 10-09-2015, 07:12 PM   #3
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by theducks View Post
([A-Z]{3,})
Thanks ducks
Gregg Bell is offline   Reply With Quote
Old 10-09-2015, 08:42 PM   #4
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: 29,768
Karma: 54401244
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 Gregg Bell View Post
Thanks ducks
That is not perfect, it looks foe 3 or more LETTERS, no spaces, no punctuation


I don't have one for a phrase

Maybe you should use inverted logic look for the first Lower

(<p.*>)(.+)(\s[a-z])

Replace the opening P tag and wrap the first part in your span, then put the letter back
\1<span class="smallcap">\2</span>\3
theducks is offline   Reply With Quote
Old 10-10-2015, 02:30 PM   #5
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,264
Karma: 3917588
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by theducks View Post
That is not perfect, it looks foe 3 or more LETTERS, no spaces, no punctuation


I don't have one for a phrase

Maybe you should use inverted logic look for the first Lower

(<p.*>)(.+)(\s[a-z])

Replace the opening P tag and wrap the first part in your span, then put the letter back
\1<span class="smallcap">\2</span>\3
Thanks ducks. That first one you gave me is perfect because I only need to use small caps on acronyms that are four letters or longer. And if there's a phrase there's always at least one word that's three letters so your regex will get me there and then I'll see the smaller words.

Thanks for the new one too. I'll experiment with it. Might come in handy in the future.
Gregg Bell is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RegEx Question: H1 ALL CAPS to All Caps phossler Sigil 21 02-06-2014 02:44 PM
Is there RegEx to <span> ALL CAPS text? phossler Sigil 4 03-10-2013 02:43 PM
Keeping small caps when converting from sigil to calibre sly_skittle Sigil 8 03-22-2012 05:59 PM
Help with regex expression for words in all caps bfollowell Sigil 9 01-20-2012 05:11 PM
small caps problem in Sigil goroke Sigil 16 08-05-2011 12:14 PM


All times are GMT -4. The time now is 11:33 PM.


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