Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: Need html/text to roff/nroff converter

Reply
Thread Tools

Re: Need html/text to roff/nroff converter

 
 
Ivan Shmakov
Guest
Posts: n/a
 
      11-23-2013
>>>>> Emanuel Berg <(E-Mail Removed)> writes:
>>>>> http://www.velocityreviews.com/forums/(E-Mail Removed) writes:
>>>>> On May 8, 1996 12:30:00 PM UTC+5:30, Cari D. Burstein wrote:


[Cross-posting to news:comp.text.xml, just in case.]

>>> Hi, I'm looking for a fairly easy way to convert text or html
>>> informational pages on programs into man pages.


[...]

>> did u found a easy way? if so please let me know


> Try


> apropos roff | grep html


> (or "text")


> grohtml (1) - html driver for groff
> post-grohtml (1) - html driver for groff
> pre-grohtml (1) - html driver for groff
> roff2html (1) - transform roff code into html mode
> roff2text (1) - transform roff code into text mode


I believe that these tools are to /produce/ HTML /from/ roff,
while the question was for the other way around.

> Also, groff is not that difficult. You can check out some man page
> and use it as a template. You can view it in Emacs, for example,
> without having to decompress the file. Then just add your own
> paragraphs, syntax patterns, etc. from the HTML file. That would
> work just as well, provided you don't have tons of HTML to convert.


I have an (as of yet unreleased) XSLT 1.0 code which transforms
XHTML into .pod (as used in Perl), which are then easy to
convert into roff manual pages. (And .pod data is surely easier
to author -- and process -- than roff code, BTW.)

This allows me to use Wikibooks to work on the documentation
(thus accepting contributions from anyone able to use a Web
browser), while still following the usual Perl conventions.
Consider, e. g., [1, 2].

[1] https://en.wikibooks.org/wiki/Indexing_Web_with_Head-r
[2] https://metacpan.org/pod/head-r

--
FSF associate member #7257
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moyea Video Converter with iPad video converter brntkobe1 Computer Support 0 04-18-2010 08:22 AM
Perlpod, pod2man: get ascii grave accent in ROFF \(ga. Erwin Waterlander Perl Misc 4 10-08-2009 04:32 PM
need script: convert html-text to text keal Ruby 3 01-04-2006 10:51 AM
Html to text converter Guoqi Zheng ASP .Net 1 07-02-2004 02:57 PM
OT: good text to html batch converter? fitwell HTML 8 11-16-2003 09:30 AM



Advertisments