- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- man page editor (txt/html to man converter)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2002 02:15 AM
тАО09-27-2002 02:15 AM
man page editor (txt/html to man converter)
I need to create man pages,
either from html markup or text.
Ideally a commandline based utility to do the conversion would be good.
Reason being, this will be scripted for depot creation.
I've got txt2man from the porting archive, but it return errors when converting - (even it's own help page)
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2002 03:00 AM
тАО09-27-2002 03:00 AM
Re: man page editor (txt/html to man converter)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2002 04:51 AM
тАО09-27-2002 04:51 AM
Re: man page editor (txt/html to man converter)
man
Will struip out the formatting
So:_
man command | col -b > file.txt
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2002 04:52 AM
тАО09-27-2002 04:52 AM
Re: man page editor (txt/html to man converter)
man
Will strip out the formatting
So:_
man command | col -b > file.txt
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2002 05:12 AM
тАО09-27-2002 05:12 AM
Re: man page editor (txt/html to man converter)
I'd suggest you use Perl to this end, and especially Perl's Plain Old Documentation (aka POD).
If you have a Perl version >= 5.003 installed type at the shell
(beware, if you are root, and have a Perl >= 5.6 it won't let you execute perldoc as root, because there was an exploit, so do a su to another user before, or use the -U flag)
$ perldoc perldoc
and read the tutorial to POD's very straight forward kind of mark-up in
$ perldoc perlpod
From this you will learn the POD's mark-up tags in abt. half an hour.
Then you may easily write all your docs in POD and let perldoc do the nroff formatting (e.g. typical manpage layout with highlighting etc.)
There are even lots of Perl tools for conversion of POD to almost any format (e.g. html, roff, ps etc.)
HTH
Ralph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2002 08:51 AM
тАО09-30-2002 08:51 AM
Re: man page editor (txt/html to man converter)
still no bunny answer..
Did anyone look at txt2man from the porting archive..
I'm finding recently that a lot of stuff there just doesn't work.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2002 09:59 AM
тАО09-30-2002 09:59 AM
Re: man page editor (txt/html to man converter)
I have not seen anything like you need. I usually end up making my own and fudging the formatting from other man pages. I know, not a good answer, but...
You can put plain text as man pages, and last I checked anyway they are displayed in that format. Just make sure that they have the correct filename/extension in a current man page directory or define MANPATH to include your own.
HTML would take a bit more work, as you have to strip the HTML tags off to get text, or translate. Sorry, but noone wants to get to man from html any more, but I have some awsome cgi man to html converters ;)
Regards,
Shannon