◀ THE FOLD0ROOT.AI // WORLD II · SPAWN · THE TOOLCHAIN◆ .dlw.fold

Line-template alphabet

12 templates · 36 placements · 2 lines per character LIT · MEASURED

TEMPLATE LIBRARY — 12 canonical lines, distinct (dx,dy) up to sign

Blue = horizontal / vertical · green = diagonal · amber = oblique. Every line any character can use is one of these twelve, translated to an anchor.

THE BOX — 9 anchors, quadrant referents

Q2 Q1 Q3 Q4
anchors: TL TC TR / ML CC MR / BL BC BR
a placement is T##@ANCHOR — template index plus where it starts
36 of the 108 template×anchor pairs fit inside the box
a character is therefore two numbers, 0–35

ANSWER — how many lines does one character need?

linescandidate glyphsmin dist 16px @1.016px @1.524px @1.024px @1.5
1360.259 94.5%65.7%96.6%69.7%
26300.465 98.7%74.7%98.8%78.1%
37,1400.504 99.3%78.3%99.1%81.9%
Two. Going 1→2 buys +9.0 points at severity 1.5; 2→3 buys only +3.6 for eleven times the search space and 50% more ink. The knee is at two lines.

THE 27 CHARACTERS — each one two indexed placements

What changed, and it is the biggest single gain in this whole line of work. Dropping the single-stroke rule. The earlier alphabet required one continuous polyline — no pen lifts — and topped out at 66.7% at severity 1.5. Allowing two disjoint lines reaches 74.7% at 16px and 78.1% at 24px. Two separate strokes placed anywhere in the box separate far better than two joined ones, because a corner constrains where the second segment can go and disjoint lines do not.

On resolution and noise washing out the gains — partly right. 24px beats 16px by 3–4 points at every line count, so resolution helps but modestly, and the ordering never changes. The line count is what moves the number, not the raster.

The indexing is now the point. Twelve templates, nine anchors, 36 legal placements. A character is a pair of placement indices — two bytes, or T04@TL + T09@TR in readable form. Nothing needs to store coordinates or curves, the renderer needs twelve line primitives, and a recognizer can score against 36 templates rather than 27 whole glyphs. That is a genuinely different object from a font.

And it drops the channels I was defending last turn. Depth gave +7.6 points, but it needs a grayscale-stable capture path and it degrades under pressure variation. Two disjoint lines give +8.0 points and need nothing but ink. Same gain, no dependency. You were right to push back on it.

◆ sealed .dlw.fold → ROOT_0 · a sphere of THE TOOLCHAIN · vendored from David’s corpus · David Lee Wise (ROOT0), with AVAN