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


Groups > gnu.groff.bug > #1584

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

Path csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Dave <INVALID.NOREPLY@gnu.org>
Newsgroups gnu.groff.bug
Subject [bug #57448] groff will not break a line at a hard hyphen following some letter combinations
Date Mon, 23 Dec 2019 07:50:39 -0500 (EST)
Lines 29
Approved bug-groff@gnu.org
Message-ID <mailman.1305.1577105443.1979.bug-groff@gnu.org> (permalink)
References <20191219-071637.sv93119.83466@savannah.gnu.org> <20191219-231340.sv93188.76941@savannah.gnu.org> <20191219-220856.sv93119.28405@savannah.gnu.org> <20191220-043627.sv93119.51933@savannah.gnu.org> <20191222-233745.sv93188.73578@savannah.gnu.org> <20191223-065039.sv93119.93277@savannah.gnu.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain;charset=UTF-8
X-Trace usenet.stanford.edu 1577105444 29807 209.51.188.17 (23 Dec 2019 12:50:44 GMT)
X-Complaints-To action@cs.stanford.edu
To Dave <saint.snit@gmail.com>, Bjarni Ingi Gislason <bjarniig@rhi.hi.is>, bug-groff@gnu.org
Envelope-to bug-groff@gnu.org
X-PHP-Originating-Script 1001:sendmail.php
X-Savane-Server savannah.gnu.org:443 [2001:470:142:5::79]
X-Savane-Project groff
X-Savane-Tracker bugs
X-Savane-Item-ID 57448
User-Agent Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0
X-Apparently-From 2605:a601:aac3:e300:55b7:e0e9:96ca:b482 (Savane authenticated user barx)
In-Reply-To <20191222-233745.sv93188.73578@savannah.gnu.org>
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 209.51.188.79
X-BeenThere bug-groff@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id "Bug reports for the GNU version of nroff, troff et al" <bug-groff.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-groff>
List-Post <mailto:bug-groff@gnu.org>
List-Help <mailto:bug-groff-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20191223-065039.sv93119.93277@savannah.gnu.org>
X-Mailman-Original-References <20191219-071637.sv93119.83466@savannah.gnu.org> <20191219-231340.sv93188.76941@savannah.gnu.org> <20191219-220856.sv93119.28405@savannah.gnu.org> <20191220-043627.sv93119.51933@savannah.gnu.org> <20191222-233745.sv93188.73578@savannah.gnu.org>
Xref csiph.com gnu.groff.bug:1584

Show key headers only | View raw


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

>   If the kerning in front of the hyphen is removed (with '\&'),
> the expected result is there.

Well, not if the expected result is for kerning and line-breaking to
simultaneously work. :)

If one needs a workaround, a better one is to add a zero-width breakpoint (\:)
after the hyphen.

But the greater trick is figuring out all the places such a \: is needed.  In
groff's default font set -- with relatively few kern pairs that have a hyphen
as the second character -- the problem is limited in scope.  But for installed
fonts with a larger set of kern pairs, the bug could crop up in unexpected
places.  (And there is nothing magical about two characters: any number of
kerned characters before a hyphen triggers the bug.)

    _______________________________________________________

Reply to this item at:

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

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

Back to gnu.groff.bug | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web