View Single Post
Old 10-27-2006, 12:49 PM   #23
AnsgarSerif
Member
AnsgarSerif began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Oct 2006
Device: Sony PRS-500
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
Attached Files
File Type: zip Project Gutenberg Conversion Template.zip (14.1 KB, 364 views)
AnsgarSerif is offline   Reply With Quote