Module Name: src
Committed By: uwe
Date: Tue Dec 3 14:41:00 UTC 2019
Modified Files:
src/share/tmac: doc2html
Log Message:
Use groff -Tencoding argument to emit <meta charset="..."/>
To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/share/tmac/doc2html
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/tmac/doc2html
diff -u src/share/tmac/doc2html:1.68 src/share/tmac/doc2html:1.69
--- src/share/tmac/doc2html:1.68 Tue Nov 26 08:38:19 2019
+++ src/share/tmac/doc2html Tue Dec 3 14:41:00 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: doc2html,v 1.68 2019/11/26 08:38:19 kre Exp $
+.\" $NetBSD: doc2html,v 1.69 2019/12/03 14:41:00 uwe Exp $
.\"
.\" Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -263,9 +263,17 @@ TODO:
. fl
..
.em end-macro
+.
+.\" map groff -Tencoding argument to the charset name
+.ie '\*(.T'ascii' .ds html-charset US-ASCII
+.el .ie '\*(.T'latin1' .ds html-charset ISO-8859-1
+.el .ie '\*(.T'utf8' .ds html-charset UTF-8
+.el .ab unsupported encoding \*(.T
+.
.de init-html
<html>
<head>
+ <meta charset="\\*[html-charset]"/>
<title>
\\*[document-title]\\$*
\\*[title-section]