Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/tmac Use groff -Tencoding argument to emit <meta chars...



details:   https://anonhg.NetBSD.org/src/rev/7b12f6136bf5
branches:  trunk
changeset: 846888:7b12f6136bf5
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue Dec 03 14:41:00 2019 +0000

description:
Use groff -Tencoding argument to emit <meta charset="..."/>

diffstat:

 share/tmac/doc2html |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 760a37855522 -r 7b12f6136bf5 share/tmac/doc2html
--- a/share/tmac/doc2html       Tue Dec 03 14:38:48 2019 +0000
+++ b/share/tmac/doc2html       Tue Dec 03 14:41:00 2019 +0000
@@ -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 @@
 .      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]



Home | Main Index | Thread Index | Old Index