bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64233] [troff] make requests' treatment of Boolean arguments more


From: G. Branden Robinson
Subject: [bug #64233] [troff] make requests' treatment of Boolean arguments more consistent
Date: Sat, 7 Sep 2024 09:39:33 -0400 (EDT)

Follow-up Comment #2, bug #64233 (group groff):


commit c7f4885869b2db096f78bd30e685253cdc4b3891
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Mon Sep 2 01:58:36 2024 -0500

    [troff]: `kern` req now works like `color` et al.
    
    The `kern` request now interprets arguments with negative values as
    instructions to disable the corresponding feature, using the *roff
    integer-to-Boolean conversion idiom instead of the C/C++ one.  Thus, if
    you invoke this request with a register interpolation, the outcome
    agrees with an `if` test of the register's value.
    
    * src/roff/troff/node.cpp: Demote type of global `global_kern_mode` from
      `int` to `bool`.
    
      (set_kerning_mode): Assign value to `global_kern_mode` using *roff
      integer-to-Boolean conversion idiom.  When no argument is present,
      assign using Boolean, not integer, literal.
    
      (init_node_requests): Back `.kern` register with an object of class
      `readonly_boolean_register` instead of `readonly_register`.
    
    * doc/groff.texi.in (Ligatures and Kerning):
    * man/groff.7.man (Request short reference):
    * man/groff_diff.7.man (New requests):
    * NEWS: Document it.




    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]