119 lines · 1.8 KB · Text
RawDownload
.TH HTMLROFF 1.SH NAMEhtmlroff \- HTML formatting and typesetting.SH SYNOPSIS.B htmlroff[.B -iuv][.B -m.I name][.B -r.I aN][.I file\&...].SH DESCRIPTION.I Htmlroffaccepts.IR troff (1)input in the named .I filesand formats it as HTML for viewing in a web browser..PPIf no.I fileargument is given, .I htmlroffreads the standard input.An argument consisting of a single minus.RB ( - )is taken to bea file name corresponding to the standard input.The options are:.TP.B -iRead standard input after the input files are exhausted..TP.BI -m nameProcess the macro file.BI /sys/lib/tmac/tmac. namebefore the input.IR files ..TP.BI -r aNSet register.I a(one character name) to.IR N ..TP.B -uGenerate UTF output.By default, .I htmlroffconverts Unicode runes into the correspondingHTML entity sequences.RB ( α ,.BR   ,and so on)..I Htmlroffinvokes.IR tcs (1)for the conversion..TP.B -vGenerate debugging output and warnings about suspicious input..PD.PPMost .I troffinput files, especially those using the.IR ms (6)macros, can be used unaltered.In general, the macro file.B tmac.htmlshould be processed after processing other standard macro files,as in .B htmlroff.B -ms.BR -mhtml ..PP.IR Htmlroff (6)describes the changes to the input language..PP.IR Mhtml (6)describes the new macros..SH EXAMPLESFormat the Plan 9 web page:.IP.EXcd /usr/web/plan9htmlroff -mhtml index.tr >index.html.EE.PPFormat a paper:.IP.EXcd /sys/docpic auth.ms | tbl | eqn | htmlroff -ms -mhtml >auth.html.EE.SH FILES.TP.B /sys/lib/troff/font/devutf/utfmapMapping from.I trofftwo-character names like.B \e(*ato Unicode characters like α..SH SOURCE.B /sys/src/cmd/htmlroff.SH "SEE ALSO.IR tcs (1),.IR troff (1),.IR htmlroff (6),.IR mhtml (6)