View Single Post
Old 11-09-2013, 08:40 AM   #129
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,563
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Tex2002ans View Post
So is this because there is no such thing as a font with "smallcaps + bold" (just like there are fonts for "bold", "italics", "bold/italics", "smallcaps")?
Depends on the font, but there certainly exist bold smallcaps fonts (and italic smallcaps, although that's something LaTeX does not like)

Quote:
What/how is Sigil (or a browser) displaying such a thing?
I guess they mostly fake the smallcaps with the bold font. You can try it here.

Maybe you haven't noticed it, because faked smallcaps look thinner than they should, which is somehow countered with a bold font... but with the uppercase letters or with real smallcaps it is quite noticeable.

Quote:
I will take a closer look and do some testing later today. So what you are saying is implementing your .xpgt and doing something like:

Code:
<p class="noindent"><spanclass="ade">I<span class="simsmallcaps">NTERNATIONAL PROBLEMS</span></span><span class="noade smallcaps">International problems</span>, economic as well as political, [...]
Seems like it might get hairy real quickly (even moreso than just leaving the simulated smallcaps in there by themselves).
Indeed, that would be quite a nuisance... No, what I suggest is

Code:
<p class="noindent"><span class="smallcaps">International problems</span>, economic as well as political, [...]

span.smallcaps {
font-variant: small-caps;
}
and then in the .xpgt, which is only visible to ADE, add:

Code:
<ade:template xmlns="http://www.w3.org/1999/xhtml" xmlns:ade="http://ns.adobe.com/2006/ade" xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <ade:style>
    <ade:styling-rule selector="span.caps" font-weight="bold"/>
  </ade:style>
</ade:template>
which is the equivalent of:

Code:
span.smallcaps {
font-weight: bold;
}
(or underlined, or grey background, or whatever style we want to replace the smallcaps with in ADE).
Jellby is online now   Reply With Quote