![]() |
#61 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
True, but you need to add a font for that. ADE does not support/honor the CSS attribute for small caps.
|
![]() |
![]() |
![]() |
#62 | |
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:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#63 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#64 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#65 | |
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:
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 |
|
![]() |
![]() |
Advert | |
|
![]() |
#66 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
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).
|
![]() |
![]() |
![]() |
#67 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#68 |
Zealot
![]() 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 ![]() 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. |
![]() |
![]() |
![]() |
#69 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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%; } |
![]() |
![]() |
![]() |
#70 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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 |
|
![]() |
![]() |
![]() |
#71 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
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. |
||
![]() |
![]() |
![]() |
#72 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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% |
![]() |
![]() |
![]() |
#73 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#74 |
Zealot
![]() 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. |
![]() |
![]() |
![]() |
#75 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |