AXN:024C.ARCHIVAL.🚪🔛🗡️💫⚡🌑
Architectural · Terminal · Navigational · Celestial · Elemental · Celestial
Foundation → Closure → Search → Origin → Force → Origin

Footnote Architecture Read this entire file before modifying any footnote-related code. Every prior fix to footnotes bro

Lee Sharks · 2026-04-28 · Creative work (poetry)
blog →
↓ Download MD
Substrate: Various
License: CC-BY-4.0
SHA-256: 24f45a0a1300847afe560ef7095bf12e95b07ed9dfdbdc80a31e8b013f64c63c
where the components livefootnote architecturecodicological tablefootnote referencesglobal footnote mapthe component modelfootnoterelatedmaintenance log

Description

Read this entire file before modifying any footnote-related code.

Full Text

Footnote Architecture

Read this entire file before modifying any footnote-related code.

Every prior fix to footnotes broke something else because the underlying

model was misunderstood. This document is the source of truth.


The data model

Numbering is GLOBAL, not section-local

Footnotes in The Secret Book of Walt are numbered 1 through 158 across

the entire critical edition. The numbering follows the print Pergamon edition

exactly. Footnote ¹³⁸ is the 138th footnote in the book, not the 1st footnote

in any subsection.

A paragraph in Introduction can reference footnote ¹³⁸, even though

footnote ¹³⁸'s definition lives in Gospel §IX (because §IX of the

gospel is what generated the apparatus entry). Likewise, the Manuscripts

section uses footnotes ¹¹⁹–¹²⁷, which appear only in Manuscripts. There is

no per-section restart, and there must never be one.

The actual distribution in walt_full_data.json:

Section

Declared footnotes

introduction

¹, ², ³, ¹³⁸–¹⁵¹, ¹¹⁰–¹¹⁶

manuscripts

¹¹⁹–¹²⁷

gospel

⁴–¹⁵⁶ (111 footnotes; not contiguous, gaps where notes live elsewhere)

appendix_d

¹¹⁷, ¹¹⁸

appendix_e

¹²⁸–¹³⁶

appendix_h

¹³⁷

appendix_k

¹⁵⁷, ¹⁵⁸

Body-text references to these numbers can appear in any section. The

single source of truth is therefore a global footnote map, built once at

load time by walking every section.

NOT every superscript is a footnote

The text uses Unicode superscripts (¹²³⁴⁵⁶⁷⁸⁹⁰) for two purposes:

-

Footnote references — at the end of a sentence, after a quote, or

adjacent to whitespace.

Examples: …catalogue.³ / …inside it."¹³⁸ / arrived from the future).¹⁴²

-

Identifier suffixes on letters — most importantly, "Golden Ticket"

identifiers in the codicological apparatus.

Examples: G⁴⁶ / G³¹–G⁴⁵ / G¹–G³ | §I.

The disambiguation rule is exact:

**A run of superscripts is a footnote reference if and only if it is NOT

immediately preceded by an alphabetical letter (A-Z / a-z).**

Implementation: negative-lookbehind regex /(?<![A-Za-z])([¹²³⁴⁵⁶⁷⁸⁹⁰]+)/g,

or equivalent character-by-character scan if lookbehind support is in doubt.

This rule is non-negotiable. Breaking it makes ticket references like G⁴⁶

clickable as fake footnotes, which has happened in past iterations.

Paragraph-level footnote definitions

A footnote definition is a paragraph object of the form:

{ "type": "footnote", "text": "¹³⁸ The description \"heavier than gold should be\" has led..." }

The leading superscript is the footnote ID. The remainder is the

footnote body. The system parses both at map-build time.

Some entries also carry an fn_id field (used in versed gospel data); when

present, it must equal the parsed leading superscript. If both are present

and they disagree, the parsed superscript wins (it is what the body text

references).


The component model

useGlobalFnMap(rootData) — single source of truth

A hook (or pure function) that walks the entire data object and produces:

{

'¹': { id: '¹', text: 'Sharks, L. (2015)…', section: 'introduction' },

'²': { id: '²', text: 'The parallel to…', section: 'introduction' },

'³': { id: '³', text: 'The numbering of the archons…', section: 'introduction' },

'⁴': { id: '⁴', text: 'On the appearance of…', section: 'gospel' },

'¹³⁸': { id: '¹³⁸', text: 'The description "heavier than gold…"', section: 'introduction' },

'¹⁵⁸': { id: '¹⁵⁸', text: '…', section: 'appendix_k' }

}

Built once per book, memoized by the data object identity. Built on the

client (no server-side preprocessing required). Fast — Walt has 158 entries.

<FootnotedText text glossaryLink isVeil onFnClick visibleFns /> — universal renderer

Replaces the legacy Leaf component for all body-text rendering in

front matter, gospel, and back matter. Outputs a sequence of:

Wiki Article

"Footnote Architecture Read this entire file before modifying any footnote-related code. Every prior fix to footnotes bro" is a 1,408-word work of poetry by Lee Sharks, dated 2026-04-28. Read this entire file before modifying any footnote-related code. The work is classified under the ARCHIVAL semantic family within the Crimson Hexagonal Archive. It was removed from Zenodo on June 19, 2026 and is preserved through Alexanarch.

Entity Graph

Footnote Architecture Read this entire file beforecreated_byLee Sharks[observed]
Footnote Architecture Read this entire file beforeis_typeCreative work (poetry)[observed]
Footnote Architecture Read this entire file beforebelongs_to_familyARCHIVAL[observed]
Footnote Architecture Read this entire file beforeis_part_ofCrimson Hexagonal Archive[observed]
Footnote Architecture Read this entire file beforereferencesTACHYON[observed]