groff-commit
[Top][All Lists]
Advanced

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

[groff] 03/22: gpinyin(1): Make some page content conditional.


From: G. Branden Robinson
Subject: [groff] 03/22: gpinyin(1): Make some page content conditional.
Date: Thu, 13 May 2021 05:08:34 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 526a7597f4fbbb3531062a48289af9cc1d3e7658
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon May 10 23:26:20 2021 +1000

    gpinyin(1): Make some page content conditional.
    
    * contrib/gpinyin/gpinyin.1.man: Render the tone mark table only if the
      output device might be capable.
    
    Fixes <https://savannah.gnu.org/bugs/index.php?55215>.
---
 contrib/gpinyin/ChangeLog     |  7 +++++++
 contrib/gpinyin/gpinyin.1.man | 18 ++++++++++++++----
 2 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/contrib/gpinyin/ChangeLog b/contrib/gpinyin/ChangeLog
index 7446353..87d2699 100644
--- a/contrib/gpinyin/ChangeLog
+++ b/contrib/gpinyin/ChangeLog
@@ -1,3 +1,10 @@
+2021-05-11  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * contrib/gpinyin/gpinyin.1.man: Render the tone mark table only
+       if the output device might be capable.
+
+       Fixes <https://savannah.gnu.org/bugs/index.php?55215>.
+
 2021-05-10  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * contrib/gpinyin/gpinyin.1.man: Work around inability of grops
diff --git a/contrib/gpinyin/gpinyin.1.man b/contrib/gpinyin/gpinyin.1.man
index 8ce5110..76f3e77 100644
--- a/contrib/gpinyin/gpinyin.1.man
+++ b/contrib/gpinyin/gpinyin.1.man
@@ -214,10 +214,11 @@ 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.
-.
+.nr gpinyin*do-table 0
+.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?
@@ -237,6 +238,15 @@ 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.]
+.\}
+.rr gpinyin*do-table
 .
 .
 .P



reply via email to

[Prev in Thread] Current Thread [Next in Thread]