View Single Post
Old 05-30-2008, 05:14 PM   #32
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 3,463
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Quote:
Originally Posted by pilotbob View Post
Have you tried OpenOffice/SunOffice or MS Works instead? What about Google Docs? Although I don't think it will make much difference considering RTF is a standard.
It does make huge difference.
When formatting latest free e-books I have received by email from Tor I have tried many options. When you copy and paste document from browser into OpenOffice.org writer or into MSWord the result does not even open properly in Sony reader. So I have opened rtf files in plain text editor, and ... You would not believe the mess the editors do when writing rtf file.

I ended up creating an rtf file by hand - using macros (scripts) in a plain text editor -- Vim.

- open html file
- replace all <i> tags with \i
- replace all </i> tags with \i0 tag
- replace all <p something> tags with \par
- delete all the rest of html tags -- :%s/<[^>]*>//g
- insert file header "stolen" from a very simple word pad created file (on Unix and Linux I use Ted editor that produces THE cleanest rtf code I have seen to date)
- insert footer "stolen" from the file above
- rename *html to *rtf

File size is small fraction of the same book formated in word processor.
kacir is offline   Reply With Quote