gbranden pushed a commit to branch master
in repository groff.
commit ae47a154ae7d4ad403ee1590a0a7f3c94293cf25
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Dec 7 10:28:57 2025 -0600
tmac/ja.tmac: Fix Savannah #67757 (1/2).
* tmac/ja.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') >| JAPANESE-MAN-CORPUS.man
$ time ./build/test-groff -kt -man -T utf8 JAPANESE-MAN-CORPUS.man \
>| JAPANESE-MAN-CORPUS-OUT-1.txt 2>| JAPANESE-MAN-CORPUS-ERR-1.txt
[patch tmac/ja.tmac]
$ time ./build/test-groff -kt -man -T utf8 JAPANESE-MAN-CORPUS.man \
>| JAPANESE-MAN-CORPUS-OUT-2.txt 2>| JAPANESE-MAN-CORPUS-ERR-2.txt
$ cksum JAPANESE-MAN-CORPUS*
438660530 766502 JAPANESE-MAN-CORPUS-ERR-1.txt
438660530 766502 JAPANESE-MAN-CORPUS-ERR-2.txt
438660530 766502 JAPANESE-MAN-CORPUS-ERR1.txt
2457258792 4084846 JAPANESE-MAN-CORPUS-OUT-1.txt
2457258792 4084846 JAPANESE-MAN-CORPUS-OUT-2.txt
2457258792 4084846 JAPANESE-MAN-CORPUS-OUT1.txt
3688068087 3652129 JAPANESE-MAN-CORPUS.man
(Why stop at ps(1)? Because the formatter aborts due to input stack
exhaustion on that page [but not when formatted in isolation], which
appears to structurally be in the same shape it was 25 years ago, when
its English counterpart was The Worst Man Page Ever...
https://gitlab.com/procps-ng/procps/blob/7ac9a0e1f5606696dc799b773d5ec70183ca91a3/ps/ps.1
...and because a 3.5 megabyte sample of man(7) sources seemed "enough".)
---
ChangeLog | 10 ++++++++++
tmac/ja.tmac | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 2595fcdde..4f9b1ff1c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2025-12-07 G. Branden Robinson <[email protected]>
+
+ * tmac/ja.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.
+
2025-12-06 G. Branden Robinson <[email protected]>
* src/roff/troff/input.cpp (charinfo::dump): Use preprocessor to
diff --git a/tmac/ja.tmac b/tmac/ja.tmac
index fda1174af..476d31791 100644
--- a/tmac/ja.tmac
+++ b/tmac/ja.tmac
@@ -45,7 +45,7 @@
\[u3041]-\[u3096] \[u30A0]-\[u30FF] \[u4E00]-\[u9FFF]
.
.cflags 128 \C'[CJKprepunct]'
-.cflags 266 \C'[CJKpostpunct]'
+.cflags 256 \C'[CJKpostpunct]'
.cflags 512 \C'[CJKnormal]'
.
.\" Japanese hyphenation (disabled)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit