Skip to content

linediff: an interword space in a justified line is narrower than a sixth - #635

Merged
tannevaled merged 1 commit into
mainfrom
linediff-spaces-caveat
Oct 20, 2026
Merged

tannevaled merged 1 commit into
mainfrom
linediff-spaces-caveat

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

An interword space in a justified line is narrower than a sixth of the size

Neither engine draws a space glyph, so gotex-linediff puts one back where two
show operators leave a gap. The threshold was a sixth of the size — and that is
inside the range a justified line's spaces live in: Computer Modern's space is a
third of the size with a third of that to shrink, so a tight line puts it at 22%
and a very tight one below 17%.

What that cost

Measured on this engine's own render of arXiv 2405.20319, a two-column acmart
paper:

before   guage,weintroduceParSEL:ParameterizedShapeEditingwithLan-
after    guage, we introduce ParSEL: Parameterized Shape Editing with Lan-

and poppler reads that same line with its spaces. The words had run together in
the report, not on the page — and I was one step from entering it in #629 as an
engine defect, alongside the four real ones. An instrument that invents a symptom is
worse than one that misses it.

A twentieth is below any shrunk space and above the kerning pairs, whose gaps are a
few percent of the size. Both directions are asserted: a 3%-of-size gap must stay
inside the word, a 13% one must become a space.

⛔ The first test proved nothing

It compiled a witness at a 150pt measure — and its spaces stayed above a sixth, so
it passed with the old threshold still in place. That is the second time this week a
test passed for the wrong reason, and the same remedy applied: the test now uses the
measured geometry of the real line (8.97pt, 1.2pt gaps, 13% of the size), which
is the band the defect lives in. Checked against its own mutation, it reports
"guage,weintroduce" against "guage, we introduce".

⚠ What this does not do

-align keys on words, so a line whose words ran together cost that page its key —
but the corpus coverage is unchanged: 94 measured of 154, 52 dropped for too few
keys, before and after. The improvement is to what the report says, not to how
much of the corpus it can measure. I expected the second and did not get it.

🤖 Generated with Claude Code

…ixth

Neither engine draws a space glyph, so this reader puts one back where two show
operators leave a gap. The threshold was a SIXTH of the size — and that is inside
the range a justified line's spaces live in. Computer Modern's space is a third of
the size with a third of that to shrink, so a tight line puts it at 22% and a very
tight one below 17%.

Measured on this engine's own render of arXiv 2405.20319, a two-column acmart
paper:

	before   guage,weintroduceParSEL:ParameterizedShapeEditingwithLan-
	after    guage, we introduce ParSEL: Parameterized Shape Editing with Lan-

and poppler reads that same line with its spaces. So the words had run together in
the REPORT, not on the page — and I was one step from entering it in #629 as an
engine defect. An instrument that invents a symptom is worse than one that misses
it.

A twentieth is below any shrunk space and above the kerning pairs, whose gaps are
a few percent of the size. Both directions are asserted.

⛔ THE FIRST TEST PROVED NOTHING. It compiled a witness at a 150pt measure, and
its spaces stayed above a sixth — so it passed with the old threshold in place.
The test now uses the MEASURED geometry of the real line (8.97pt, 1.2pt gaps, 13%
of the size), which is the band the defect lives in; checked against its own
mutation, it reports "guage,weintroduce" against "guage, we introduce".

⚠ What this does NOT do: -align keys on words, so a line whose words ran together
cost that page its key — but the corpus coverage is unchanged, 94 measured of 154
and 52 dropped for too few keys, before and after. The improvement is to what the
report SAYS, not to how much of the corpus it can measure.

Co-Authored-By: Claude Opus 5 <[email protected]>
@tannevaled
tannevaled merged commit 96436b0 into main Oct 20, 2026
18 checks passed
@tannevaled
tannevaled deleted the linediff-spaces-caveat branch October 20, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant