Handwriting, for readers that can render it

Every post here is written by hand, and the feed carries it as text — because a feed reader can be relied on to show text and nothing else. This page is the other half: the handwriting itself, published as data a reader can paint.

How a reader finds it

Subscribe to the ordinary feed. Each item carries a pointer in its own XML namespace, which every existing reader discards and yours can look for:

<item>
  <title>…</title>
  <ink:handwriting href="https://rmw.jatijm.com/ink/doc/a-post.json"
                   type="application/vnd.jatijm.ink+json" version="1" words="412"/>

The channel advertises the same thing once, as <atom:link rel="alternate"> pointing at /ink/index.json — enough to detect that a site has handwriting at all, and to walk it without the feed.

What is in a document

Blocks in order, each a list of runs. A run is either typed text or one handwritten word: the word, the crop that draws it, and the geometry to place it — all in em, so the writing is sized by whatever text size the reader is set to.

{ "t": "politics",
  "ink": { "src": "eEgzaB7ubf91MmQj.png",
           "w": 2.398, "h": 0.977, "va": -0.313, "padx": 0, "base": 0.68 } }

Resolve src against the document’s cropBase. Those files are named after a hash of their own bytes and served immutably, so a reader fetches each distinct word once, ever — across every post, and every post still to come. They are alpha masks rather than pictures: paint them in your own foreground colour and the handwriting takes your theme.

A reference renderer

Below is a reader, in the only sense that matters here: it fetches those documents and paints them with its own CSS, using nothing from this site. Change the size and the writing reflows; change the ink and it follows; switch to text and the same document reads as prose — and in either view you can select the words and find them with ⌘F.

Loading…

← Back to the feeds · The format is version 1 and published by scripts/generate-ink-docs.mjs in Robbie Wilcox's Blog’s build.