|
NAMElinuxdoc - LinuxDoc DTD SGML converter to other output formatSYNOPSISlinuxdoc --backend=format--papersize=size --language=lang --charset=char --style=file --debug --define attribute=value --include entity [backend-options...] file(.sgml) or (Old, obsoleted usage)
DESCRIPTIONThe linuxdoc suite is a collection of text formatters which understands a LinuxDoc DTD SGML source file. Each formatter (or "back-end") renders the source file into a variety of output formats, including HTML, TeX, DVI, PostScript, plain text, and groff(1) source in manual-page format. The linuxdoc suite is provided for backward compatibility, because there are still many useful documents written in LinuxDoc DTD sgml source.The markup language(s) accepted by these formatters is described in the Linuxdoc-Tools User's Guide. They are variants of an SGML document type definition originally designed by Matt Welsh for Linux documentation. GENERIC-OPTIONSMost command-line options are accepted by all back-ends. Some back-ends have additional specific options to control rendering to their particular output format. Here are the common options:
Running a back-end with no arguments will cause it to list all its options (Error message about "no filenames given" can be ignored safely in this case). The available back ends include (names in brackets are old & obsoleted form):
There is also a tool linuxdoc-Bcheck (sgmlcheck) available for checking the Linuxdoc DTD SGML syntax of document sources without actually generating a translated version. BACKEND-DRIVERSHere are the description for each backend drivers:**************************************************** linuxdoc -B html (sgml2html) converts a LinuxDoc DTD SGML source file to HTML output. Output will appear in the top level file file.html and file-n.html for each section (default action, but can be changed by option), where file is the name of the SGML source file and n is the section name. The attribute/value pair "output=html" is set for conditionals. linuxdoc -B html accepts the following options: [--split 0|1|2 ] [--dosnames] [--imagebuttons] [--toc 0|1|2 ] The meanings of them are:
**************************************************** linuxdoc -B info (sgml2info) converts a LinuxDoc DTD SGML source file to GNU info format. Output will appear in file.info where file is the name of the SGML source file. The attribute/value pair "output=info" is set for conditionals. linuxdoc -B info has not backend specific options. **************************************************** linuxdoc -B latex (sgml2latex) converts a LinuxDoc DTD SGML source file to LaTeX output, using the nsgmls(1) or onsgmls(1) parser, and the sgmlsasp(1) translator. Using the LaTeX output, and the latex(1) text formatter, you can then create DVI output, and PostScript output using the dvips(1) converter. Output will appear in file.tex for LaTeX output, file.dvi for DVI output, or file.ps for PostScript output, where file is the name of the SGML source file. Using the LaTeX output, and the pdflatex(1) text formatter, you can then create a nice PDF output, suitable for viewing with PDF viewers as xpdf(1), acroread(1) or ghostview(1). The attribute/value pair "output=latex2e" is set for conditionals. linuxdoc -B latex accepts following backend specific options: [--output=tex|dvi|ps|pdf] [--bibtex] [--makeindex] [--pagenumber=n] --quick [--latex=latex|hlatexp|platex|jlatex] [--dvips=dvips|dvi2ps] [--verbosity=n] The meanings of them are:
Note: This version does not overwrite/remove the intermediate files: tex file for dvi output, or tex/dvi files for ps output. This is different behavior from the original SGML-Tools 1.0.9, so you are warned here.
**************************************************** linuxdoc -B lyx (sgml2lyx) converts a LinuxDoc DTD SGML source file to LyX output. Output will appear in file.lyx where file is the name of the SGML source file. The attribute/value pair "output=lyx" is set for conditionals. linuxdoc -B lyx has not backend specific options. **************************************************** linuxdoc -B rtf (sgml2rtf) converts a LinuxDoc DTD SGML source file to RTF, the Rich Text Tormat used by the Microsoft Windows help system. Output will appear in the top level file file.rtf and file-n.rtf for each section, where file is the name of the SGML source file. The RTF output is tailored for compilation by the Windows Help Compiler (hc31.exe). The attribute/value pair "output=rtf" is set for conditionals. linuxdoc -B rtf accepts [--twosplit] as a backend specific option. Following is the meaning of this option:
**************************************************** linuxdoc -B txt (sgml2txt) converts a LinuxDoc DTD SGML source file to ASCII, ISO-8859-1, or EUC-JP output. Output will appear in file.txt where file is the name of the SGML source file. The attribute/value pair "output=txt" is set for conditionals. linuxdoc -B txt accepts following backend-options: [--manpage] [--filter] [--blanks=n] The meaning of these options are:
**************************************************** linuxdoc -B check (sgmlcheck) runs an SGML parse on the specified document source. Any errors are reported to standard output. No formatted version of the source is produced. Note that linuxdoc -B check preprocesses the LinuxDoc DTD SGML source, doing the conditionalization described by any <#if></#if> and <#unless></#unless> tags. Document sources containing these tags will confuse a standalone SGML parser. linuxdoc -B check has no backend-specific options. **************************************************** FILESMany files and executables in /usr/local/share/linuxdoc-tools and /usr/local/bin are used.BUGSMaybe some are left. Feel free to send your report to the current maintainer.MAINTAINERThis had been maintained by Cees de Groot <cg@cdegroot.com> in SGML-Tools (v1). Currently maintained by Taketoshi Sano <sano@debian.org> for Linuxdoc-Tools.
Visit the GSP FreeBSD Man Page Interface. |