SGI: Development

nroff -man blank page prefix output - what am I doing wrong?

Hi,

I am writing a man page, the neko_groff is emitting blank pages at the start of the output, even for postscript as output.

Code: Select all

$ which groff
/usr/nekoware/bin/groff
$ groff -version
GNU groff version 1.19.1
Copyright (C) 2004 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

called subprograms:

GNU eqn (groff) version 1.19.1
GNU grops (groff) version 1.19.1
GNU troff (groff) version 1.19.1


My man page is really simple

Code: Select all

$ cat testpage
.TH TESTPAGE 1 "3 January 2012"
.SH NAME
testpage(1) \- A test page


On Linux, I get

Code: Select all

$ groff -version
GNU groff version 1.18.1.1
Copyright (C) 2002 Free Software Foundation, Inc.
GNU groff comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of groff and its subprograms
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

called subprograms:

GNU eqn (groff) version 1.18.1.1
GNU troff (groff) version 1.18.1.1
GNU grops (groff) version 1.18.1.1


and my output looks sensible:

Code: Select all

$ nroff -man <testpage
TESTPAGE(1)                                                        TESTPAGE(1)



NAME
testpage(1) - A test page



3 January 2012                     TESTPAGE(1)


however on IRIX, I get 40 blank lines ( bare LF ) prepended to the output. I've tried with both nekoware on and off the path. I don't have the original SGI versions of the programs.

Any suggestions? ( apart from strip them off afterwards )

Thanks,

porter
Land of the Long White Cloud and no Software Patents.
Have you checked the an macros on the Irix machine for problems?
Torfinn
I have a default install of neko_groff. I have very limited *roff knowledge except what I need to write man pages using existing macros.

I was rather hoping somebody could just confirm my findings, and ideally compare the output with native SGI provided nroff.
Land of the Long White Cloud and no Software Patents.
porter wrote: I have a default install of neko_groff. I have very limited *roff knowledge except what I need to write man pages using existing macros.

I was rather hoping somebody could just confirm my findings, and ideally compare the output with native SGI provided nroff.


Some people hate awf but anyways...

Code: Select all

tezro:~/code2/roger-test> cat > testpage
.TH TESTPAGE 1 "3 January 2012"
.SH NAME
testpage(1) \- A test page
tezro:~/code2/roger-test> awf testpage
/usr/bin/awf: must specify -ms or -man
tezro:~/code2/roger-test> awf -man testpage


TESTPAGE(1)         Unix Programmer's Manual          TESTPAGE(1)


NAME
testpage(1) - A test page













































3 January 2012                         1


tezro:~/code2/roger-test>
tezro:~/code2/roger-test> man awf

awf(1)                                                                  awf(1)

NAME
awf - amazingly workable (text) formatter

SYNOPSIS
awf -macros [ file ] ...

DESCRIPTION
Awf formats the text from the input file(s) (standard input if none) in
an imitation of The -macro option is mandatory and must be `-man' or
`-ms'.



I don't have nroff installed on this machine, no time to fire up the main beasts, and I don't know where SGI nroff comes from ... and I haven't the time to go through 6.5.30 overlays or the foundation disks. No time at all lately.


R.
死の神はりんごだけ食べる

開いた括弧は必ず閉じる -- あるプログラマー

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1.

Sold: :Indy: :Indy: :Indy: :Indigo: Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Twitter @PymbleSoftware
Current Apps (iOS) -> https://itunes.apple.com/au/artist/pymb ... d553990081
(Android) https://play.google.com/store/apps/deve ... +Ltd&hl=en
(Onyx2) Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
(0300s) Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Github ---> https://github.com/pymblesoftware
That is really cool, it looks like awf may do it.

Now, how do you make it not print "UNIX Programmer's Manual" ( as in I want to format the relnotes ).
Land of the Long White Cloud and no Software Patents.
PymbleSoftware wrote: I don't have nroff installed on this machine, no time to fire up the main beasts, and I don't know where SGI nroff comes from

SGI nroff is found in the Documenter's Workbench (DWB) product. Although IRIX overlays contain updates for it, the base DWB product was not actually included with IRIX, but was licensed as a separate product. See this thread for (slightly) more info: viewtopic.php?f=15&t=12765
josehill wrote:
PymbleSoftware wrote: I don't have nroff installed on this machine, no time to fire up the main beasts, and I don't know where SGI nroff comes from

SGI nroff is found in the Documenter's Workbench (DWB) product. Although IRIX overlays contain updates for it, the base DWB product was not actually included with IRIX, but was licensed as a separate product. See this thread for (slightly) more info: viewtopic.php?f=15&t=12765



Thanks.

I have created a couple of wiki entries to point back to tech pubs, and these two forum topics.
Hopefully someone else can come forward with more detail for those wiki entries later.

R.
死の神はりんごだけ食べる

開いた括弧は必ず閉じる -- あるプログラマー

:Tezro: :Tezro: :Onyx2R: :Onyx2RE: :Onyx2: :O3x04R: :O3x0: :O200: :Octane: :Octane2: :O2: :O2: :Indigo2IMP: :PI: :PI: :1600SW: :1600SW: :Indy: :Indy: :Indy: :Indy: :Indy:
:hpserv: J5600, 2 x Mac, 3 x SUN, Alpha DS20E, Alpha 800 5/550, 3 x RS/6000, Amiga 4000 VideoToaster, Amiga4000 -030, 733MHz Sam440 AmigaOS 4.1 update 1.

Sold: :Indy: :Indy: :Indy: :Indigo: Tandem Himalaya S-Series Nonstop S72000 ServerNet.

Twitter @PymbleSoftware
Current Apps (iOS) -> https://itunes.apple.com/au/artist/pymb ... d553990081
(Android) https://play.google.com/store/apps/deve ... +Ltd&hl=en
(Onyx2) Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
(0300s) Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Github ---> https://github.com/pymblesoftware