gbranden pushed a commit to branch master
in repository groff.
commit 159bc16f166ed033abcad5c573bca98a758c4f49
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Aug 30 06:59:57 2025 -0500
src/roff/troff/node.cpp: Update annotations.
---
src/roff/troff/node.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 6f56c84f6..821ac0ed2 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -1974,6 +1974,8 @@ void charinfo_node::dump_properties()
fflush(stderr);
}
+// A glyph node corresponds to a glyph supplied by a device font.
+
class glyph_node : public charinfo_node {
protected:
tfont *tf;
@@ -3891,7 +3893,6 @@ void glyph_node::asciify(macro *m)
unsigned char c = ci->get_asciify_code();
if (0U == c)
c = ci->get_ascii_code();
- // XXX: What if it's a Unicode special character?
if (c != 0U) {
m->append(c);
delete this;
@@ -4655,6 +4656,9 @@ hunits suppress_node::width()
/* composite_node */
+// A composite (glyph) node corresponds to a user-defined GNU troff
+// character with a macro definition.
+
// Not derived from `container_node`; implements custom contained node
// dumper in dump_node().
class composite_node : public charinfo_node {
@@ -4745,7 +4749,6 @@ void composite_node::asciify(macro *m)
unsigned char c = ci->get_asciify_code();
if (0U == c)
c = ci->get_ascii_code();
- // XXX: What if it's a Unicode special character?
if (c != 0U) {
m->append(c);
delete this;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit