Follow-up Comment #5, bug #68303 (group groff):

[comment #3 comment #3:]
> I will probably reinstate the code as it was after asciify is fixed - s.tmac
> 
> is sufficiently convoluted as it is!

Go for it!  Should work now.

>> ... and in any case I think I want to minimize the differences in
>> output node topology between troff and nroff modes. 
> 
> Parsing and building the node tree ought to be the same for nroff and troff,
> 
> the difference is what they output to grout for each node, and even then the
> 
> code could be the same, just filter out stuff which which has a null effect
> at 
> the resolution advertised for the output device it is writing grout for, or 
> device does not support (drawing commands).

Sounds like we're on the same page.  There's a problem, though.

3 of them, actually.  This one (how many nodes a `left_italic_correction_node`
contains, one I knowingly introduced and pointed out in discussion with you
while developing the fix for bug #63074, and one that, like the first, I think
has been around for a long time.

See...hmm, well, once again Savannah's cgit website is unresponsive for me.
I'll try to remember to follow up when it comes alive again.

In the meantime I can copy and paste.


$ nl -ba src/roff/troff/input.cpp | sed -n 7005,7010p
  7005          if (sc.search(' ') > 0) {
  7006            // XXX: TODO
  7007            error("composite special character escape sequences not
yet"
  7008                  " supported in device extension command arguments");
  7009            is_valid = false;
  7010          }
$ nl -ba src/roff/groff/tests/asciify-request-works.sh | sed -n 110,128p
   110      # XXX: Unfortunately we don't handle this in nroff mode yet.
   111      if [ $d != utf8 ]
   112      then
   113          echo "checking textification of decomposable (with Basic Latin
base" \
   114              "character) Unicode special character 'u0106'" >&2
   115      echo "$output" | grep -q "C<aa>" || wail
   116      fi
   117
   118      # TODO: See "test this" above.
   119      # The fallback character definition in ps.tmac gives us grief.
   120      #echo "checking textification of ligature special character 'fl'"
>&2
   121      #echo "$output" | grep -q "i<fl>" || wail
   122
   123      # We _documentedly_ don't handle ligatures in nroff mode.
   124      if [ $d != utf8 ]
   125      then
   126          echo "checking textification of ligature special character
'Fl'" >&2
   127          echo "$output" | grep -q "of<fl>" || wail
   128      fi

 
Should we open a new "Wish" ticket for this objective?


    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to