[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #55215] [PATCH] gpinyin.1.man: Unknown characters and failed adjust
From: |
G. Branden Robinson |
Subject: |
[bug #55215] [PATCH] gpinyin.1.man: Unknown characters and failed adjustment |
Date: |
Mon, 10 May 2021 09:17:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Update of bug #55215 (project groff):
Status: Need Info => In Progress
Assigned to: None => gbranden
_______________________________________________________
Follow-up Comment #3:
I propose to resolve this problem by having the page simply not render the
tone table if the output device is incapable of doing so.
This is much simpler than the patch Bjarni suggested.
diff --git a/contrib/gpinyin/gpinyin.1.man b/contrib/gpinyin/gpinyin.1.man
index f9e14a48..94e1e4a3 100644
--- a/contrib/gpinyin/gpinyin.1.man
+++ b/contrib/gpinyin/gpinyin.1.man
@@ -213,10 +213,10 @@ The tone numbers 0 and 5 are synonymous.
.
.
.P
-The following table summarizes the tones.
-.
-Some output devices will not be able to render every output example.
-.
+.if t .nr gpinyin*do-table 1
+.if n .if '\*[.T]'utf8' .nr gpinyin*do-table 1
+.ie \n[gpinyin*do-table] \{\
+The tones are written as follows.
.
.P
.\" XXX: This is so gross. Why can't grops and gropdf figure this out?
@@ -236,6 +236,14 @@ fourth falling \[ga] ma4 m\[a ga]
fifth neutral (none) ma0 ma
\^ \^ \^ ma5 \^
.TE
+.\}
+.el \{
+[The tone mark table is omitted from this rendering of the man page
+because the selected output device \[lq]\*[.T]\[rq] lacks the character
+repertoire to display it.
+.
+Try another output device.]
+.\}
.
.
.P
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55215>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #55215] [PATCH] gpinyin.1.man: Unknown characters and failed adjustment,
G. Branden Robinson <=