Cactus Home Page
Send me mail The niceSgml2Html resources : |
5. PracticeIf you have read the Theory Section it will be easy to understand how to use kdesgmltools. 5.1 --nice optionAs stated above, when you type sgml2html --nice <file>.sgmlyou can insert html tags at certain poionts of your document. Those tags are read from the file named <file>.nif which
MUST be present at the directory where you issue the sgml2html
command.
The structure of this file is simple. It is a text file containing the html tags for the above mentioned sections. Each section begins with a line like this: <--A-->for SectionA. The lines <--B--> <--C--> <--BarTags1--> <--BarTags2-->are used in the same way. You must be careful since SectionB MUST contain a <BODY> tag. A useful tip. If you use the word DOCNAME in any BarTags section it will be replaced by the title of the document.
5.2 --style=niceIn
Theory I mentioned the substitution of
sgml tags by html tabs which is done by Html2Html.pm (and consequently
by niceSgml2Html.pm). This substitution is described in a file
called <name> + "<H3>" + </name> + "</H3>" + These two lines state that the <name> tag will be replaced by <H3> tag and </name> tag by </H3>. The + signs indicate newline. You may define alternative mappings. If you call sgml2html using
the option
5.3 Navigation IconsJust like the documents created by the original sgml2html,
documents created with
What's more, nice looking icons are included in the kdesgmltools package and may be used instead of the original icons. These icons are created using The Gimp and are based on icons found at the http://www.iconbazaar.com/.
|