Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.groff.bug > #1577 > unrolled thread

[bug #57448] groff will not break a line at a hard hyphen following some letter combinations

Started byDave <INVALID.NOREPLY@gnu.org>
First post2019-12-19 08:16 -0500
Last post2019-12-19 08:16 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.groff.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [bug #57448] groff will not break a line at a hard hyphen following some letter combinations Dave <INVALID.NOREPLY@gnu.org> - 2019-12-19 08:16 -0500

#1577 — [bug #57448] groff will not break a line at a hard hyphen following some letter combinations

FromDave <INVALID.NOREPLY@gnu.org>
Date2019-12-19 08:16 -0500
Subject[bug #57448] groff will not break a line at a hard hyphen following some letter combinations
Message-ID<mailman.1132.1576761405.1979.bug-groff@gnu.org>
URL:
  <https://savannah.gnu.org/bugs/?57448>

                 Summary: groff will not break a line at a hard hyphen
following some letter combinations
                 Project: GNU troff
            Submitted by: barx
            Submitted on: Thu 19 Dec 2019 07:16:37 AM CST
                Category: Core
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

I see this behavior in a build of the latest groff from git sources:

$ groff --version | head -1
GNU groff version 1.22.4.74-b400-dirty

as well as in earlier release versions, going back to at least 1.22.3.

$ groff -a <<EOF
.ll 1i
One has the AB-style switch.
EOF

This produces the output:

<beginning of page>
One has the AB-
style switch.

The same formatting is output by using any two capital letters in place of AB
-- *except* in 19 of the possible 676 combinations.  If the two letters are
AT, AV, AW, AY, DV, DW, DY, LT, LV, LW, LY, OT, OV, OW, OY, RT, RV, RW, or RY,
groff will refuse to break the line at the hyphen, carrying over the entire
"xx-style" phrase to the next line (or putting it all on the first line, if
you increase .ll a bit).

This script generates all 676 combinations and shows which ones won't break at
the hyphen:

#!/bin/bash

(echo .ll 1i
 for first in $(seq 65 90)
 do
   for second in $(seq 65 90)
   do
     echo -e One has the \
             "\x$(printf %x $first)\x$(printf %x $second)"-style \
             switch.
     echo .br
   done
 done
) | groff -a | grep -o ..-style




    _______________________________________________________

Reply to this item at:

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

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

[toc] | [standalone]


Back to top | Article view | gnu.groff.bug


csiph-web