gbranden pushed a commit to branch master
in repository groff.
commit 4814b11ea339979a64e7c16f83b9bcfabb9d9034
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Dec 7 10:33:03 2025 -0600
tmac/zh.tmac: Fix Savannah #67757 (2/2).
* tmac/zh.tmac: Correct apparently mistaken character flags for
`[CJKpostpunct]` class from "266" to "256". A typo introduced two
spurious flags (2 and 8).
Fixes <https://savannah.gnu.org/bugs/?67757>. Problem appears to date
back to commit 1cb8dd7bde, 13 December 2010. Thanks to Colin Watson for
suggesting a regression test procedure.
Procedure:
$ zcat $(find /usr/share/man/ja -type f -and -not -type l | sort \
| sed '/\/ps\.1\.gz/,$d') >| CHINESE-MAN-CORPUS.man
$ time ./build/test-groff -kt -man -T utf8 CHINESE-MAN-CORPUS.man \
>| CHINESE-MAN-CORPUS-OUT-1.txt 2>| CHINESE-MAN-CORPUS-ERR-1.txt
[patch tmac/zh.tmac]
$ time ./build/test-groff -kt -man -T utf8 CHINESE-MAN-CORPUS.man \
>| CHINESE-MAN-CORPUS-OUT-2.txt 2>| CHINESE-MAN-CORPUS-ERR-2.txt
$ cksum CHINESE-MAN-CORPUS*
3924545915 758981 CHINESE-MAN-CORPUS-ERR-1.txt
3924545915 758981 CHINESE-MAN-CORPUS-ERR-2.txt
2457258792 4084846 CHINESE-MAN-CORPUS-OUT-1.txt
2457258792 4084846 CHINESE-MAN-CORPUS-OUT-2.txt
3688068087 3652129 CHINESE-MAN-CORPUS.man
(See previous commit for why I stopped the sample at ps(1).)
---
ChangeLog | 3 ++-
tmac/zh.tmac | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4f9b1ff1c..7b8a4ecc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2025-12-07 G. Branden Robinson <[email protected]>
- * tmac/ja.tmac: Correct apparently mistaken character flags for
+ * tmac/ja.tmac:
+ * tmac/zh.tmac: Correct apparently mistaken character flags for
`[CJKpostpunct]` class from "266" to "256". A typo introduced
two spurious flags (2 and 8).
diff --git a/tmac/zh.tmac b/tmac/zh.tmac
index 26939bd41..585b58bae 100644
--- a/tmac/zh.tmac
+++ b/tmac/zh.tmac
@@ -44,7 +44,7 @@
\[u4E00]-\[u9FFF]
.
.cflags 128 \C'[CJKprepunct]'
-.cflags 266 \C'[CJKpostpunct]'
+.cflags 256 \C'[CJKpostpunct]'
.cflags 512 \C'[CJKnormal]'
.
.\" Chinese hyphenation (disabled)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit