View Single Post
Old 12-15-2008, 09:19 PM   #14
lannp
Junior Member
lannp began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2008
Device: PRS-505
eBookCreator.dot hangs Word 2003

Quote:
Originally Posted by jaffab View Post
Not a problem. The template is available at

http://www.touchstone-systems.co.uk/eBookCreator.dot

The steps I go through to get the books just as I want them is as follows:

1) Get hold of your dodgy PDF book
2) Run PDF2Word, and save as an RTF
3) Open the RTF, and open the DOT (you now have two word screens open)
4) Go to the RTF, CTRL+A to select all text (it ignores the headers and footers), CTRL+C to copy
5) Go to the eBookCreater.DOT screen and paste in the text
6) Now, if the text has page numbers in it, Goto the menu Tools > Macro> Visual Basic Edit, and change the code there (procedure A_One_Off_Quick_Fix, it should be the one that opens up) to change the format of the Page number - Some books just have the page number, some have "Page xx", some have "Page xx of yy" - just change the Page string in the .Text line to the correct format. xx is the selected page number (1 to 600), and run the amended script by pressing the green triangle to remove the page numbers. (As an example, if the book has "Page 5 of 160" in it, change the line to ".Text = "^pPage " & xx & "of 160^p^p^p"). Now close the code editor screen to return to the book.
7) To sort out all the formating, word wraps, press the last menu icon (Format Book). Depending on the size of the book, this will take between 1 and 6 minutes
8) What I then do, depending on the layout of the book, is do a find and replace, change "^p^p^p^p^p^p" to "^p^p" - do this as many times as there are replacements - this gets rid of big gaps between chapters
9) For my eyes, I then select all the text and change the font to Time Roman, 15pt (good size for small and medium reading).
10) Next, press the AutoChapter - this makes chapter headings big and bold
11) Goto the top, hightlight the Book title, Author etc, and as each is highlighted, press the corrisponding buttons on the menu (Title, Author, etc).
12) Goto File > properties, and if you want, change the file Title and Author - this is what the Sony 505 uses to index the book for reading
13) Save the file as a new RFT
14) Load onto the Sony, and enjoy.
Hi. I tried your eBookCreator.dot following your notes above but the macro always hangs my Word 2003. It did a lot of processing and then just hangs: "Not responding" Word app. I tried this on one Dell laptop and one Dell desktop. Both XP Pro. I just load the RTF and click on "Format Book." What did I do wrong? I am experienced VB programmer, but rarely use VBA.

Last edited by lannp; 12-15-2008 at 09:35 PM. Reason: Typo
lannp is offline   Reply With Quote