Reading RTF files
Ehud Karni
ehud at unix.mvs.co.il
Thu Jul 9 14:35:39 IDT 2009
On Thu, 9 Jul 2009 10:12:23 ik wrote:
>
> If you do not afraid from some programming (not a lot of it), I can suggest
> you Lazarus and some 3rd party component that allow you to display RTF
> files. It's cross platform solution, so it can also work with Linux.
I use `catdoc' which works quiet good (for both *doc and *rtf).
`catdoc' is available as a package for Centos and Debian.
Here is a script I use:
catdoc -d8859-8 "$1" | \
fribidi --charset ISO8859-8 --width 90 --rtl > "${1}_h_txt"
nohup xmessage \
-background yellow -foreground Black -center \
-file "${1}_h_txt" -title "$1" -xrm "$1.Scroll:whenNeeded" \
-font "-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-8" \
-buttons "$SPC E x i t $SPC ס י ו ם $SPC" > /dev/null &
sleep 1 # allow xmessage to start
rm "${1}_h_txt" # remove if not used
Ehud.
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry
More information about the Linux-il
mailing list