pkg://html2sgml-0.3-1.i386.rpm:11900/
usr/
man/
man1/html2sgml.1
info downloads
.if n .ds Q \&"
.if t .ds Q ``
.if n .ds U \&"
.if t .ds U ''
.TH "html2sgml" 1
.tr \&
.nr bi 0
.nr ll 0
.nr el 0
.de DS
..
.de DE
..
.de Pp
.ie \\n(ll>0 \{\
.ie \\n(bi=1 \{\
.nr bi 0
.if \\n(t\\n(ll=0 \{.IP \\(bu\}
.if \\n(t\\n(ll=1 \{.IP \\n+(e\\n(el.\}
.\}
.el .sp
.\}
.el \{\
.ie \\nh=1 \{\
.LP
.nr h 0
.\}
.el .PP
.\}
..
.SH NAME
html2sgml -- convert html to sgml according to linuxdoc.dtd
.SH SYNOPSIS
html2sgml \fIfile.html\fP
.SH DESCRIPTION
.Pp
\fIhtml2sgml\fP is a fileconverter that converts html-files to sgml-files
according to linuxdoc.dtd. It will ouput a file with the same name
as the specified file but with the ending html changed to sgml.
.Pp
It will not work on every html-file because of the
free format of html. It is tuned to work well with html produced from
\fIApplix HTML-editor\fP. If it finds a applix word file in the same directory
and with the same name as the specified file, it will include any
\fIfootnotes\fP
from the aw-file in the produced sgml-file.
.Pp
\fIhtml2sgml\fP will also try to convert all included images of type gif to
postscript.
.Pp
By default html2sgml produces a ducument of type \fIarticle\fP. To change
to \fIbook\fP you can use the script \fImkbook\fP. It also fills
in a dummy name. If there is a title tag in the html-file it will use that
as a title for the sgml-file. To change this you have to hand edit the
sgml-file.
.Pp
If there are more than one \fIH1\fP tag these are used as the toplevel section.
Everything marked H1 will become a \fIsect\fP in sgml, and \fIH2\fP
will become sect1 and so forth. If there is only one ore no H1, H2 will
be used instead. If there is no H* tags, then the document i broken by
design :-)
.Pp
The resulting sgml-file can then be used by \fIsgml-tools (was linuxdoc-sgml)\fP to produce
various new fileformats, eg latex, info, rtf.
.Pp
.SH TIPS
.Pp
\fIhtml2sgml\fP should work fine with straight html, that is, when no special
layout formating has been done. For example: it can handle html table tags, but it can
not handle them well if they are used to produce layout.
.Pp
The best working thing is to use it with \fIApplix html\fP. You can both
write directly in Applix Word or import document to applix word. Try to use
predefined styles for your document. You can create heading1, heading2, pre,
quote and so forth. Open Applix HTML and use \fIFile->Import words document\fP. You will then get the chance to tell Applix wich html-tags your defined
styles should match, eg heading1 -> html_h1. Then use \fIFormat -> HTML document
setting\fP where you can fill in the title; here you can also fill in the
alternative to export Applix images as gif files. This is good to do because
html2sgml can convert the gif files to ps-files wich can be used when/if
converting to latex.
.Pp
.SH BUGS AND FEATURES
.Pp
\fIhtml2sgml\fP is still under development and will most probably contain
bugs. It also contain som features. All possible HTML and sgml tags are not
implemented. Unimplemented HTML tags will show up in the sgml file where you
have to hand edit them away. Some tags in sgml are also unsupported. More specific:
no math tags is implemented. You can check the resulting sgml file with the command
\fIsgmlcheck\fP to discover any leftover tags.
.Pp
I have concentrated on making it work in english and in swedish. This means that
there are a lot of characters that probably not will work OK, specialy when
converting Applix footnotes. Look in the source and try to put in the missing
characters if you have any problems. And pleas send the new improved
version to mee.
.Pp
.SH AUTHOR
Peter Antman (peter.antman@abc.se)
.SH SEE ALSO
sgml2latex(1), sgml2html(1), sgml2txt(1), sgml2info(1), sgml2rtf, sgml2lyx(1)