groff-commit
[Top][All Lists]
Advanced

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

[groff] 10/11: gpinyin(1): Fix PS/PDF rendering problem.


From: G. Branden Robinson
Subject: [groff] 10/11: gpinyin(1): Fix PS/PDF rendering problem.
Date: Mon, 10 May 2021 08:49:03 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 90041bbed7e66ce895f9139edf5b7fe22c363bb2
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon May 10 14:41:33 2021 +1000

    gpinyin(1): Fix PS/PDF rendering problem.
    
    * contrib/gpinyin/gpinyin.1.man: Work around inability of grops and
      gropdf to construct some Unicode composite characters.  Use groff
      composite special characters for "a" with acute and grave accents, and
      define strings for "a" with macron (overline) and with háček/caron
      accents.  Use different string definitions for nroff and troff modes
      so we don't regress UTF-8 terminal output.
---
 contrib/gpinyin/ChangeLog     |  9 +++++++++
 contrib/gpinyin/gpinyin.1.man | 13 +++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/contrib/gpinyin/ChangeLog b/contrib/gpinyin/ChangeLog
index 1db5368..fa8dd93 100644
--- a/contrib/gpinyin/ChangeLog
+++ b/contrib/gpinyin/ChangeLog
@@ -1,5 +1,14 @@
 2021-05-10  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * contrib/gpinyin/gpinyin.1.man: Work around inability of grops
+       and gropdf to construct some Unicode composite characters.  Use
+       groff composite special characters for "a" with acute and grave
+       accents, and define strings for "a" with macron (overline) and
+       with háček/caron accents.  Use different string definitions for
+       nroff and troff modes so we don't regress UTF-8 terminal output.
+
+2021-05-10  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * contrib/gpinyin/subs.pl (vowel_t): Fix incorrect rendering of
        base glyph 'U', which was being forced to lowercase when a
        dieresis and tone mark were both being applied.  This caused the
diff --git a/contrib/gpinyin/gpinyin.1.man b/contrib/gpinyin/gpinyin.1.man
index 04fb4b3..f9e14a4 100644
--- a/contrib/gpinyin/gpinyin.1.man
+++ b/contrib/gpinyin/gpinyin.1.man
@@ -219,15 +219,20 @@ Some output devices will not be able to render every 
output example.
 .
 .
 .P
+.\" XXX: This is so gross.  Why can't grops and gropdf figure this out?
+.if t .ds a- \za\[a-]
+.if n .ds a- \[a a-]
+.if t .ds a< \za\[ah]
+.if n .ds a< \[a ah]
 .if t .ne 8 \" Try to keep the table on one page for printed output.
 .TS
 l l l l l.
 Tone   Description     Diacritic       Example Input   Example Output
 _
-first  flat    \[a-]   ma1     m\[u0061_0304]
-second rising  \[aa]   ma2     m\[u0061_0301]
-third  falling-rising  \[ah]   ma3     m\[u0061_030C]
-fourth falling \[ga]   ma4     m\[u0061_0300]
+first  flat    \[a-]   ma1     m\*[a-]
+second rising  \[aa]   ma2     m\[a aa]
+third  falling-rising  \[ah]   ma3     m\*[a<]
+fourth falling \[ga]   ma4     m\[a ga]
 fifth  neutral (none)  ma0     ma
 \^     \^      \^      ma5     \^
 .TE



reply via email to

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