View Single Post
Old 11-09-2013, 10:44 PM   #136
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
Depends on the font, but there certainly exist bold smallcaps fonts (and italic smallcaps, although that's something LaTeX does not like)
Yeah, I have run into italic smallcaps in a few books, and I do it just like the method above (just add font-style: italic; to my smallcaps class)

Speaking of LaTeX, do you have any good tutorials on it?

Quote:
Originally Posted by Jellby View Post
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).
Genius. That is probably around the same code I would have figured out after tinkering with it tonight... now I won't have to!

I might have to start doing this, and then begin implementing in all future books/revisions.

Quote:
Originally Posted by Hitch View Post
EXCEPT, of course, you can't use Charis on Amazon, if the ePUB is destined to go there. Just noting, FWIW.
Good to know, I did not know this. Although I try to avoid embedding fonts if at all possible (I think it bloats the EPUB, and my goals are accurate text/minimal code/easy transferability than getting a certain "look").

Quick question, how do you guys at work deal with a book with lots of accented greek characters?

I did a post a while back asking this question + a sample (all greek words marked with a "greek" CSS class): https://www.mobileread.com/forums/sho...d.php?t=213688

Side Note: I am still loving this tornado we stirred up of information. Psymon has started a lot of influential ideas and raising the quality of lots of books from the discussion in this thread.
Tex2002ans is offline   Reply With Quote