bugGNU roff - Bugs: bug #62273, [man] throws undefined register...

 
 

bug #62273: [man] throws undefined register warning on ja,zh man pages

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Fri 08 Apr 2022 10:54:58 PM UTC
   
 
Category:  Macro package man Severity:  3 - Normal
Item Group:  Warning/Suspicious behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 10 Apr 2022 12:19:35 AM UTC, comment #1: 


commit cdbaec642d047ed1e75ed5bf7eeb48dbba5a660a
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Sat Apr 9 08:58:17 2022 +1000

    [localization]: Fix Savannah #62273.

    [localization]: Define hyphenation mode registers for Japanese and
    Chinese.  They are set to zero but must be defined so that macro
    packages can rely on their existence without causing 'reg' warnings.

    * tmac/ja.tmac:
    * tmac/zh.tmac: Do it.

    Fixes <https://savannah.gnu.org/bugs/?62273>.


G. Branden Robinson <gbranden>
Group administrator
Fri 08 Apr 2022 10:54:58 PM UTC, original submission:  

This is a post-1.22.4 issue, exposed by my work on man(7) localization.


$ zcat /usr/share/man/zh_CN/man1/lexgrog.1.gz | tgu -kz -man -mzh
troff: backtrace: '.../groff/build/../tmac/an.tmac':146: macro 'an*reset-hyphenation-mode'
troff: backtrace: '.../groff/build/../tmac/an.tmac':261: macro 'TH'
troff: backtrace: file '<standard input>':14
troff:<standard input>:14: warning: register 'chinese*hyphenation-mode-base' not defined
$ zcat /usr/share/man/ja/man1/lexgrog.1.gz | tgu -kz -man -mja
troff: backtrace: '.../groff/build/../tmac/an.tmac':146: macro 'an*reset-hyphenation-mode'
troff: backtrace: '.../groff/build/../tmac/an.tmac':261: macro 'TH'
troff: backtrace: file '<standard input>':14
troff:<standard input>:14: warning: register 'japanese*hyphenation-mode-base' not defined


The fix is straightforward.  Prior to it, I have a pending commit to add test cases to ensure we don't regress the value of hyphenation bit 1 (i.e., 2^1=2, the one that suppresses hyphenation before a vertical position trap).

G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-10 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code