diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:49:47 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:49:47 +0300 |
commit | b41b9034225ab3e49980d9de55c141011b6383b0 (patch) | |
tree | 891014b4c2e803e01ac7a1fd2b60819fbc5a6e73 /sys/man/1/ms2html | |
parent | c558a99e0be506a9abdf677f0ca4490644e05fc1 (diff) |
Import sources from 2011-03-30 iso image - sys/man
Diffstat (limited to 'sys/man/1/ms2html')
-rwxr-xr-x | sys/man/1/ms2html | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sys/man/1/ms2html b/sys/man/1/ms2html new file mode 100755 index 000000000..6f4b45dd4 --- /dev/null +++ b/sys/man/1/ms2html @@ -0,0 +1,78 @@ +.TH MS2HTML 1 +.SH NAME +ms2html, html2ms \- convert between troff's ms macros and html +.SH SYNOPSIS +.B ms2html +[ +.B -q +] [ +.B -b +.I basename +] [ +.B -d +.I delims +] [ +.B -t +.I title +] +.br +.B html2ms +.SH DESCRIPTION +.I Ms2html +converts the +.IR ms (6) +source on standard input into HTML and prints it to +standard output. +If the source contains +.IR tbl (1) +or +.IR eqn +input, you must first pipe the text through those +preprocessors. +Postscript images, equations, and tables will be +converted to gif files. +If the document has a +.B .TL +entry, its contents will be used as the title; otherwise +.I ms2html +will look for a +.B ._T +macro, unknown to +.IR ms (6), +and take its value. +Options are: +.TF q +.IP q +suppresses warnings about malformed input; +.IP b +sets the HTML base name to +.IR basename ; +.IP d +sets the +.IR eqn (1) +delimiters to +.IR delim ; +.IP t +sets the HTML title to +.IR title . +.PD +.PP +.I Html2ms +reads HTML from standard input and converts it +to +.IR ms (6) +source on standard output. +.SH SOURCE +.B /sys/src/cmd/ms2html.c +.br +.B /sys/src/cmd/html2ms.c +.SH SEE ALSO +.IR htmlroff (1), +.IR ms (6) +.SH BUGS +.PP +Ms2html doesn't understand a number of troff +commands. It does handle macros and defined +strings. +.PP +Html2ms doesn't understand html tables. |