Squashed port of the v2.4.0..v2.4.6 iteration on hypercypher production. The history-table highlight semantics no longer follow the Cross/Same query match mode — a new ▼ toggle next to the highlight box (styled like the ⚡ auto-match button, dim/lit on/off) controls them independently. Cross/Same checkboxes now affect only the query/modal + export (as the names suggest). optHltSameCipher and autoMatchEnabled both round-trip through localStorage now via calcOptionsArr. Cmd+click on macOS now works as Ctrl+click does on Win/Linux (toggle a history value into the highlight box) — macOS routes Ctrl+click to contextmenu so the existing gesture was unreachable for Mac. Pure client-side; no db change (v2.3 db.json + db_lite.json Release assets still valid). Files: calc/calc.js, calc/highlighter.js, calc/init-variables.js, calc/styles.css, index.html. Cache-bust calc v13 / highlighter v3 / init-variables v7 / styles v9. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6.4 KiB
6.4 KiB
Changelog
v2.4 — Highlight-Mode Decouple Toggle & Settings Persistence
Added
- Highlight-mode toggle (▼) next to the highlight box, styled like the ⚡ auto-match
button (dim/lit on/off). Decouples the history-table highlight semantics from the
Cross/Same query match mode:
- Dim (default) = "any matches" — light every cell whose value you typed (cross-style)
- Lit (toggled) = "same column matches only" — light only values that repeat within a cipher column (same-cipher-pairing)
- The Cross/Same checkboxes in the options panel now affect only the query/modal + export (as the names suggest); the history-table highlight has its own switch.
- Settings persistence for two opt flags that weren't round-tripping through
localStorage:optHltSameCipher(the new toggle) — added tocalcOptionsArrautoMatchEnabled(the ⚡ button state) — was the lone outlier among the opt flags; every other one persisted but this one re-read the device-aware default each page load. Now persists; the device-aware default still applies for first visit per device, then the user's choice sticks.
- Cmd+click on macOS for the "add value to highlight box" power-user gesture. macOS
hard-routes Ctrl+click to a
contextmenuevent (firing the right-click hideValue toggle instead of the Ctrl+click branch), so the existing gesture was unreachable for Mac users. The click handler now acceptse.metaKeyalongsidectrlIsPressed.
Notes
- Plain left-click on a history value still triggers the cross-table blink sweep regardless of the new toggle — that's the quick "where else does this number appear?" gesture and predates the match-mode flags. The new toggle governs persistent highlight semantics (typing into the box, Cmd/Ctrl+click); the ephemeral blink stays mode-free.
- No database changes — the
db.json/db_lite.jsonRelease assets from v2.3 are still valid; v2.4 ships no new assets.
v2.3 — Proper-Case Normalization & +6,421 Common Words
Changed
- Database normalized to Proper Case — every word's first letter capitalized, while preserving acronyms (NASA), Roman numerals (XXXIII), and mixed-case brands (iPhone). ~60% of entries re-cased for consistent skimming. Only the 5 case-sensitive ciphers (Alphanumeric Case Sensitive, Capitals Added/Mixed, Reverse Caps Added/Mixed) change value; every other cipher lowercases input first, so their values are unaffected.
Added
- +6,421 common English words filled in from the original Gematro 20K wordlist (short / no-vowel fragments dropped). 209,667 → 216,088 entries.
Tools
tools/normalize_caps.py— the smart Proper-Case pass: dictionary-aware acronym detection, strict Roman-numeral + mixed-case preservation, digit/[bracket]passthrough. Reusable on any Gematrodb.txt.
v2.2 — Progressive Loading, Curated Default Loadout & 11 New Ciphers
Added
- Progressive database loading: a small
db_lite.json(the default cipher set) loads first for a ~2s first paint with immediate matching, then the fulldb.jsonstreams in and swaps in the background — the full cipher set no longer gates first-paint time. - 11 new ciphers ported from Alektryon's fork (AGPLv3, attributed): the polygonal family (Pentagonal, Hexagonal, Heptagonal, Octagonal, Enneagonal, Decagonal), English Qabalah 31, Mars Kamea Gematria, Angelic Gematria, and Bacon Standard / Bacon R Standard — now 95 ciphers (80 English-applicable).
- Configurable default loadout —
config.jsdefaultEnabledCipherssets which ciphers are on at first load (and on "reset to defaults"); empty/omitted = the classic 4. - Built-in "Alphanumeric" category grouping the alphanumeric family (Alphanumeric Qabbala, Synx, Alphanumeric Case Sensitive, Alphanumeric Primes/Trigonal/Squares/Halves).
- "Base" preset button (the classic 4) in the Cyphers menu.
- Keyboard navigation for the results modal (desktop): ↑/↓ page, ←/→ minimize/restore; typing snaps focus back to the phrase box.
- db cache-busting —
config.jsdatabaseVersionappends?v=Nto the db fetch so an updated database isn't served stale from browser cache.
Changed
- Default match mode is now "Same Cipher Match" (was "Cross Cipher Match") — tighter, more relevant results, especially with a larger default loadout.
- Cipher menu/grid order: the base four lead.
Fixed
- Breakdown viewer defaulted to the stale name "English Ordinal" (renamed in v2.1) and opened on the wrong cipher — now defaults to "Ordinal".
Tools
tools/generate_db_json.pyemitsdb_lite.json(the lite subset) alongsidedb.json.
v2.1 — Database Restoration & Bug Fixes
Added
- Database grown from ~145,800 to 209,667 curated entries:
- Specialty databases: Liber AL verses, Latin words, Roman numerals, spelled-out numbers/digits, and Illuminati/esoteric terms (~34k).
- Restoration of ~20k entries that an earlier over-aggressive cleanup had removed, concentrated in the alphabet "ends" (A, B, C, X, Y, Z) plus O/U/T/I.
- Recovery of ~7.7k Thelemic/Hermetic terms (Liber AL, CCRU/Numogram, Rosicrucian, Crowley mottos).
Fixed
- Case-sensitivity bug (precomputed
db.json): Capitals Added, Capitals Mixed, Reverse Caps Added/Mixed, and Alphanumeric Case Sensitive returned incorrect values for capitalized input. The cipher engine now respects the per-cipher case-sensitive flag. - Bracket-annotation bug: entries with
[N]display annotations (Roman numerals, number words) over-counted the bracketed digits in digit-aware ciphers (Alphanumeric Qabbala, Synx, Alphanumeric Primes, etc.). Annotations are now stripped before scoring, matching the live engine. - Match ordering: the database is now alphabetically sorted, so newly added entries surface correctly in same-value match lists (previously appended entries were buried).
Changed
- Cipher names (display only — values unchanged):
Latin→Latin (Jewish),Latin Ordinal→Latin Ordinal (Jewish Ord.),Latin Reduction→Latin Reduction (Jewish Red.)Alphanumeric Satanic→Alphanumeric Case Sensitive
- UI: selecting/copying text from a result cell no longer minimizes the modal.
Tools
- Added
tools/generate_db_json.py(+tools/all_ciphers.py) to rebuild the precomputeddb.jsonfromdb.txt. See README.