View Single Post
Old 01-30-2014, 07:53 AM   #21
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: 31,121
Karma: 60406498
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 cybmole View Post
different book - same topic

each chapter of this book opens with a small-caps phrase which appears in all capitals in sigil book view, but appears as lower case on the sony reader. e.g.

<p class="calibre5"><span class="calibre9">the cage opens at the front, a double loop</span> of chain hingeing its door at the bottom. At the top, a thicker chain and a fist-sized padlock keep the cage safely shut.</p>

.calibre9 { font-variant: small-caps }

so is there any way, short of retyping the start of every chapter , to add some CSS that ADE/sony does understand which will make that opening phrase display in caps ?

update - well google is telling me there is no CSS workaround, but could sigil's own regex engine fix this easily.

I need a regex that will transform all letters within a class ="calibre9" span to uppercase
Absolutly

I cut this from my saved searches, so it has MY line numbers

Code:
104\Name=Cleanup/Upper the case
104\Find="<span class=\"calibre9\">(.+?)</span>"
104\Replace="<span class=\"calibre9\">\\U\\1</span>"
theducks is offline   Reply With Quote