Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-08-2012, 04:47 AM   #61
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by bobcdy View Post
I must differ with you about that depending on what you mean by 'simulated'. I done numerous epubs that have smallcaps fonts and they show perfectly on ADE, and also on my bebook one, prs-950, and rooted nook native ADE reader and Aldiko.
True, but you need to add a font for that. ADE does not support/honor the CSS attribute for small caps.
Toxaris is offline   Reply With Quote
Old 05-08-2012, 10:08 AM   #62
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 Toxaris View Post
True, but you need to add a font for that. ADE does not support/honor the CSS attribute for small caps.
+1 to this..

Advice given is for Native support.
In many cases there is a work-around , but like centered, fractional <hr />, it does not happen unless you do the work-around, trick.
theducks is offline   Reply With Quote
Advert
Old 05-08-2012, 02:44 PM   #63
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Ditto. +1 fersure. Toxie and Duckie know whereof they speak.

Hitch
Hitch is offline   Reply With Quote
Old 05-08-2012, 10:41 PM   #64
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
Perhaps my confusion came from my interpretion of 'simulated' to mean something like:

T<span class="small">HE</span>

I see from internet usage, however, that a simulated small cap is a small cap created by the css property 'font-variant: small-caps;' and this small cap will only approximate a true small cap font that is created by embedding.

Last edited by bobcdy; 05-08-2012 at 11:03 PM.
bobcdy is offline   Reply With Quote
Old 05-08-2012, 11:39 PM   #65
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 bobcdy View Post
Perhaps my confusion came from my interpretion of 'simulated' to mean something like:

T<span class="small">HE</span>

I see from internet usage, however, that a simulated small cap is a small cap created by the css property 'font-variant: small-caps;' and this small cap will only approximate a true small cap font that is created by embedding.
Your example appears to be the work-around
where "small" probably includes something like : font-size 85%

T<span class="smallcap">he</span>
with the font variant, should raise the lower case letters to HE and be smaller than the Upper case letters
theducks is offline   Reply With Quote
Advert
Old 05-10-2012, 09:32 AM   #66
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 bobcdy View Post
I see from internet usage, however, that a simulated small cap is a small cap created by the css property 'font-variant: small-caps;' and this small cap will only approximate a true small cap font that is created by embedding.
That's only simulated if the browser does not know how to use a true smallcaps font, or if it's not available. It would be the same for 'font-style: italics', for instance, if there is no italic variant available, the browser could simulate it by artificially slanting the font (ADE will do this in that case, I believe). Similarly, if there is no true smallcaps font, the browser can simulate it. There are fonts which include true smallcaps variants, and there are even OTF fonts that have them in the same file. However, as far as I know, ADE will neither use nor simulate smallcaps. Even with embedded fonts, I believe you have to use a different family name for the smallcaps font in ADE (i.e., you cannot simply define it as a smallcaps variant of other font, something you can do with italics or bold).
Jellby is offline   Reply With Quote
Old 05-10-2012, 09:55 AM   #67
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
You are correct Jellby. It is unfortunate, but untill ADE changes this, I am afraid most readers will not support this. I can understand that they wanted to keep the installed font small, but they should have at least either supported automated smallcaps (like slanting) or support it when a font does have the smallcaps included.
Toxaris is offline   Reply With Quote
Old 05-10-2012, 11:22 PM   #68
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 104
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Thanks for the enlightenment guys! (still wasn't getting notifications since there seems to be another thread-level choice that was turned off).

It's mystifying that Adobe would choose to create another Microsoft-style monopoly-driven standards failure, but I suppose there's not much to be done about it. HTML/CSS is so standard and prevalent these days it really makes no sense to support only a random subset.

I had already tried faking small caps (font-size: 80%; text-transform: uppercase, so I could easily just change styles. Don't suppose anyone's come up with a hacky way of detecting ADE like the old IE hacks?

I was also relying on percentage widths for <hr/> too; I wonder if it can be hacked around with <div>s. Time to download ADE I suppose.
seanos is offline   Reply With Quote
Old 05-11-2012, 02:07 AM   #69
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Actually, Adobe is not fully to blame here. The IDPF specifications of the the ePUB format are sometimes vague or open to interpretation. According to those specifications, not the whole CSS2 and XHTML format should be supported.
However, small-caps should be according to the specifications.

For smaller <hr /> you can always use something like:
Code:
hr.small {
 margin-left: 30%;
 margin-right: 30%;
}
If you use this class, you would get a centered line 40% of the screen width.
Toxaris is offline   Reply With Quote
Old 05-11-2012, 05:48 AM   #70
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Smallcap doozies and other strangers...

Quote:
Originally Posted by seanos View Post
Thanks for the enlightenment guys! (still wasn't getting notifications since there seems to be another thread-level choice that was turned off).

It's mystifying that Adobe would choose to create another Microsoft-style monopoly-driven standards failure, but I suppose there's not much to be done about it. HTML/CSS is so standard and prevalent these days it really makes no sense to support only a random subset.

I had already tried faking small caps (font-size: 80%; text-transform: uppercase, so I could easily just change styles. Don't suppose anyone's come up with a hacky way of detecting ADE like the old IE hacks?

I was also relying on percentage widths for <hr/> too; I wonder if it can be hacked around with <div>s. Time to download ADE I suppose.
@seanos:

I have to add to this, even though I'm not sure it's directly relevant to your topic, that we've had some real doozy issues with Nook and smallcaps. Now, primarily, we tried, with a very difficult client who could NOT get past it, to do a Raised Initial + smallcap header for chapter and sub-chapter heads, so that the Raised Initial would rise a bit above the small caps.

It never worked, primarily due to B&N's screwing around with the bloody hyphenation. We could get the Raised Initial + smallcaps--but the header would break oddly (in Nook, if you don't overtly turn hyphenation off, it simply hyphenates wherever it runs out of space--NOT at a syllable). If we turned hyphenation off, it would vertically align the whole header. If we left it on, (hyphenation), we'd get bizarro-world hyphens. Due to having two spans inside the header, we could never, ever get it to work.

I don't know if there's been an update since, but that one nearly pushed me over the edge; we must have tried, I kid thee not, 24-25 variants to get it to emulate SOMEHOW...and it never would. I even reached out to Josh at EBA; nada. We tried "real" smallcaps; we tried text-variants; we tried text-size...you name it. We tried it ALL.

So: I'd highly recommend that you download ADE, and if you don't have a Nook, DL their dreadful reading app, Nook for PC. It is far from perfect, but it renders the ePUBs relatively faithfully to what the Nook device will do, and trust me when I tell you, weird stuff happens. As everyone here will tell you, don't even get me STARTED on iBooks' app...just wait until you start playing with that!

Hope this helps, or at least saves someone from pulling their hair out,
Hitch
Hitch is offline   Reply With Quote
Old 05-11-2012, 08:57 AM   #71
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 seanos View Post
I had already tried faking small caps (font-size: 80%; text-transform: uppercase;), so I could easily just change styles.
Good try, but "text-transform" is not in the ePub spec (unlike "font-variant" which is in the spec, but not supported by ADE).

Quote:
Don't suppose anyone's come up with a hacky way of detecting ADE like the old IE hacks?
You can, sort of, by using conditional styles in the page template. I explained it somewhere in the ePub forum, I think it was in the "snippets" thread. I've used this trick for two things so far:

1. Hide elements supposed to be in a header (display: oeb-page-head), which ADE wrongly leaves in the normal text flow. I don't know of any reader that actually supports headers, but at least they should hide the content.

2. Apply some different style instead of smallcaps in ADE. Often, smallcaps are used simply as a way of emphasizing or making some text stand out, and it's not really that important for the text to be rendered actually as smallcaps. In this case, I change the style to bold, or gray background, or underlined... but it's still set as smallcaps in the main CSS.
Jellby is offline   Reply With Quote
Old 05-11-2012, 10:18 AM   #72
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Given the default font size of 1em, a smallcap should be .75em or 75%...

font-size: .75em
font-size: 75%
JSWolf is offline   Reply With Quote
Old 05-11-2012, 07:10 PM   #73
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
That depends on the particular font and its x-height.
Jellby is offline   Reply With Quote
Old 05-13-2012, 12:46 AM   #74
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 104
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Thanks for the continuing advice...might be useful if I got notifications from the forum. Last time I switched them on I got a digest immediately, but nothing since.

ADE quickly showed me text-transform was misguided and I found the hr solution elsewhere. A bit of trial and error has got me to a reasonable accommodation with ADE.

@Hitch: I plan to totally ignore Apple's unnecessary proprietary format so I won't experience any headaches in that direction. I'm only editing an out-of-copyright book that was only available as a largely unintelligible OCR'd epub so I don't need to worry about a market in Apple's evil empire.
seanos is offline   Reply With Quote
Old 05-13-2012, 06:05 AM   #75
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
@seanos:

Frankly, Nook is almost as large a headache, and it's the second-largest market behind Amazon, followed by Kobo, in terms of sales. Very annoying. ;-)

HTH,
Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you turn off default text-indent <p> in Nook DAntkowiak Barnes & Noble NOOK 9 07-11-2013 10:43 AM
Tidy use and issue DaleDe Sigil 7 06-19-2011 07:22 PM
tidy still helping me - sigh... bobcdy Sigil 2 12-19-2010 07:14 PM
HTML Tidy problems pdurrant Sigil 2 04-08-2010 07:38 AM


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


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