bug-groff
[Top][All Lists]
Advanced

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

[bug #66392] [troff] loses track of hyphenation mode in environment 1


From: G. Branden Robinson
Subject: [bug #66392] [troff] loses track of hyphenation mode in environment 1
Date: Thu, 31 Oct 2024 05:35:44 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?66392>

                 Summary: [troff] loses track of hyphenation mode in
environment 1
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Thu 31 Oct 2024 09:35:41 AM UTC
                Category: Macro package me
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: In Progress
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 31 Oct 2024 09:35:41 AM UTC By: G. Branden Robinson <gbranden>
Problem affects _groff_ 1.22.3 and probably goes way back.


$ git diff doc/meintro.me.in
diff --git a/doc/meintro.me.in b/doc/meintro.me.in
index bf01a3fcf..0a346c913 100644
--- a/doc/meintro.me.in
+++ b/doc/meintro.me.in
@@ -656,7 +656,9 @@ and
 to surround the quote.
 For example,
 the input:
+.tm GBR1: .hla=\n[.hla], .hy=\n[.hy]
 .(b
+.tm GBR2: .hla=\n[.hla], .hy=\n[.hy]
 As Weizenbaum points out:
 \&.(q
 It is said that to explain is to explain away.
@@ -664,6 +666,7 @@ This maxim is nowhere so well fulfilled
 as in the areas of computer programming,...
 \&.)q
 .)b
+.tm GBR3: .hla=\n[.hla], .hy=\n[.hy]
 generates as output:
 .lp
 As Weizenbaum points out:
$ ~/groff-1.22.3/bin/groff -me -z build/doc/meintro.me 
GBR1: .hla=us, .hy=14
GBR2: .hla=us, .hy=1
GBR3: .hla=us, .hy=14


The same problem happens with environment 2, but since _me_ uses that for
headers and footers, where hyphenation breaking typically does not occur, it
would be harder to notice.







    _______________________________________________________

Reply to this item at:

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

_______________________________________________
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]