Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-02-2013, 07:36 AM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
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;
}
In the attached ePub produced in Sigil, the desired outcome does not display in either ADE or Calibre ePub viewers.

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?
Attached Files
File Type: epub Lover or Friend.epub (939.5 KB, 124 views)
crutledge is offline   Reply With Quote
Old 08-02-2013, 09:46 AM   #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: 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:
Originally Posted by crutledge View Post
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;
}
In the attached ePub produced in Sigil, the desired outcome does not display in either ADE or Calibre ePub viewers.

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?
Because ADE does not support smallcaps. See the ADE known bugs list down in EPUB forum.
Fake it with all uppercase at fontsize: 85%
theducks is online now   Reply With Quote
Old 08-02-2013, 09:46 AM   #3
dynabook
Techno-geek
dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.
 
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
dynabook is offline   Reply With Quote
Old 08-02-2013, 09:50 AM   #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: 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
theducks is online now   Reply With Quote
Old 08-02-2013, 09:52 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by dynabook View Post
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.
It's not a font problem. It doesn't work with an embedded font unless you force it use that font (i.e., it doesn't recognize that, for small-caps, it should use this or that font which has been defined as small-caps, as it does for bold or italic).

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.
Jellby is offline   Reply With Quote
Old 08-02-2013, 10:19 AM   #6
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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.
mrmikel is offline   Reply With Quote
Old 08-02-2013, 11:46 AM   #7
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by mrmikel View Post
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.
Would you be so kind to show me how?
crutledge is offline   Reply With Quote
Old 08-02-2013, 12:04 PM   #8
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,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:
Originally Posted by crutledge View Post
Would you be so kind to show me how?
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
theducks is online now   Reply With Quote
Old 08-02-2013, 12:12 PM   #9
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by theducks View Post
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
This causes all characters to be reduced in size.

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>
The leading character is full size and the following characters are reduced insize.
crutledge is offline   Reply With Quote
Old 08-02-2013, 12:27 PM   #10
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by crutledge View Post
What is needed is something to mimic the following, which is very labor intensive:
That's the only way (without using and forcing an embedded font) that will work when the small-caps are not implemented. You have basically two options:

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.
Jellby is offline   Reply With Quote
Old 08-02-2013, 01:17 PM   #11
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by Jellby View Post
That's the only way (without using and forcing an embedded font) that will work when the small-caps are not implemented. You have basically two options:

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.
This is not the only thing that bugs me about ADE.

After about two seconds in which the consider ramifications I'll go with option b.

Thanks to everyone who responded.
crutledge is offline   Reply With Quote
Old 08-02-2013, 01:19 PM   #12
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,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.
remember to cross check the rendering on different programs.
theducks is online now   Reply With Quote
Old 08-02-2013, 11:05 PM   #13
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Jellby View Post
b) Use small-caps anyway, and let readers which don't support them display a sub-par version.
This is exactly what I do at work, and I stress it.

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>
While it will notice it if the code was:

Code:
<span class="smallcaps">Teh Octpous Had Eight Arms</span>
I have actual EPUBs if you would like to see the typo disasters due to this "smallcaps" problem.

Last edited by Tex2002ans; 08-02-2013 at 11:07 PM.
Tex2002ans is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 02:20 PM.


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