OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002200 [groff] regular use minor always 2007-04-07 17:52 2009-03-19 21:41
Reporter jeff View Status public  
Assigned To james
Priority normal Resolution fixed  
Status closed  
Summary 0002200: pdfroff manual page will not format
Description Attempts to nroff the /opt/csw/man /man1/pdfroff.1 file produce the following output:

------------------------------------------------------------
User Commands PDFROFF(1)

NAME
     pdfroff - create PDF documents using groff \\$*

SYNOPSIS

Groff Version 1.19.2Last change: 18 May 2005
------------------------------------------------------------

That\'s it! I haven\'t looked closely, but the macros in this
file must be interfering with the man macros. Also notice that the last line in the output runs together. This is probably another artifact of the bad internal macros.
--
Jeff
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0004484)
james (reporter)
2007-04-08 04:46

Trust the the groff writer to not be able to write troff macros. The problem is the man pages are designed for groff and not troff as is used by the man command. My workaround for the pacakge is to pre-format the pages in man/cat, this page slipped through unformatted.

To format your own copy:

# sed -e \'/.TH/a\\
.ll 65n\' /opt/csw/share/man/man1/pdfroff.1 | \\
groff -T ascii -m man | \\
sed -e \'s/[^m]*m//g\' -e \'s/~/ /g\' > /opt/csw/share/man/cat1/pdfroff.1

The first escaped line break is important to sed, the other are just normal line wraps.


Don\'t get too excited as pdfroff produces double copy of the output. I recommend using GS\'s ps2pdf, which is what the script does anyway:

$ groff -m man /opt/csw/share/man/man1/pdfroff.1 | \\
ps2pdf /dev/fd/0 > pdfroff.pdf
(0004485)
james (reporter)
2007-04-08 05:07
edited on: 2007-04-08 05:08

Finish the job with:

# installf -R / CSWgroff /opt/csw/share/man/cat1/pdfroff.1

then the formatted file will belong to CSWgroff and be removed on update.

edited on: 04-08 05:08
(0005679)
james (reporter)
2009-03-19 21:40

Closing, new package released with preformatted pdfroff man page in man/cat which is best I can do simply.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker