groff-commit
[Top][All Lists]
Advanced

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

[groff] 02/31: gpinyin(1): Work around conditional tbl inclusion.


From: G. Branden Robinson
Subject: [groff] 02/31: gpinyin(1): Work around conditional tbl inclusion.
Date: Sun, 30 May 2021 11:12:27 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 4b1545be1dd7370aed72e0cd70cef2c5c5de8542
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu May 27 14:56:05 2021 +1000

    gpinyin(1): Work around conditional tbl inclusion.
    
    Ugly, ugly, ugly.
    
    Someday, if the issue raised in
      https://lists.gnu.org/archive/html/groff/2021-05/msg00045.html
    is resolved, the world can be beautiful again.
---
 contrib/gpinyin/gpinyin.1.man | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/contrib/gpinyin/gpinyin.1.man b/contrib/gpinyin/gpinyin.1.man
index 712df03..dff4c0a 100644
--- a/contrib/gpinyin/gpinyin.1.man
+++ b/contrib/gpinyin/gpinyin.1.man
@@ -217,9 +217,13 @@ The tone numbers 0 and 5 are synonymous.
 .nr gpinyin*do-table 0
 .if t .nr gpinyin*do-table 1
 .if n .if '\*[.T]'utf8' .nr gpinyin*do-table 1
+.\" XXX: One hack necessitates another; since our table is conditional,
+.\" we need to save the input line counter.
+.nr gpinyin*.c \n[.c]
 .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?
 .if t .ds a- \za\[a-]
@@ -239,6 +243,7 @@ fifth       neutral (none)  ma0     ma
 \^     \^      \^      ma5     \^
 .TE
 .\}
+.lf (\n[gpinyin*.c] + 25) \" XXX part 2: Restore input line counter.
 .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



reply via email to

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