Update of bug #55799 (group groff):

                  Status:                    None => Confirmed

    _______________________________________________________

Follow-up Comment #2:

Now that we've got Advancing Dumping Technologyâ„¢ in _groff_ Git's master
branch, we can obtain some insight into what's going on.


$ printf ".char a z\nplan\n.pline\n" | groff -z 2>&1 | jq
[
  {
    "type": "line_start_node",
    "diversion level": 0,
    "is_special_node": false
  },
  {
    "type": "glyph_node",
    "diversion level": 0,
    "is_special_node": false,
    "character": "p"
  },
  {
    "type": "glyph_node",
    "diversion level": 0,
    "is_special_node": false,
    "character": "l"
  },
  {
    "type": "composite_node",
    "diversion level": 0,
    "is_special_node": false,
    "character": "a"
  },
  {
    "type": "glyph_node",
    "diversion level": 0,
    "is_special_node": false,
    "character": "n"
  },
  {
    "type": "word_space_node",
    "diversion level": 0,
    "is_special_node": false,
    "hunits": 2500,
    "undiscardable": false,
    "is hyphenless breakpoint": false,
    "terminal_color": "default",
    "width_list": [
      {
        "width": 2500,
        "sentence_width": 2500
      }
    ],
    "unformat": false
  }
]


That redefined 'a' is not a `glyph_node`, but a `composite_node`.

And it also seems not to contain anything!  Huh.  Even having just written the
code to handle this, I'm surprised.  Maybe I overlooked making
`composite_node` derive from `container_node`?

Anyway, we **can** verify that it's got an unusual property.


$ printf ".char a z\nplan\n.pchar a\n" | ./build/test-groff -z
character 'a'
  is not translated
  has a macro: "z"
  special translation: 0
  hyphenation code: 97
  flags: 0
  ASCII code: 97
  asciify code: 0
  is found
  is transparently translatable
  is not translatable as input
  mode: normal


Interesting to me that while as rendered, this "a" will _look_ like "z", the
hyphenation system will still treat it like "a".  But that seems okay.  If you
want to change its hyphenation code, too, the `hcode` request hangs on the
pegboard in easy reach.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55799>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to