View Single Post
Old 10-10-2010, 05:09 PM   #13
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
I don't think I want to get in the way of you learning and achieving what you want in the way that best suits you.
However, I feel the need to say a couple more things in case it saves you work.
  1. I reiterate that MSWord will automatically wrap certain tags around your text if you apply the correct built-in style. e.g. if you apply style 'Heading 1' to your heading text then the output HTML will be <h1>My heading text</h1>

  2. Regarding the id attributes in your <h1> and <h2> tags. If you've put these in to help create a TOC at some point, you may like to know that it isn't actually necessary. If you tell calibre that your Chapters are defined by <h1> and/or <h2> then it will do all the required work to create a perfect TOC.

  3. You may find it easier to get the fonts you want on your reader by using more generic specification of font-family in your CSS. e.g.
    Code:
    h1 {font-family: monospace;} rather than Courier 
    h2 {font-family: sans-serif;} rather than Verdana
    and, although I notice your example specified Courier as its default text, if you wanted it to be a serif font then
    Code:
    body {font-family: serif;}
    Your reader will then use its default monospace, sans-serif, serif fonts to display your text.

    If you want to customise your reader's default epub fonts you can change them, but that's a story for another day.

As for actionscript cookbooks - you're way beyond me there
jackie_w is offline   Reply With Quote