2011-09-24 15:06:45 +00:00
|
|
|
.TH UHTML 1
|
|
|
|
.SH NAME
|
|
|
|
uhtml \- convert foreign character set HTML file to unicode
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B uhtml
|
|
|
|
[
|
|
|
|
.B -p
|
|
|
|
] [
|
|
|
|
.B -c
|
|
|
|
.I charset
|
|
|
|
] [
|
|
|
|
.I file
|
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
HTML comes in various character set encodings
|
|
|
|
and has special forms to encode characters. To
|
2c(1), torrent(1), uhtml(1), kbd(3), cwfs(4), hgfs(4), cifsd(8), cryptsetup(8), hjfs(8), kbdfs(8), realemu(8), wpa(8): fix spelling, typos
2013-08-23 19:48:52 +00:00
|
|
|
make it easier to process html, uhtml is used
|
2011-09-24 15:06:45 +00:00
|
|
|
to normalize it to a unicode only form.
|
|
|
|
.LP
|
|
|
|
Uhtml detects the character set of the html input
|
|
|
|
.I file
|
|
|
|
and calls
|
|
|
|
.IR tcs (1)
|
|
|
|
to convert it to utf replacing html-entity forms
|
|
|
|
by ther unicode character representations except for
|
|
|
|
.B lt
|
|
|
|
.B gt
|
|
|
|
.B amp
|
|
|
|
.B quot
|
|
|
|
and
|
|
|
|
.B apos .
|
|
|
|
The converted html is written to
|
|
|
|
standard output. If no
|
|
|
|
.I file
|
|
|
|
was given, it is read from standard input. If the
|
|
|
|
.B -p
|
|
|
|
option is given, the detected character set is printed and
|
|
|
|
the program exits without conversion.
|
|
|
|
In case character set detection fails, the default (utf)
|
|
|
|
is assumed. This default can be changed with the
|
|
|
|
.B -c
|
|
|
|
option.
|
|
|
|
.SH SOURCE
|
|
|
|
.B /sys/src/cmd/uhtml.c
|
|
|
|
.SH SEE ALSO
|
|
|
|
.IR tcs (1)
|