groff -ms -Tascii (nroff?) strange output

From: Anton Shterenlikht <mexas_at_bristol.ac.uk>
Date: Tue, 4 Oct 2011 21:56:48 +0100
I'm having problems similar to this thread:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=91536+0+archive/2011/freebsd-current/20110821.freebsd-current

The solution suggested was to use man ./<local man page>

However, my document is not a man page,
and I use ms macros.

Test document:

BUZI> cat try.1 
.TL
Some title
.AU
Some clever author
.AI
Some fancy institution
.NH 1
Introduction


BUZI> groff -ms -Tascii try.1 | more

                         ESC[1mSome titleESC[0m


                     ESC[4mSomeESC[24m ESC[4mcleverESC[24m ESC[4mauthorESC[0m
                   Some fancy institution


ESC[1m1.  IntroductionESC[0m



BUZI> groff -ms -Tascii try.1 | col -b | more

                         1mSome title0m


                     4mSome24m 4mclever24m 4mauthor0m
                   Some fancy institution


1m1.  Introduction0m



How can I get a plain text rendering
from a troff document with ms macros?

Many thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
Received on Tue Oct 04 2011 - 18:57:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC