View Single Post
Old 11-16-2010, 03:29 PM   #15
playful
Mammal
playful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmosplayful has become one with the cosmos
 
playful's Avatar
 
Posts: 79
Karma: 21380
Join Date: Oct 2010
Location: Right Here
Device: Kindle DXG
@pboss and @PhillipA82, thank you for your encouragements!
@pboss, I had not seen the picture in your avatar in many years! (It's something like the emblem of the socialist party, no?)

Hi TenaciousBadger!

Thanks for explaining your process, here's a little more information if you'd like to go deeper.

In html documents, the "class" attribute in the "h1" title tag is optional and rarely set. By a luky fluke, as you report, WordPad introduces it when it converts documents to html. The attribute can be set to anything. Wordpad probably calls it "western" to refer to a "western" style (fonts, etc) it defines elsewhere in the file. In our case, the "class" is just a signpost for MobiPocket creator. I said to use "mobi" in my example, but you can use "western" or "chocolatecake", it does not matter as long as you are consistent with the name when you create the TOC in MobiPocket Creator... Which you were.

There are a few risks with letting another program generate htlm for you... Your method worked for you, that's the main thing and I am glad to hear it.

If you ever want to take full control, you can download the sample file I posted in the short kindle ebook creation tutorial. You will see that the html file is extremely simple (probably much much simpler than the file produced by WordPad), and that all you have to do to produce such a file is to:
- paste your text,
- add "h1" tags for chapter headings,
- add "br" tags for line breaks (which can be done with search and replace).
Everything else is extra and could cause problems for MobiPocket Creator on an unlucky day.

Wishing you lots of fun with your ebook projects,

Smiles,

Andy

Last edited by playful; 11-16-2010 at 03:31 PM.
playful is offline   Reply With Quote