gbranden pushed a commit to branch master
in repository groff.

commit 9dc7454e424111ae7f0b03c401ed5cc3aac9b15b
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Nov 7 05:57:37 2025 -0600

    [troff]: Tweak `pchar` request output.
    
    * src/roff/troff/input.cpp (charinfo::dump): Report glyph properties in
      the same order that `glyph_node::asciify()` uses to attempt conversion
      of a glyph node back to a GNU troff input character sequence.
---
 ChangeLog                | 7 +++++++
 src/roff/troff/input.cpp | 5 +++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 175a81a5a..985da53e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-11-07  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (charinfo::dump): Report glyph
+       properties in the same order that `glyph_node::asciify()` uses
+       to attempt conversion of a glyph node back to a GNU troff input
+       character sequence.
+
 2025-11-07  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (transparent_translate): Fix code
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 3a92b966b..68a924449 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10757,6 +10757,9 @@ void charinfo::dump()
     }
     errprint(")\n");
   }
+  errprint("  asciify code: %1\n", static_cast<int>(asciify_code));
+  errprint("  ASCII code: %1\n", static_cast<int>(ascii_code));
+  // Also see node.cpp::glyph_node::asciify().
   int mapping = get_unicode_mapping();
   if (mapping >= 0) {
     const size_t buflen = 6; // enough for five hex digits + '\0'
@@ -10767,8 +10770,6 @@ void charinfo::dump()
   }
   else
     errprint("  Unicode mapping: none (%1)\n", mapping);
-  errprint("  ASCII code: %1\n", static_cast<int>(ascii_code));
-  errprint("  asciify code: %1\n", static_cast<int>(asciify_code));
   errprint("  is%1 found\n", is_not_found ? " not" : "");
   errprint("  is%1 transparently translatable\n",
           is_transparently_translatable ? "" : " not");

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

Reply via email to