From owner-freebsd-current@FreeBSD.ORG Tue Oct 4 20:57:12 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A725A1065672 for ; Tue, 4 Oct 2011 20:57:12 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 662C78FC08 for ; Tue, 4 Oct 2011 20:57:12 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1RBC2s-0000a3-Ui for freebsd-current@freebsd.org; Tue, 04 Oct 2011 21:57:09 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1RBC2i-0003ir-OD for freebsd-current@freebsd.org; Tue, 04 Oct 2011 21:56:48 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id p94KummE019544 for ; Tue, 4 Oct 2011 21:56:48 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id p94KumhN019543 for freebsd-current@freebsd.org; Tue, 4 Oct 2011 21:56:48 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Tue, 4 Oct 2011 21:56:48 +0100 From: Anton Shterenlikht To: freebsd-current@freebsd.org Message-ID: <20111004205648.GA19519@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: groff -ms -Tascii (nroff?) strange output X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2011 20:57:12 -0000 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 ./ 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