Thread: PDF vs LRF etc
View Single Post
Old 02-22-2009, 01:37 PM   #11
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 UncleIvor View Post
What do others think?
I happen to like the built-in sans serif font in the reader, so I create rtf files from the plain text files directly.
If you have a look at the rtf file produced by MSOffice or OpenOffice.org you will be shocked with the level of unnecessary information included in the rtf file.

So I tried quite a few editors looking for the cleanest looking rtf file.
I have created a file with the layout I like in Ted word processor and I then "stole" the simplest possible rtf code needed for the desired layout.
Now, I generate rtf file directly form a plain text editor (not a word processor) using a simple macro.

Just put
/par
at the end of each paragraph,
include character } at the end of the file and
add header
{\rtf1\ansi
\deff6
{\fonttbl
{\f6\fswiss\fcharset0 Helvetica;}
}
{\*\generator Vim script;}
{\info
{\title TitleOfTheBook}
{\author AuthorOfTheBook}
{\creatim \yr2009\mo1\dy9\hr20\min40\sec30}
{\revtim \yr2009\mo1\dy10\hr22\min46\sec11}
}
\paperw8424\paperh11908\margl1\margr1\margt1\margb 1
\ftnbj\aenddoc\ftnrstcont\aftnrstcont\ftnnar\aftnn rlc
\sectd\headery1\footery1
\pard\fi239\li1\ri1\plain\f6\fs32


That is it.
If you are interested in elaborate macro for the Vim editor for creating rtf files directly from txt or html files send me a message.
kacir is offline   Reply With Quote