delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/16/15:16:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 16 Jun 2004 15:14:32 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT equate DOT f9 DOT co DOT uk
cc: cygwin AT cygwin DOT com
Subject: Re: Rxvt manpage from rxvt 2.7.10-4
In-Reply-To: <ECOWS05M3VBwWFLvPOJ0000ad1f@smtp-out5.blueyonder.co.uk>
Message-ID: <Pine.GSO.4.58.0406161510200.424@slinky.cs.nyu.edu>
References: <ECOWS05M3VBwWFLvPOJ0000ad1f AT smtp-out5 DOT blueyonder DOT co DOT uk>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 16 Jun 2004, cygwin wrote:

> The rxvt manpage has some rather strange bits in it, that seem to be
> formatting instructions for another app..
>
> I found this info searching the archives:
>
> s/^\.YODLTAGSTART\./\.YYODLTAGSTART\./
> s/\.YODLTAGSTART\./\r\.YODLTAGSTART\./g
> s/\.YODLTAGSTART\. roffcmd //
> s/\.YYODLTAGSTART\. roffcmd //
> s/\.YODLTAGEND\.//
> s/\n\.YYODLTAGSTART\..*//
>
> call it patch.sed.
>
>
> $ cp /usr/man/man1/rxvt.1 /tmp/
> $ sed -f patch.sed /tmp/rxvt.1 > /usr/man/man1/rxvt.1
>
>
> Contributed by Jason Pearce...
>
> However, this still leaves some info that should not be there...
>
> RXVT(1)                             X Tools
> RXVT(1)
>
>     .SH "NAME" rxvt (ouR XVT) - a VT102 emulator for the X window system.PP
>
>     .SH "SYNOPSIS"
>
>        rxvt [options] [-e command [ args ]].PP
>
>            .SH "DESCRIPTION"
>
>
> That's what I get under cygwin.
>
>
> On my debian box, with an admittedly older version of rxvt (2.6.4 :-/ ), I
> get the following:
>
> 1(RXVT)                             X Tools
> 1(RXVT)
>
> NAME
>        rxvt (ouR XVT) - a VT102 emulator for the X window system
>
> SYNOPSIS
>        rxvt [options] [-e command [ args ]]
>
> DESCRIPTION
>
>
> And so forth. Note that the section titles aren't bolded in cygwin for rxvt,
> but are in linux..
>
> Anyone have any sort of resolution to this? (Just copy the manpage from a
> working linux box?)
>
> Cheers, Chris

Just change the above sed script.  Your problem seems due to the spaces
left before the .SH tags.  Try the following patch.sed:

s/^\.YODLTAGSTART\./\.YYODLTAGSTART\./
s/\.YODLTAGSTART\./\r\.YODLTAGSTART\./g
s/ *\.YODLTAGSTART\. roffcmd //
s/\.YYODLTAGSTART\. roffcmd //
s/\.YODLTAGEND\.//
s/\n\.YYODLTAGSTART\..*//

You may also need to add a space before the \.YODLTAGEND\. pattern, but I
think that's not necessary.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019