Bug#2222: sgml2txt lets troff die over -gs
Package: linuxdoc-sgml
Version: 1.4-1
sgml2txt calls troff with -mgs which results in a fatal error:
edd@miles:~/ADSM> sgml2txt ADSM-Backup
Making ADSM-Backup.txt from ADSM-Backup.sgml.
troff: fatal error: can't find macro file gs
Debian has no gs package in groff 1.09-11, but I found the following hint
in /usr/doc/groff/TODO.gz:
-----------------------------------------------------------------------------
Guess appropriate value for tmac_m and tmac_s
(if /usr/lib/tmac/tmac.s or /usr/local/lib/groff/tmac/tmac.s exists
and is not the groff -ms macros then install as -mgs else install as -ms).
-----------------------------------------------------------------------------
Indeed, replacing the -mgs with -ms works, but requires a further col -bx.
Someone more familiar with groff and friends might have a better fix.
*** /home/edd/bin/sgml2txt Tue Jan 23 17:10:38 1996
--- /usr/bin/sgml2txt Mon Jan 22 19:03:50 1996
***************
*** 96,106 ****
latin1) cat /tmp/sgml2txt$$tmp | sed -f $LINUXDOCLIB/latin1.sed | \
$LINUXDOCBIN/sgmlsasp $LINUXDOCLIB/rep/latin1/mapping | \
expand $TABS | sed -f $LINUXDOCLIB/preroff.sed | \
! groff -T latin1 -t -ms | col -bx > $TXTFILE;;
*) cat /tmp/sgml2txt$$tmp | $LINUXDOCBIN/sgmlsasp \
$LINUXDOCLIB/rep/nroff/mapping | expand $TABS | \
! sed -f $LINUXDOCLIB/preroff.sed | groff -T ascii -t -ms |
! col -bs > $TXTFILE;;
esac
rm -f /tmp/sgml2txt$$tmp
--- 96,106 ----
latin1) cat /tmp/sgml2txt$$tmp | sed -f $LINUXDOCLIB/latin1.sed | \
$LINUXDOCBIN/sgmlsasp $LINUXDOCLIB/rep/latin1/mapping | \
expand $TABS | sed -f $LINUXDOCLIB/preroff.sed | \
! groff -T latin1 -t -mgs > $TXTFILE;;
*) cat /tmp/sgml2txt$$tmp | $LINUXDOCBIN/sgmlsasp \
$LINUXDOCLIB/rep/nroff/mapping | expand $TABS | \
! sed -f $LINUXDOCLIB/preroff.sed | groff -T ascii -t -mgs \
! > $TXTFILE;;
esac
rm -f /tmp/sgml2txt$$tmp
--
Dirk Eddelb"uttel http://qed.econ.queensu.ca/~edd
Reply to: