Discussion:
[bug #58897] ellipses need kerning too
(too old to reply)
Dave
2020-08-04 16:33:03 UTC
Permalink
URL:
<https://savannah.gnu.org/bugs/?58897>

Summary: ellipses need kerning too
Project: GNU troff
Submitted by: barx
Submitted on: Tue 04 Aug 2020 11:33:02 AM CDT
Category: Font devps
Severity: 3 - Normal
Item Group: Incorrect behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None

_______________________________________________________

Details:

Commit 87edb525, from 2003, added character u2026 (HORIZONTAL ELLIPSIS) to
most base groff fonts. But to this day there is no kerning information for
this character.


sed -n '/^kernpairs$/,/^$/p' font/devps/[A-Z]* | fgrep 2026 | wc -l


To produce consistent typography, it should be kerned the same way as the
period, which is in 818 kern pairs across all the devps fonts.


sed -n '/^kernpairs$/,/^$/p' font/devps/[A-Z]* | fgrep . | wc -l


It would be easy to write a script to patch these files by duplicating the .
kernpairs for the ellipsis. But as bug #57506 points out, some aspect
(perhaps the entirety) of these files is generated by afmtodit, so this
shortcoming may be better addressed in that script, or in the original .afm
files that script reads.




_______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
Dave
2020-08-05 04:51:54 UTC
Permalink
Follow-up Comment #1, bug #58897 (project groff):

[comment #0 original submission:]
Post by Dave
It would be easy to write a script to patch these files
by duplicating the . kernpairs for the ellipsis.
In fact, since I needed it for my own use anyway, I wrote this script
(actually just a one-liner I entered at the shell prompt):


for file in font/devps/*[A-Z]; do sed -Ei\~ 's/(.*)(^| )\. (.*)/&\n\1\2u2026
\3/' $file ; done


It's an ugly and likely nonportable hack, but editing the font/devps files
directly is probably the wrong solution anyway.

_______________________________________________________

Reply to this item at:

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

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

Loading...