Quote:
Originally Posted by UncleIvor
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.