bug-groff
[Top][All Lists]
Advanced

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

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


From: Dave
Subject: [bug #57448] groff will not break a line at a hard hyphen following some letter combinations
Date: Fri, 20 Dec 2019 05:36:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0

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

But you are correct that kerning appears to be what triggers the bug.

In the default font (TR), only four uppercase letters have kerning between
them and a following hyphen:

$ sed -n '/^kernpairs/,/^$/p' /usr/share/groff/current/font/devps/TR | grep
'^[[:upper:]] - '
T - -92
V - -100
W - -65
Y - -111

(Side note: these four letters' glyphs are basically symmetrical, so it's
unclear why this file lacks the same four combinations in reverse order; there
are no kern pairs beginning with a hyphen.)

Now look at all kern pairs beginning with any uppercase letter and ending with
one of the above four:

$ sed -n '/^kernpairs/,/^$/p' /usr/share/groff/current/font/devps/TR | grep
'^[[:upper:]] [TVWY]'

This generates my list of the 19 offending combinations.  Thus a more succinct
bug description would be: groff fails to break a line at a hyphen following
two uppercase letters when the font file specifies kerning both between those
letters and between the second letter and the hyphen.

Curiously, the place where the line break should occur is never kerned: the
break should always be after the hyphen, and no kern pairs have a hyphen as
the first element.  It is kerning that occurs before (what should be) a
breakpoint that somehow inhibits breaking at that point.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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