gbranden pushed a commit to branch master
in repository groff.

commit 39a0fa494f59c5d7bc0ae85da92d1ec84994452e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jan 18 00:49:30 2025 -0600

    [troff]: Recast diagnostic messages.
    
    * src/roff/troff/node.cpp (define_font_specific_character)
      (remove_font_specific_character): Recast diagnostic messages.
      "Glyphs" are rendered by fonts; no *roff has a mechanism for
      constructing glyphs per se.  What we're throwing diagnostics about
      here are font-specific fallback character definitions.
---
 ChangeLog               | 8 ++++++++
 src/roff/troff/node.cpp | 6 ++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fd49d04eb..404f94dd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-01-17  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/node.cpp (define_font_specific_character)
+       (remove_font_specific_character): Recast diagnostic messages.
+       "Glyphs" are rendered by fonts; no *roff has a mechanism for
+       constructing glyphs per se.  What we're throwing diagnostics
+       about here are font-specific fallback character definitions.
+
 2025-01-17  G. Branden Robinson <[email protected]>
 
        [troff]: Make more requests that take mandatory arguments--
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 25e99f370..b2db43796 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -6409,7 +6409,8 @@ static void define_font_specific_character()
   }
   font_lookup_info finfo;
   if (!has_font(&finfo)) {
-    font_lookup_error(finfo, "to define font-specific fallback glyph");
+    font_lookup_error(finfo, "to define font-specific fallback"
+                     " character");
     // Normally we skip the remainder of the line unconditionally at the
     // end of a request-implementing function, but define_character()
     // will eat the rest of it for us.
@@ -6431,7 +6432,8 @@ static void remove_font_specific_character()
   }
   font_lookup_info finfo;
   if (!has_font(&finfo))
-    font_lookup_error(finfo, "to remove font-specific fallback glyph");
+    font_lookup_error(finfo, "to remove font-specific fallback"
+                     " character");
   else {
     symbol f = font_table[finfo.position]->get_name();
     while (!tok.is_newline() && !tok.is_eof()) {

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to