/usr/bin/rtf2brl is in liblouisxml-bin 2.4.0-2build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #! /bin/bash
usage () {
cat <<"EOF"
rtf2brl [OPTION] infile outfile
Options:
--help Print this message
--version Print version information
Infile must be a rich-text (rtf) file. The script first calls the
`rtf2xml' program, so you must have this installed on your machine.
You can find it on the downloads page of www.abilitiessoft.com.
rtf2brl produces an xml file with the root element `doc'. This is
piped to `xml2brl'. The output file from `xml2brl' contains much of
the formatting, including emphasis, of the rtf file.
EOF
}
version () {
cat <<EOF
$(basename $0) 2.4.0
Copyright (C) 2004-2009 ViewPlus Technologies, Inc.
Copyright (C) 2007,2009 Abilitiessoft, Inc.
License LGPL: GNU LGPL <http://gnu.org/licenses/lgpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John J. Boyer
EOF
}
while [ $# -gt 0 ]; do
case "$1" in
-h | --help | -help )
usage
exit 0 ;;
--version )
version
exit 0 ;;
* )
break ;;
esac
done
rtf2xml $1 |xml2brl >$2
|