Skip to content

Grid script: explainer, online dictionary and converter - #10

Merged
emptymalei merged 3 commits into
mainfrom
claude/grid-script-dictionary-kbcwfx
Oct 8, 2026
Merged

emptymalei merged 3 commits into
mainfrom
claude/grid-script-dictionary-kbcwfx

Conversation

@emptymalei

Copy link
Copy Markdown
Member

Requested by L · project thread

Before: the grid script lived only in the story notes and the glyph command line.

After: the site has a new section, 网格文字 · Grid script, in Chinese (/script/) and English (/script/en/), with three pages:

  • The idea (/script/): the grid and the two voices, the sixteen parts, two-part words, every line as a graph edge (with the tense table), numbers as nine bits (with a slider), stacking as another voice (rule 5), and how the machine reads a page. Every drawing and graph reading is generated live, and each example opens in the converter. It links to /signals/#theory for the resonance theory rather than repeating it.
  • Dictionary (/script/dictionary/): all 55 words drawn, searchable in Chinese and English, filtered by domain. Writing out a word that isn't listed (BODY.STAR, COUNT.42) shows how it draws and reads from its parts.
  • Converter (/script/convert/): page source to drawing (SVG download, text copy, shareable link) and back. Drawing to source comes with a grid editor where you stamp parts or draw single cells as +, × or another symbol, and the result is read as a knowledge graph. Errors (unknown part, a mark off the lattice, mixed symbols…) are shown in the page's language.

How: lib/glyph.js is a JavaScript port of glyph-cli 0.2.0 (numbers as COUNT.n), and lib/glyph-vocab.json is its bundled vocabulary unchanged, so the site and the CLI agree. lib/glyph-zh.json adds the Chinese glosses. npm test (new GitHub Actions workflow) checks the port against fixtures written by glyph-cli itself (scripts/glyph_fixtures.py): rendering, SVG, graph text and decoding for all eight CLI examples, every word, word parsing and all 512 numbers, plus the CLI's own test cases. New menu and footer entries in kit/nav.*.json. Static, no build step, zero running cost.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RH7A8tqLXxxGiks9mUWtyE


Generated by Claude Code

New section /script/ (CN) and /script/en/ (EN):
- the idea: parts, words, lines as graph edges, numbers, voices, with live drawings
- dictionary: searchable in both languages, write any word to see how it draws and reads
- converter: page source to drawing (SVG, text, link) and drawing back to source, with a grid editor

lib/glyph.js ports glyph-cli 0.2.0 to JavaScript and uses its bundled vocabulary;
npm test checks it against fixtures generated by the CLI itself.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RH7A8tqLXxxGiks9mUWtyE
@netlify

netlify Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for interimm-interstellar failed.

Name Link
🔨 Latest commit e4de93d
🔍 Latest deploy log https://app.netlify.com/projects/interimm-interstellar/deploys/6ac6bb22bcc1130008d85d03

@emptymalei emptymalei self-assigned this Oct 7, 2026
Deploy previews still use the old Hugo build settings and fail on plain static files.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RH7A8tqLXxxGiks9mUWtyE

emptymalei commented Oct 7, 2026 •

Copy link
Copy Markdown
Member Author

The Netlify checks (deploy/netlify, Pages changed, Header rules, Redirect rules) are failing, but not because of this PR. They come from the old Netlify site, which still builds deploy previews of this repo, and they're red on #9 and earlier PRs too. I tried porting #9's netlify.toml (b790645), but the previews still failed with it, so I took it back out (e4de93d) and the PR keeps to its own changes. The deploy logs need a Netlify login, so I can't read them from here. The fix is to delete or unlink the old Netlify site, and only the owner can do that. The test check, which runs this PR's own tests, is green. The real site is served by GitHub Pages and isn't affected.


Generated by Claude Code

… not the fix

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RH7A8tqLXxxGiks9mUWtyE
@emptymalei
emptymalei merged commit de0d743 into main Oct 8, 2026
1 of 5 checks passed
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.

2 participants