![]() |
#1 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Something screwey
I have been using the following style for somewhile with no problems. The CSS passes W3C with no errors.
Code:
.smcap { font-variant: small-caps; } No problems in Sigil, Kindle or LRF. I have looked at this thing so long I nolonger see it. Will someone point out what I cant see? ![]() |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Fake it with all uppercase at fontsize: 85% |
|
![]() |
![]() |
![]() |
#3 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
I have discovered and no doubt others will tell you that ADE does not support smallcaps without an embedded font with smallcaps in it. Sigil has access to the PC fonts. Kindle may support smallcaps. I know my Sony reader does not without an embedded font.
--MH |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Tie
![]() |
![]() |
![]() |
![]() |
#5 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Most browser-type HTML engines support are able to fake small-caps themselves by doing what you'd do manually (change the text to uppercase and set it smaller), but not ADE. |
|
![]() |
![]() |
![]() |
#6 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Maybe the one ray of sunshine in having to fake it is that you make your small caps just exactly what you want for your application...a bit bigger or a bit small than standard is dead easy using css.
|
![]() |
![]() |
![]() |
#7 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
|
![]() |
![]() |
![]() |
#8 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Wrap the phrase in a span
Code:
<P>Stuff <span class="fakesmcaps">THE PHRASE NOW SHOWS AS SMALL CAPS</SPAN> More stuff.</p> Code:
.fakesmcaps { fontsize: 85%; } If the phrase is not already upper case, you can use the default Clips (apply to selection)UPPERCASE REGEX Code:
\U\1\E |
![]() |
![]() |
![]() |
#9 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
What is needed is something to mimic the following, which is very labor intensive: Code:
T<small>HE</small> P<small>HE</small> N<small>HE</small> S<small>HE</small> A<small>HE</small> S<small>HE</small>L C<small>HE</small> |
|
![]() |
![]() |
![]() |
#10 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
a) Accept it and write ugly, hackish, unmaintanable code like that. b) Use small-caps anyway, and let readers which don't support them display a sub-par version. |
|
![]() |
![]() |
![]() |
#11 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
After about two seconds in which the consider ramifications ![]() Thanks to everyone who responded. ![]() |
|
![]() |
![]() |
![]() |
#12 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Charlie
Adjust the size percentage (% of the base P) to taste. You can also add font-weight adjustments or any other stylistic treatments. ![]() |
![]() |
![]() |
![]() |
#13 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Unreadable/unmaintainable code = garbage. It also makes it a huge pain finding typos as well, as spellcheck does not work on: Code:
T<small>EH</small> O<small>CTPOUS</small> H<small>AD</small> E<small>IGHT</small> A<small>RMS</small> Code:
<span class="smallcaps">Teh Octpous Had Eight Arms</span> Last edited by Tex2002ans; 08-02-2013 at 11:07 PM. |
|
![]() |
![]() |