Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Wed Apr 16, 2014 2:39 pm

All times are UTC - 8 hours


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
Unread postPosted: Tue Jan 03, 2012 12:00 am 
Offline
User avatar

Joined: Wed Nov 01, 2006 10:37 pm
Posts: 2913
Location: NZ
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:
$ 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:
$ cat testpage
.TH TESTPAGE 1 "3 January 2012"
.SH NAME
testpage(1) \- A test page


On Linux, I get

Code:
$ 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:
$ 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.


Top
 Profile  
 
Unread postPosted: Fri Jan 06, 2012 9:29 am 
Offline

Joined: Sat Jun 26, 2010 4:40 pm
Posts: 220
Location: Oslo, Norway
Have you checked the an macros on the Irix machine for problems?

_________________
Torfinn


Top
 Profile  
 
Unread postPosted: Fri Jan 06, 2012 10:14 am 
Offline
User avatar

Joined: Wed Nov 01, 2006 10:37 pm
Posts: 2913
Location: NZ
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.


Top
 Profile  
 
Unread postPosted: Sat Jan 07, 2012 12:32 am 
Offline
User avatar

Joined: Tue Jul 15, 2008 4:48 pm
Posts: 1887
Location: P.O. Box 121, Pymble, Sydney, NSW 2073, Australia.
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:
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.

@PymbleSoftware
Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Book ----> http://pymblesoftware.com/book/
Github ---> https://github.com/pymblesoftware
Visit http://www.pymblesoftware.com
Search for "Pymble", "InstaElf", "CryWhy" or "Cricket Score Sheet" in the iPad App store or search for "Pymble" or "CryWhy" in the iPhone App store.


Top
 Profile  
 
Unread postPosted: Sat Jan 07, 2012 1:12 am 
Offline
User avatar

Joined: Wed Nov 01, 2006 10:37 pm
Posts: 2913
Location: NZ
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.


Top
 Profile  
 
Unread postPosted: Sat Jan 07, 2012 2:38 am 
Offline
Moderator
Moderator
User avatar

Joined: Mon Jun 06, 2005 8:53 pm
Posts: 2855
Location: USA
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


Top
 Profile  
 
Unread postPosted: Sat Jan 07, 2012 12:10 pm 
Offline
User avatar

Joined: Tue Jul 15, 2008 4:48 pm
Posts: 1887
Location: P.O. Box 121, Pymble, Sydney, NSW 2073, Australia.
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.

@PymbleSoftware
Cortex ---> http://www.facebook.com/pages/Cortex-th ... 11?sk=info
Minnie ---> http://www.facebook.com/pages/Minnie-th ... 02?sk=info
Book ----> http://pymblesoftware.com/book/
Github ---> https://github.com/pymblesoftware
Visit http://www.pymblesoftware.com
Search for "Pymble", "InstaElf", "CryWhy" or "Cricket Score Sheet" in the iPad App store or search for "Pymble" or "CryWhy" in the iPhone App store.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group