![]()
Hi,
The new version of my text to html converter has undergone major
improvements. According to WEblint I corrected the HTML it
produced. In addition lots of new options were added to make
using batch mode easier.
Especially handly is the new document split feature, which can divide
big text file into smaller files. Eg, if you're going to make
a slide presentation, just split the doc according to toplevel
headings and print each partial(=slide) to the printr.
This is my tool with which I manage all my faqs and Web pages:
Handling 560K+ Procmail Faq is breaaze, I assure you.
Take a look:
ftp://cs.uta.fi/pub/ssjaaa/t2html.html
I've atteched 10% of the manpage below for reference.
Cheers!
jari
--Multipart_Sat_Aug_29_21:44:43_1998-1
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="t2html.man"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by axl01it.ntc.nokia.com id WAA12286
NAME
t2html.pl - Simple text to html converter. Relies on text indentation
rules.
SYNOPSIS
To convert text file into html:
t2html.pl [options] file.txt > file.html
To check links in the text file and reports errors in *egrep -n* like
fashion:
t2html.pl --link-check-single --quiet file.txt
To split big document into pieces according to toplevel heading and
making html pages for each split
t2html.pl --S1 --SN | t2html.pl --quiet --simple -Out
letter.
EXAMPLES
To make simple html page without any meta information for Search
engines.
% t2html.pl --title "Html Page Title" --author "Mr. Foo" \
--simple file.txt > file.html
To make html page for search engines (they look meta tags or first li=
nes
from the page) and buttons to other pages. Pay attention to switch *-=
-
html-body* defines text to be English.
% t2html.pl \
--author Mr. foo" \
--title This is manual page of page BAR" \
--html-body LANG=3Den \
--butp previous.html \
--butt index.html \
--butn next.html \
--base http://site.com/dir/this-page.html \
--document http://site.com/dir/this-page.html \
--url this-page.html \
--meta-keywords "language-quux manual program" \
--meta-description "Bar program to do this that and more of those=
" \
manual.txt > manual.html
To check links and printing status of all links in par with the http
error message (most verbose):
% t2html.pl --link-check file.txt
To print only problematic links:
% t2html.pl --link-check --quiet file.txt
To print terse output in egep -n like manner: line number, link ander=
ror
code.
% t2html.pl --link-check-single --quiet file.txt
To split large document into pieces, and convert each piece to html
% t2html.pl --S1 --SN file.txt | t2html --quiet --simple -O
ENVIRONMENT
EMAIL
Users email address that is used as contact address in the html page.
CAn me overridden with --email option.
SEE ALSO
perl(1), html2ps(1) weblint(1)
Jan K=E4rrman's <jan@tdb.uu.se> html2ps is available at
http://www.tdb.uu.se/~jan/html2ps.html and Neil Bower's
<neilb@cre.canon.co.uk> weblint is available at
http://www.cre.canon.co.uk/~neilb/weblint/
AVAILABILITY
Mailto: <jari.aalto@poboxes.com> HomePage via forwarding service is a=
t
http://www.netforward.com/poboxes/?jari.aalto or alternatively absolu=
te
url is at ftp://cs.uta.fi/pub/ssjaaa/ but this may move without notic=
e.
Prefer keeping the forwarding service link in your bookmark.
AUTHOR
(C) 1996-1998 Jari Aalto. All rights reserved. This program is free
software; you can redistribute it and/or modify it under the same ter=
ms
as Perl itself or in terms of Gnu General Public licence v2 or later.
=20
--Multipart_Sat_Aug_29_21:44:43_1998-1--
[
Usenet Hypertext FAQ Archive |
Search Mail Archive |
Authors |
Usenet
]
[
1993 |
1994 |
1995 |
1996 |
1997
]
![]()
© Copyright The Internet FAQ Consortium, 1997
All rights reserved