View Single Post
Old 10-27-2006, 08:29 PM   #24
njt
Enthusiast
njt began at the beginning.
 
Posts: 37
Karma: 14
Join Date: Oct 2006
Quote:
Originally Posted by AnsgarSerif
njt,

Thanks! I don't think that this macro, in it's entirety, would work with a .doc or HTML file, since it'd probably start deleting line breaks that it shouldn't and foul everything up - it should be possible to start the process somewhere later along the line (say the HeadingStyles macro) and have a finished product that looks the same as a .txt conversion. I'll try it out later today.

Could you run a .txt file through the macro and then upload the .txt file, the .odt file and the .pdf file so I can see why the PDF bookmarking isn't working for you? Or do you get the bookmarks to show up on the computer but not the Sony Reader? If that's the case, then please let me know how I can change the program to make it right - I don't have my Reader yet, so I'm pretty much shooting from the hip with my eyes closed as to how it will display.

Note that if you've got a book structure that doesn't use the word "Book" or "Chapter" to separate different parts of the book, you're not likely to see chapter headings automatically applied - a good example is "Treasure Island," which uses "Parts" as books- since "Part" is not uncommon at the beginning of a normal sentence, I didn't include it in the macro - you have to set these to "Book Heading" yourself. To use "Treasure Island" again, none of the chapters have the "Chapter" label - it's just 1, 2, 3 ... you have to go through and manually adjust those, too.

I've uploaded (or will in five minutes time) a new .zip file, since I erased a function that converted the whole text to "Sony Reader - Text Body" before applying Heading Styles - that's why the text doesn't look consistent sometimes. The template is the only thing I changed, so I'll add it to this post. Sorry about that!

Sam
Thanks for the new version. I'll be sure to try it out later tonight. As for you not having one yet, that makes sense now. The font at which you have it right now is quite quite small. (I changed mine to arial 11 bold) which works quite well .

In regards to the html/ doc comment, what I meant was, they could convert those to txt and just convert again using this macro from there. Unless the html/doc had some fancy formatting this would probably produce a better looking book. Just my thought on that .

As for the bookmarks, I just realized why. The books I was testing this out on were Sherlock and the time machine. Neither have chapters in the way you describe thus the need for manually editing.

Anyways, off to work! I'll try this later tonight.

Last edited by njt; 10-27-2006 at 08:31 PM.
njt is offline   Reply With Quote