← Playground一覧に戻る

Ruled Notebook 2

A ruled sheet that is as long as the writing on it: set the face, the size and the rules, and the page finds its own length so nothing ever runs off the bottom.

Text
Ruling
11 px
20 px
Sheet

Ruled Notebook 2

The first notebook had a fixed page: sixteen by nine, and whatever did not fit on it was simply not drawn. Raise the size, widen the rules, write a paragraph too many, and the writing walked off the bottom edge. This one turns the order around. The text is set first — wrapped to the margin, counted into lines — and only then is the sheet cut to length. The page starts as a square and grows downward from there, always with two spare rules under the last line, so there is no setting of face, size and spacing that can push the writing off the paper.

The line breaking is not the plain character-by-character break of the first version. Latin words are held together and broken at spaces; Japanese breaks between characters, as it should, but with the two rules a typesetter keeps: a closing bracket or a full stop never starts a line — it hangs past the margin instead — and an opening bracket never ends one. A word longer than the measure is split by character as a last resort, so a pasted URL wraps rather than overflowing.

The controls are for fine work. Each slider has a pair of buttons beside it that step the value by one and repeat while held, and they grey out at the ends of their range. The sheet redraws only when something changes — nothing here animates at rest.

ControlEffect
TextWhat is written on the sheet. The box grows with the text, and so does the page
Font sizeSize of the set text, 6–48 px. The buttons step it one pixel at a time
Line spacingDistance between rules, 8–80 px, and the baseline-to-baseline spacing of the writing
FaceMincho (serif), Gothic (sans), or a monospace face
Reset rulingBack to Mincho 11/20 — the defaults — without touching the text
Save sheetWrites the whole sheet, rules and foot slug and all, to a PNG at twice the size

The line along the foot is the sheet’s own record: the face, the size over the rule, and how many lines and characters are standing on the page.