gbranden pushed a commit to branch master
in repository groff.
commit b063a25be9c04db32ef991e07f36942ae78ffabd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Mar 5 10:16:13 2022 +1100
gpinyin(1),groff_font(5): Quieten warnings.
...with a kludge. As noted in the apologetic source comments, we need
an escape sequence that selectively disables adjustment at the end of a
word if the line must break there.
---
contrib/gpinyin/gpinyin.1.man | 8 ++++++++
man/groff_font.5.man | 5 +++++
2 files changed, 13 insertions(+)
diff --git a/contrib/gpinyin/gpinyin.1.man b/contrib/gpinyin/gpinyin.1.man
index 5d0477ca..579b22b9 100644
--- a/contrib/gpinyin/gpinyin.1.man
+++ b/contrib/gpinyin/gpinyin.1.man
@@ -288,10 +288,15 @@ Useful documents on the World Wide Web related to Pinyin
include
.UE ,
.
.br
+.\" XXX: Turning off adjustment like this is ugly; thanks to meter-long
+.\" URLs we need an escape sequence that selectively disables adjustment
+.\" at the end of a word.
+.na
.UR http://\:www\:.pinyin\:.info/\:index\:.html
.I Pinyin.info: a guide to the writing of Mandarin Chinese in \
romanization
.UE ,
+.ad \*[AD]
.
.br
.UR http://\:www\:.pinyin\:.info/\:rules/\:where.html
@@ -310,11 +315,14 @@ and
.RE
.
.br
+.\" XXX: Same ugliness as before.
+.na
.UR http://\:git\:.savannah\:.gnu\:.org/\:gitweb/\:\
?p=cjk\:.git\:;a=blob_plain\:;f=texinput/\:pinyin\:.sty\:;hb=HEAD
.I pinyin.sty
from the CJK macro package for \*[TeX]
.UE .
+.ad \*[AD]
.
.RE
.
diff --git a/man/groff_font.5.man b/man/groff_font.5.man
index 27049ed4..3ff31f52 100644
--- a/man/groff_font.5.man
+++ b/man/groff_font.5.man
@@ -782,12 +782,17 @@ it may be broken here for readability).
.
.
.IP
+.\" XXX: Turning off adjustment is ugly; thanks to meter-long specimens
+.\" like this, we need an escape sequence that selectively disables
+.\" adjustment at the end of a word.
+.na
.I width\/\c
.RI [\fB,\fP[ \:height\/\c
.RI [\fB,\fP[ \:depth\/\c
.RI [\fB,\fP[ \:\%italic-correction\/\c
.RI [\fB,\fP[ \:\%left-italic-correction\/\c
.RI [\fB,\fP[ \:\%subscript-correction ]]]]]]]]]]
+.ad \*[AD]
.
.
.P
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit