Thread: small caps
View Single Post
Old 05-25-2011, 06:00 AM   #3
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 350
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
If you have a small cap style applied in ID.
Then you can open the xhtml files in textwrangler or another editor which does regular expressions (GREP)
search for what ever the line is, for example:

<p class="bodytext"><span class="smallcaps">This is the small caps</span>and this is the rest of the paragraph text</p>

Find/change in text editor
Find
<span class="smallcaps">(.*?)</span>
Replace
<span class="smallcaps">\U\1\l</span>

Then in your css you just need the
span.smallcaps{
font-size: 85%
}

This method "fakes" small caps by making the type uppercase but smaller
Adjust is offline   Reply With Quote