groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Some Problem with address@hidden List?


From: Ralph Corderoy
Subject: [Groff] Some Problem with address@hidden List?
Date: Mon, 03 Nov 2003 10:45:44 +0000

------- Forwarded Message

Return-Path: address@hidden
Delivery-Date: Mon Nov  3 09:54:32 2003
Return-Path: <address@hidden>
Received: from localhost (localhost [127.0.0.1])
        by blake.inputplus.co.uk (8.11.6/8.11.6) with ESMTP id hA39sUp01664
        for <address@hidden>; Mon, 3 Nov 2003 09:54:31 GMT
Message-Id: <address@hidden>
Delivered-To: inputplu-inputplus:co:address@hidden
X-Envelope-To: address@hidden
Received: from inputplus.co.uk [66.39.34.92]
        by localhost with IMAP (fetchmail-5.9.0)
        for address@hidden (single-drop); Mon, 03 Nov 2003 09:54:31 +0000 (GMT)
Received: (qmail 44943 invoked from network); 2 Nov 2003 00:28:52 -0000
Received: from genba.ffii.org (HELO ffii.org) (212.72.72.97)
  by ruis.pair.com with SMTP; 2 Nov 2003 00:28:52 -0000
Received: (qmail 27530 invoked by uid 64014); 2 Nov 2003 00:28:50 -0000
Received: from  by genba by uid 64012 with qmail-scanner-1.16 
 02 Nov 2003 00:28:50 -0000
Date: 2 Nov 2003 00:28:49 -0000
From: address@hidden
To: address@hidden
Subject: failure notice
X-Qmail-Scanner-Message-ID: <address@hidden>
X-Spam-Filtered: 52d0813afd638bc4ffa68db06ca49a29
X-Spam-Status: No, hits=-5.1 required=4.0 
tests=MAILER_DAEMON,BAYES_01,QUOTED_EMAIL_TEXT,NO_REAL_NAME
X-Spam-Flag: NO
X-Spam-Level: 

Hi. This is the qmail-send program at ffii.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<address@hidden>:
Sorry, no mailbox here by that name. (#5.1.1)

- --- Below this line is a copy of the message.

Return-Path: <address@hidden>
Received: (qmail 27516 invoked by uid 64014); 2 Nov 2003 00:28:49 -0000
Received: from address@hidden by genba by uid 64011 with qmail-scanner-1.16 
 02 Nov 2003 00:28:49 -0000
X-Spam-Status: No, hits=-1.0 required=5.0
Received: from unknown (HELO fmailm1.svr.pol.co.uk) (195.92.193.217)
  by genba.ffii.org with SMTP; 2 Nov 2003 00:28:48 -0000
Received: from [195.92.193.210] (helo=cmailm2.svr.pol.co.uk)
        by fmailm1.svr.pol.co.uk with esmtp (Exim 4.14)
        id 1AG1Lc-0004TQ-6t
        for address@hidden; Sat, 01 Nov 2003 19:23:44 +0000
Received: from modem-3694.hyena.dialup.pol.co.uk ([81.78.126.110] 
helo=blake.inputplus.co.uk)
        by cmailm2.svr.pol.co.uk with esmtp (Exim 4.14)
        id 1AG1LZ-00079q-AH; Sat, 01 Nov 2003 19:23:41 +0000
Received: from blake.inputplus.co.uk (address@hidden)
        by blake.inputplus.co.uk (8.11.6/8.11.6) with ESMTP id hA1JNcI10171;
        Sat, 1 Nov 2003 19:23:39 GMT
Message-Id: <address@hidden>
To: Divya Dhakar <address@hidden>
cc: address@hidden
Subject: Re: [Groff] eliminating header and footer in nroff 
In-Reply-To: Message from Divya Dhakar <address@hidden> 
   of "Sat, 01 Nov 2003 12:17:41 CST." <address@hidden> 
Date: Sat, 01 Nov 2003 19:23:38 +0000
From: Ralph Corderoy <address@hidden>


Hi Divya,

> I am coding the 'man' command. So, far I have everything working with
> the page length as the default page length (80). so, in my troff
> output I dont have the
> 
> .pl1100
> 
> line. I have eliminated that.
> 
> But since troff is a printer package, it inserts formfeed due to the
> Page header and Footer. Hence, I have a few extra lines and the
> formfeed characters at the join of two pages.

groff's nroff here, which has a page length of 66 lines using -man,
doesn't insert a formfeed character anywhere.  It just puts the right
number of blank lines in, knowing that the printer will move onto the
next sheet after 66 lines.

The first output shows no formfeed character.

    $ echo abc/.bp/def | tr / \\012 | nroff -man | od -c
    0000000   a   b   c  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n
    0000020  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n
    *
    0000100  \n  \n  \n  \n  \n   d   e   f  \n  \n  \n  \n  \n  \n  \n  \n
    0000120  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n
    *
    0000200  \n  \n  \n  \n  \n  \n  \n  \n  \n  \n
    0000212

The second the number of lines per page.

    $ echo abc/.bp/def | tr / \\012 | nroff -man | uniq -c
          1 abc
         65
          1 def
         65

> I can eliminate the extra characters uusing the more -v option and the
> extra blank lines using the more -s option but I want to generalize
> the solution to this problem.  There might be people who might not
> want to use 'more' for their output.
> 
> Hence, please tell me some way which will avoid the inserting of these
> formfeed characters in my troff output.

Can you show us some sample input, how you process it, and what comes
out, and someone may have a better idea than I.

Cheers,


Ralph.


------- End of Forwarded Message


reply via email to

[Prev in Thread] Current Thread [Next in Thread]