From 9660571b5f90fa1338411e3629e5c6119fd06e42 Mon Sep 17 00:00:00 2001 From: jfieber Date: Thu, 31 Aug 1995 00:14:02 +0000 Subject: Command line arguments are now gathered by NewGetOpt. Command line syntax is slightly changed: -format is now -f format. New option: -i name This is a switch to control marked sections in SGML documents. Useful for multi-lingual documents. --- usr.bin/sgmlfmt/sgmlfmt.1 | 69 ++++++++++++++++++++++++++--------- usr.bin/sgmlfmt/sgmlfmt.pl | 91 +++++++++++++++++++++++++++++----------------- 2 files changed, 109 insertions(+), 51 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/sgmlfmt/sgmlfmt.1 b/usr.bin/sgmlfmt/sgmlfmt.1 index 047d351..4c55eac 100644 --- a/usr.bin/sgmlfmt/sgmlfmt.1 +++ b/usr.bin/sgmlfmt/sgmlfmt.1 @@ -1,4 +1,4 @@ -.Dd August 28, 1995 +.Dd August 30, 1995 .Os FreeBSD 2.0.5 .Dt SGMLFMT 1 .Sh NAME @@ -6,9 +6,10 @@ .Nd Formats SGML files tagged according to the linuxdoc DTD. .Sh SYNOPSIS .Nm -.Fl Ar format Op Fl Ar format... -.Op Fl Ar links -.Ar +.Fl f Ar format +.Op Fl links +.Op Fl i Ar name ... +.Ar file .Sh DESCRIPTION The .Nm @@ -21,12 +22,14 @@ declaration before any uncommented text: .Bd -literal -offset indent .Ed -.Pp -The -.Fl Ar format -options for output include the following: +.Pp Options for +.Nm +include the following: .Bl -tag -width Ds -.It Fl html +.It Fl f Ar format +Determines the output format which can be one of the following: +.Bl -tag -width Ds +.It Ar html Generates a set of linked HTML files suitable for use with an HTML browser. A top level file, .Pa file.html , @@ -38,18 +41,18 @@ contains a complete table of contents. A series of files named .Pa file2.html ... .Pa filen.html contain the actual text of the document. -.It Fl latex +.It Ar latex Generates a single output file with the extension .Pa .tex suitable for processing with LaTeX. Note that the LaTeX style file .Pa /usr/share/sgml/FreeBSD/lib/linuxdoc.sty must be accessible to LaTeX for correct processing. -.It Fl ascii +.It Ar ascii Generates a single output file with the extension .Pa .ascii suitable for viewing on an ASCII terminal. -.It Fl nroff +.It Ar nroff Generates a single output file with the extension .Pa .nroff suitable processing with @@ -57,12 +60,15 @@ suitable processing with or .Xr groff 1 . This is actually an intermediate conversion used by the -.Fl ascii +.Fl f Ar ascii format option. +.El .It Fl links When used with the -.Fl html -option, for each