Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (1) — Plan9 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

MS2HTML(1)

NAME

ms2html, html2ms − convert between troff’s ms macros and html

SYNOPSIS

­ms2html < input > output
­html2ms < input > output

DESCRIPTION

­Ms2html converts the ms(6) source on standard input into HTML and prints it to standard output. If the source contains tbl(1) or 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 ­.TL entry, its contents will be used as the title; otherwise ­ms2html will look for a ­._T macro, unknown to ms(6), and take its value.

SOURCE

­/sys/src/cmd/ms2html.c
­/sys/src/cmd/html2ms.c

BUGS

Ms2html doesn’t understand a number of troff commands.  It does handle macros and defined strings. 

Html2ms doesn’t understand html tables. 

Plan 9  —  June 02, 2000

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026