bug-groff
[Top][All Lists]
Advanced

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

[bug #54473] chess_board.roff: Many registers are not defined


From: Bjarni Ingi Gislason
Subject: [bug #54473] chess_board.roff: Many registers are not defined
Date: Thu, 9 Jun 2022 20:43:07 -0400 (EDT)

Follow-up Comment #3, bug #54473 (project groff):

  Patches were made when the suffix '-u' was used, so I could have
missed deleting it here.

Patch is in the attachment.

1)

    contrib/hdtbl/examples/chess_board.roff: reduce the size of each
chess field by 1 millimeter.  This fits then on a A4 size paper with
margins of total size of 2 inches.
 
2)

    contrib/hdtbl/hdmisc.tmac: Define register '<<'.

      The numeric register '<<' is only used once in the "hdtbl"-source.
    Its meaning is unknown.  Its value is set to '0' by groff, which can
    issue a warning about this undefined register.

      This is one part of bug-report #54473 Chess_board.roff: Many
registers are not defined.

3)

    contrib/hdtbl/hdmisc.tmac: fix definition of register '<<'

      Make the definition of '<<' depend on whether it was defined on
the command line or not.
 
  Drop the "Its meaning is unknown".  Ingo had a remark about it.  Now
his explanation can be checked with different values of '<<' on the
command line.

4)

    contrib/hdtbl/hdmisc.tmac: Initialize register 'M#'

      The register 'M#' has been used undefined.  Fix that.

5)

    hdmisc.tmac: Avoid a warning about a tab character in this source

      An example of the warnings:

    ../contrib/hdtbl/hdmisc.tmac:306: backtrace: macro 't*DI'
    ../contrib/hdtbl/hdtbl.tmac:477: backtrace: macro 'ETB'
    ../contrib/hdtbl/examples/common.roff:50: backtrace: macro 'H'
    troff: ../contrib/hdtbl/examples/chess_board.roff:45: warning: tab
character in unquoted macro argument

6)

    hdmisc.tmac: macro t*index: Fix the end value of a while loop

      The end value for the comparison of the strings is too large.

      Check if the second string is longer than the first one.

7)

    hdtbl.tmac: restore line length with minimal horizontal resolution

8) 

"%beginstrip%" can occur in the patch set.

9) 

    contrib/hdtbl/hdtbl.tmac: comment out tabs after ".di" as they
cause warnings
 
10)

    contrib/hdtbl/hdtbl.tmac: Avoid a warning about undefined macros

      Initialize the string variables "t*held" and "t*kept" to empty
before they are tested with: !""\\*[t*...]" .

11)

    hdmisc.tmac: Avoid a warning about a tab character in this source

      An example of the warnings:

    ../contrib/hdtbl/hdmisc.tmac:306: backtrace: macro 't*DI'
    ../contrib/hdtbl/hdtbl.tmac:477: backtrace: macro 'ETB'
    ../contrib/hdtbl/examples/common.roff:50: backtrace: macro 'H'
    troff: ../contrib/hdtbl/examples/chess_board.roff:45: warning: tab
character in unquoted macro argument


12)

    Subject: hdtbl.tmac and common.roff: fix undefined strings and
remove 'substring'

    hdtbl.tmac:

      Strings "t*held" and "t*kept" are defined by using itself instead
of
    adding the text to them; use ".as a ..." instead of ".ds a \*[a]
..."

    common.roff:

      The "substring" request is not needed as there is no longer a
    possibility to overflow.

13)

    src: hdtbl.tmac: Fix one formatting and one bug

      Increase space between sentences.

      The escape '\c' removes everything after it, except "\R..." ("info
groff").


(file #53290)

    _______________________________________________________

Additional Item Attachment:

File name: chess_board.roff.diff          Size:8 KB
    <https://file.savannah.gnu.org/file/chess_board.roff.diff?file_id=53290>



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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