Follow-up Comment #24, bug #67571 (group groff): More source diving. As of _groff_ 1.22.3, the function implementing the innards of the `cflags` request was little changed from the James Clark era.
$ git blame 1.22.3 -- src/roff/troff/input.cpp | sed -n '/void char_flags/,/)
}/p'
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6954) void char_flags()
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6955) {
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6956) int flags;
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6957) if (get_integer(&flags))
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6958) while (has_arg()) {
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6959) charinfo *ci = tok.get_char(1);
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6960) if (ci) {
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6961) charinfo *tem = ci->get_translation();
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6962) if (tem)
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6963) ci = tem;
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6964) ci->set_flags(flags);
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6965) }
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6966) tok.next();
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6967) }
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6968) skip_line();
^351da0dcd troff/input.c (James Clark 1991-06-02 04:20:34 -0500
6969) }
Observe that there is no special handling of character classes at all here.
That doesn't mean it doesn't exist, but if it does, it must sit within the
`charinfo` class's member function `set_flags()`.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67571>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
