gbranden pushed a commit to branch master
in repository groff.
commit 3718eb9772799834425018620d0ab9b0479f1aae
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Oct 30 21:02:42 2024 -0500
[troff]: Tweak `pev` output re: hyphenation mode.
* src/roff/troff/env.cpp (environment::print_env): Describe automatic
hyphenation mode in plain English.
---
ChangeLog | 5 +++++
src/roff/troff/env.cpp | 10 +++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 016cd2766..dd9003630 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-30 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/env.cpp (environment::print_env): Describe
+ automatic hyphenation mode in plain English.
+
2024-10-29 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp (select_hyphenation_language)
diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 7858f081b..5cb41e157 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3603,15 +3603,15 @@ void environment::print_env()
}
string hf = hyphenation_mode ? "on" : "off";
if (hyphenation_mode & HYPHEN_NOT_LAST_LINE)
- hf += ", not last line";
+ hf += ", not on line before vertical position trap";
if (hyphenation_mode & HYPHEN_LAST_CHAR)
- hf += ", last char";
+ hf += ", allowed before last character";
if (hyphenation_mode & HYPHEN_NOT_LAST_CHARS)
- hf += ", not last two chars";
+ hf += ", not allowed within last two characters";
if (hyphenation_mode & HYPHEN_FIRST_CHAR)
- hf += ", first char";
+ hf += ", allowed after first character";
if (hyphenation_mode & HYPHEN_NOT_FIRST_CHARS)
- hf += ", not first two chars";
+ hf += ", not allowed within first two characters";
hf += '\0';
errprint(" hyphenation mode: %1 (%2)\n", hyphenation_mode,
hf.contents());
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit