Compare commits
13
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01aee23ddc | ||
|
|
c1e6a980e0 | ||
|
|
bae8a992dc | ||
|
|
8c35752d9d | ||
|
|
d025c7e810 | ||
|
|
7d76b1f550 | ||
|
|
f5defa151f | ||
|
|
0396c39b77 | ||
|
|
b478d1122c | ||
|
|
a83370900a | ||
|
|
8562ab8edd | ||
|
|
6848cff627 | ||
|
|
777089b91d |
No files matched your search
@@ -2,3 +2,4 @@ config.js
|
|||||||
db.json
|
db.json
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
db_lite.json
|
||||||
@@ -1,5 +1,41 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v2.6.1
|
||||||
|
|
||||||
|
### Security
|
||||||
|
- **Date Calculator labels are escaped (`escHtml`).** The From/to description fields were written
|
||||||
|
into the page as HTML when the date menu redrew and around *Print Date Durations*; they now render
|
||||||
|
as literal text, completing the v2.6.0 escaping pass. No database or settings changes.
|
||||||
|
|
||||||
|
## v2.6.0
|
||||||
|
|
||||||
|
### Security
|
||||||
|
- **Import no longer uses `eval()`.** Imported cipher files and the localStorage settings copy are
|
||||||
|
parsed and shape-checked (`parseCipherArgs` / `cipherFromExport`); option names are whitelisted and
|
||||||
|
values must be JSON scalars. Previously a crafted cipher/settings file could execute arbitrary code
|
||||||
|
on import. Export format is unchanged for booleans/numbers.
|
||||||
|
- **All user-supplied text is escaped at render (`escHtml`).** Typed phrases, `[...]` comments,
|
||||||
|
imported history/matches/date file content, and cipher names now render as literal text instead of
|
||||||
|
HTML, across the history and matches tables, the character breakdown and chart, the cipher menu and
|
||||||
|
value tables, and the encoding menu. Prevents cross-site scripting from a crafted phrase, a shared
|
||||||
|
import file, or a cipher named with markup. (The cipher-*file* export keeps the raw name so the
|
||||||
|
export/import round-trip is unaffected.)
|
||||||
|
- Added `SECURITY.md` (how to report issues privately).
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- **Based Atlanteanism** and **Based Atlanteanism Denovated** (Alphanumeric category), from NetVoid's
|
||||||
|
cyphers.news: Standard − Alphanumeric Qabbala with digits counting 0, and the same divided by 9.
|
||||||
|
Values verified against the derivation. Disabled by default; db.json gains two columns.
|
||||||
|
- **Refresh matches on cipher toggle** — enabling/disabling a cipher while the matches box is open
|
||||||
|
updates it in place, no re-submit.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- `manifest.json` icons pointed at a non-existent `calc-logo-36.png`; now 32/48.
|
||||||
|
- Query button centering.
|
||||||
|
|
||||||
|
> Upgrading: `databaseVersion` is bumped so browsers refetch the wider `db.json`. The trim-Phase-A
|
||||||
|
> database (234,751 entries) is a separate future release; this one keeps the v2.5 database content.
|
||||||
|
|
||||||
## v2.5 — NetVoid 2026 Manual Review Merge & Calibrated Junk Filter
|
## v2.5 — NetVoid 2026 Manual Review Merge & Calibrated Junk Filter
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Reporting a vulnerability
|
||||||
|
|
||||||
|
Please report security issues **privately**, not as a public issue or pull request.
|
||||||
|
|
||||||
|
- Preferred: open a private [GitHub Security Advisory](../../security/advisories/new) on this repo.
|
||||||
|
- Or email **hyperdopeofficial@protonmail.com** with the details and, if possible, a minimal
|
||||||
|
reproduction.
|
||||||
|
|
||||||
|
We aim to acknowledge reports within a few days. This is a small, volunteer-maintained project, so
|
||||||
|
please allow reasonable time for a fix before any public disclosure. Fixes ship in the next release;
|
||||||
|
we'll credit reporters who want it.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This is a **client-side** calculator: static HTML, CSS, and JavaScript with no backend and no
|
||||||
|
accounts. It runs entirely in the visitor's browser. The most relevant issue class is therefore
|
||||||
|
**cross-site scripting (XSS)** — untrusted text (a typed phrase, an imported cipher/settings/history
|
||||||
|
file, or a custom cipher name) reaching the DOM as markup. All user-supplied text is escaped at
|
||||||
|
render (`escHtml`) and cipher/settings imports are parsed as data, never `eval`'d.
|
||||||
|
|
||||||
|
In scope: XSS and injection in the calculator code; unsafe handling of imported files; anything that
|
||||||
|
lets one file or link run code in a user's browser at this origin.
|
||||||
|
|
||||||
|
Out of scope: how a given operator deploys or hosts a copy (serve only the built page, not the repo
|
||||||
|
`.git`/tooling); third-party CDNs; issues requiring a already-compromised browser or machine.
|
||||||
|
|
||||||
|
## Deploying safely
|
||||||
|
|
||||||
|
If you self-host, serve the **page files only** behind a static web server, ideally with a
|
||||||
|
Content-Security-Policy. Do not expose the repository's `.git` directory or tooling from your web
|
||||||
|
root.
|
||||||
|
|
||||||
|
## Supported versions
|
||||||
|
|
||||||
|
Security fixes are made against the latest release on `master`.
|
||||||
+8
-8
@@ -81,8 +81,8 @@ function updateWordBreakdown(impName = breakCipher, impBool = false, chartUpd =
|
|||||||
simplePhr = sVal() // display full phrase
|
simplePhr = sVal() // display full phrase
|
||||||
}
|
}
|
||||||
oStart += '<div id="SimpleBreak">'
|
oStart += '<div id="SimpleBreak">'
|
||||||
oStart += '<span class="breakPhrase">' + simplePhr + '</span><span class="breakPhrase"> = </span><span class="breakSum">' + curCipher.sumArr.reduce(getSum) + ' </span>' // add all values in array
|
oStart += '<span class="breakPhrase">' + escHtml(simplePhr) + '</span><span class="breakPhrase"> = </span><span class="breakSum">' + curCipher.sumArr.reduce(getSum) + ' </span>' // add all values in array
|
||||||
oStart += '<span class="breakCipher"><font style="'+curCiphCol+'"> (' + curCipher.cipherName + gemCalcModeLabel(curCipher) + ')</font></span>'
|
oStart += '<span class="breakCipher"><font style="'+curCiphCol+'"> (' + escHtml(curCipher.cipherName) + gemCalcModeLabel(curCipher) + ')</font></span>'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (optWordBreakdown == true && curCipher.cp.length <= chLimit ) { // character limit, calculated even if out of screen bounds
|
if (optWordBreakdown == true && curCipher.cp.length <= chLimit ) { // character limit, calculated even if out of screen bounds
|
||||||
@@ -141,7 +141,7 @@ function updateWordBreakdown(impName = breakCipher, impBool = false, chartUpd =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ciphEndClass = (leftToRightBreak) ? "CipherEnd" : "CipherEndRTL"
|
ciphEndClass = (leftToRightBreak) ? "CipherEnd" : "CipherEndRTL"
|
||||||
if (optCompactBreakdown == true) o += '</tr><tr><td colspan=' + tdCount + ' class="'+ciphEndClass+'"><font style="'+curCiphCol+'">' + curCipher.cipherName + gemCalcModeLabel(curCipher) + '</font></td></tr></table></div>'
|
if (optCompactBreakdown == true) o += '</tr><tr><td colspan=' + tdCount + ' class="'+ciphEndClass+'"><font style="'+curCiphCol+'">' + escHtml(curCipher.cipherName) + gemCalcModeLabel(curCipher) + '</font></td></tr></table></div>'
|
||||||
else o += '</tr></tbody></table></div>'
|
else o += '</tr></tbody></table></div>'
|
||||||
|
|
||||||
o = oStart + o // prepend phrase, word/letter count
|
o = oStart + o // prepend phrase, word/letter count
|
||||||
@@ -227,7 +227,7 @@ function updateWordBreakdown(impName = breakCipher, impBool = false, chartUpd =
|
|||||||
o = oStart + o // prepend phrase, word/letter count
|
o = oStart + o // prepend phrase, word/letter count
|
||||||
if (optCompactBreakdown == true) {
|
if (optCompactBreakdown == true) {
|
||||||
o += '<div id="BreakSumLong"><span class="breakSumDark">' + curCipher.sumArr.reduce(getSum) + ' </span>'
|
o += '<div id="BreakSumLong"><span class="breakSumDark">' + curCipher.sumArr.reduce(getSum) + ' </span>'
|
||||||
o += '<span class="breakCipher" style="'+curCiphCol+'">' + curCipher.cipherName + gemCalcModeLabel(curCipher) + '</span></div></div>'
|
o += '<span class="breakCipher" style="'+curCiphCol+'">' + escHtml(curCipher.cipherName) + gemCalcModeLabel(curCipher) + '</span></div></div>'
|
||||||
} else {
|
} else {
|
||||||
o += '<div style="padding: 0.5em"></div>'
|
o += '<div style="padding: 0.5em"></div>'
|
||||||
}
|
}
|
||||||
@@ -248,8 +248,8 @@ function updateWordBreakdown(impName = breakCipher, impBool = false, chartUpd =
|
|||||||
var chartClass = 'SimpleBreakChart'
|
var chartClass = 'SimpleBreakChart'
|
||||||
if (curCipher.cp.length > chLimit) chartClass = 'SimpleBreakChartLong'
|
if (curCipher.cp.length > chLimit) chartClass = 'SimpleBreakChartLong'
|
||||||
o = '<tr><td colspan=' + tdCount + '>'
|
o = '<tr><td colspan=' + tdCount + '>'
|
||||||
o += '<div class="'+chartClass+'"><span class="breakPhraseChart">' + simplePhr + ' = ' + curCipher.sumArr.reduce(getSum) + ' </span>' // add all values in array
|
o += '<div class="'+chartClass+'"><span class="breakPhraseChart">' + escHtml(simplePhr) + ' = ' + curCipher.sumArr.reduce(getSum) + ' </span>' // add all values in array
|
||||||
o += '<span class="breakPhraseChartCiphName" style="'+curCiphCol+'">(' + curCipher.cipherName + gemCalcModeLabel(curCipher) + ')</span></div></td></tr>'
|
o += '<span class="breakPhraseChartCiphName" style="'+curCiphCol+'">(' + escHtml(curCipher.cipherName) + gemCalcModeLabel(curCipher) + ')</span></div></td></tr>'
|
||||||
$('#BreakTableContainer').prepend(o) // insert in the beginning of the table
|
$('#BreakTableContainer').prepend(o) // insert in the beginning of the table
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -322,7 +322,7 @@ function updateCipherChart(curCipher) {
|
|||||||
o += '<tr>'
|
o += '<tr>'
|
||||||
o += '<td id="spaceChartBtn" style="font-size: 150%; font-weight: 500; '+curCiphFaintCol+'">-</td>' // Space
|
o += '<td id="spaceChartBtn" style="font-size: 150%; font-weight: 500; '+curCiphFaintCol+'">-</td>' // Space
|
||||||
o += '<td id="capsNameChartBtn" colspan="' + (Math.ceil(curCipher.cArr.length / 2) - 2) + '">'
|
o += '<td id="capsNameChartBtn" colspan="' + (Math.ceil(curCipher.cArr.length / 2) - 2) + '">'
|
||||||
o += '<font style="font-size: 150%; font-weight: 500; '+curCiphCol+'">' + curCipher.cipherName + '</font>'
|
o += '<font style="font-size: 150%; font-weight: 500; '+curCiphCol+'">' + escHtml(curCipher.cipherName) + '</font>'
|
||||||
o += '</td>'
|
o += '</td>'
|
||||||
o += '<td id="backspaceChartBtn" style="font-size: 150%; font-weight: 500; '+curCiphFaintCol+'">←</td>' // Backspace
|
o += '<td id="backspaceChartBtn" style="font-size: 150%; font-weight: 500; '+curCiphFaintCol+'">←</td>' // Backspace
|
||||||
o += '</tr><tr>'
|
o += '</tr><tr>'
|
||||||
@@ -376,7 +376,7 @@ function updateCipherChartGemCard(impName = breakCipher) {
|
|||||||
o += '<tbody><tr>'
|
o += '<tbody><tr>'
|
||||||
|
|
||||||
o += '<td colspan="' + curCipher.cArr.length + '">'
|
o += '<td colspan="' + curCipher.cArr.length + '">'
|
||||||
o += '<font style="font-size: 150%; font-weight: 500; '+curCiphCol+'">' + curCipher.cipherName + '</font>'
|
o += '<font style="font-size: 150%; font-weight: 500; '+curCiphCol+'">' + escHtml(curCipher.cipherName) + '</font>'
|
||||||
o += '</td></tr><tr>'
|
o += '</td></tr><tr>'
|
||||||
|
|
||||||
var halfL = curCipher.cArr.length / 2
|
var halfL = curCipher.cArr.length / 2
|
||||||
|
|||||||
+78
-45
@@ -60,6 +60,7 @@ var optHltSameCipher = false;
|
|||||||
var alphaHlt = 0.15; // opacity for values that do not match - change value here and in conf_SOM()
|
var alphaHlt = 0.15; // opacity for values that do not match - change value here and in conf_SOM()
|
||||||
|
|
||||||
var optAllowPhraseComments = true; // allow phrase comments, text inside [...] is not evaluated
|
var optAllowPhraseComments = true; // allow phrase comments, text inside [...] is not evaluated
|
||||||
|
var optPrioritizeIngglish = (typeof CALC_CONFIG !== 'undefined' && CALC_CONFIG.prioritizeIngglishMatches) ? true : false; // sort [Ingglish: ...] matches to top of query results
|
||||||
var liveDatabaseMode = true; // live database mode
|
var liveDatabaseMode = true; // live database mode
|
||||||
|
|
||||||
var dbPageItems = (typeof CALC_CONFIG !== 'undefined' && CALC_CONFIG.resultsPerPage) ? CALC_CONFIG.resultsPerPage : 12;
|
var dbPageItems = (typeof CALC_CONFIG !== 'undefined' && CALC_CONFIG.resultsPerPage) ? CALC_CONFIG.resultsPerPage : 12;
|
||||||
@@ -92,45 +93,47 @@ var coderainLitDefault = 0.19;
|
|||||||
var optImageScale = 1.0; // image scaling factor for screenshots
|
var optImageScale = 1.0; // image scaling factor for screenshots
|
||||||
|
|
||||||
var calcOptionsArr = [
|
var calcOptionsArr = [
|
||||||
// used to export/import settings
|
// used to export/import settings — the NAMES of the option globals; exportCalcOptions() reads
|
||||||
"'optNumCalcMethod'+' = '+optNumCalcMethod",
|
// window[name], importCalcOptions() accepts only these names (no eval on either side)
|
||||||
"'optFiltCrossCipherMatch'+' = '+optFiltCrossCipherMatch",
|
"optNumCalcMethod",
|
||||||
"'optFiltSameCipherMatch'+' = '+optFiltSameCipherMatch",
|
"optFiltCrossCipherMatch",
|
||||||
"'optHltSameCipher'+' = '+optHltSameCipher",
|
"optFiltSameCipherMatch",
|
||||||
"'optShowOnlyMatching'+' = '+optShowOnlyMatching",
|
"optHltSameCipher",
|
||||||
"'autoMatchEnabled'+' = '+autoMatchEnabled",
|
"optShowOnlyMatching",
|
||||||
"'optNewPhrasesGoFirst'+' = '+optNewPhrasesGoFirst",
|
"autoMatchEnabled",
|
||||||
"'optShowExtraCiphers'+' = '+optShowExtraCiphers",
|
"optNewPhrasesGoFirst",
|
||||||
"'optAllowPhraseComments'+' = '+optAllowPhraseComments",
|
"optShowExtraCiphers",
|
||||||
"'liveDatabaseMode'+' = '+liveDatabaseMode",
|
"optAllowPhraseComments",
|
||||||
"'optLetterWordCount'+' = '+optLetterWordCount",
|
"optPrioritizeIngglish",
|
||||||
"'optWordBreakdown'+' = '+optWordBreakdown",
|
"liveDatabaseMode",
|
||||||
"'optCompactBreakdown'+' = '+optCompactBreakdown",
|
"optLetterWordCount",
|
||||||
"'optShowCipherChart'+' = '+optShowCipherChart",
|
"optWordBreakdown",
|
||||||
"'optGradientCharts'+' = '+optGradientCharts",
|
"optCompactBreakdown",
|
||||||
"'optLoadUserHistCiphers'+' = '+optLoadUserHistCiphers",
|
"optShowCipherChart",
|
||||||
"'optMatrixCodeRain'+' = '+optMatrixCodeRain",
|
"optGradientCharts",
|
||||||
"'interfaceHue'+' = '+interfaceHue",
|
"optLoadUserHistCiphers",
|
||||||
"'interfaceSat'+' = '+interfaceSat",
|
"optMatrixCodeRain",
|
||||||
"'interfaceLit'+' = '+interfaceLit",
|
"interfaceHue",
|
||||||
"'fontHue'+' = '+fontHue",
|
"interfaceSat",
|
||||||
"'fontSat'+' = '+fontSat",
|
"interfaceLit",
|
||||||
"'fontLit'+' = '+fontLit",
|
"fontHue",
|
||||||
"'coderainHue'+' = '+coderainHue",
|
"fontSat",
|
||||||
"'coderainSat'+' = '+coderainSat",
|
"fontLit",
|
||||||
"'coderainLit'+' = '+coderainLit",
|
"coderainHue",
|
||||||
"'optPhraseLimit'+' = '+optPhraseLimit",
|
"coderainSat",
|
||||||
"'dbPageItems'+' = '+dbPageItems",
|
"coderainLit",
|
||||||
"'dbScrollItems'+' = '+dbScrollItems",
|
"optPhraseLimit",
|
||||||
"'optForceTwoColumnLayout'+' = '+optForceTwoColumnLayout",
|
"dbPageItems",
|
||||||
"'optColoredCiphers'+' = '+optColoredCiphers",
|
"dbScrollItems",
|
||||||
"'optGemSubstitutionMode'+' = '+optGemSubstitutionMode",
|
"optForceTwoColumnLayout",
|
||||||
"'optGemMultCharPos'+' = '+optGemMultCharPos",
|
"optColoredCiphers",
|
||||||
"'optGemMultCharPosReverse'+' = '+optGemMultCharPosReverse",
|
"optGemSubstitutionMode",
|
||||||
|
"optGemMultCharPos",
|
||||||
|
"optGemMultCharPosReverse",
|
||||||
'"encDefAlphArr"+" = \x27"+String(encPrevAlphStr).replace(/,/g,"")+"\x27"',
|
'"encDefAlphArr"+" = \x27"+String(encPrevAlphStr).replace(/,/g,"")+"\x27"',
|
||||||
'"encDefVowArr"+" = \x27"+String(encPrevVowStr).replace(/,/g,"")+"\x27"',
|
'"encDefVowArr"+" = \x27"+String(encPrevVowStr).replace(/,/g,"")+"\x27"',
|
||||||
'"encDefExcLetArr"+" = \x27"+String(encPrevExcLetStr).replace(/,/g,"")+"\x27"',
|
'"encDefExcLetArr"+" = \x27"+String(encPrevExcLetStr).replace(/,/g,"")+"\x27"',
|
||||||
"'optImageScale'+' = '+optImageScale",
|
"optImageScale",
|
||||||
];
|
];
|
||||||
|
|
||||||
var runOnceRestoreCalcSet = true;
|
var runOnceRestoreCalcSet = true;
|
||||||
@@ -442,7 +445,7 @@ function displayCipherCatDetailed(curCat) {
|
|||||||
} // checkbox state
|
} // checkbox state
|
||||||
o +=
|
o +=
|
||||||
'<tr><td><label class="chkLabel ciphCheckboxLabel2">' +
|
'<tr><td><label class="chkLabel ciphCheckboxLabel2">' +
|
||||||
cipherList[i].cipherName +
|
escHtml(cipherList[i].cipherName) +
|
||||||
'<input type="checkbox" id="cipher_chkbox' +
|
'<input type="checkbox" id="cipher_chkbox' +
|
||||||
i +
|
i +
|
||||||
'" onclick="toggleCipher(' +
|
'" onclick="toggleCipher(' +
|
||||||
@@ -545,6 +548,8 @@ function createOptionsMenu() {
|
|||||||
|
|
||||||
if (optShowExtraCiphers) SECstate = "checked"; // Show Extra Ciphers
|
if (optShowExtraCiphers) SECstate = "checked"; // Show Extra Ciphers
|
||||||
if (optAllowPhraseComments) APCstate = "checked"; // Allow Phrase Comments
|
if (optAllowPhraseComments) APCstate = "checked"; // Allow Phrase Comments
|
||||||
|
var PIMstate = "";
|
||||||
|
if (optPrioritizeIngglish) PIMstate = "checked"; // Prioritize Ingglish [...]
|
||||||
if (liveDatabaseMode) LDMstate = "checked"; // Live Database Mode
|
if (liveDatabaseMode) LDMstate = "checked"; // Live Database Mode
|
||||||
|
|
||||||
if (optNewPhrasesGoFirst) NPGFstate = "checked"; // New Phrases Go First
|
if (optNewPhrasesGoFirst) NPGFstate = "checked"; // New Phrases Go First
|
||||||
@@ -585,6 +590,10 @@ function createOptionsMenu() {
|
|||||||
'<div class="optionElement"><label class="chkLabel ciphCheckboxLabel2">Ignore Comments [...]<input type="checkbox" id="chkbox_APC" onclick="conf_APC()" ' +
|
'<div class="optionElement"><label class="chkLabel ciphCheckboxLabel2">Ignore Comments [...]<input type="checkbox" id="chkbox_APC" onclick="conf_APC()" ' +
|
||||||
APCstate +
|
APCstate +
|
||||||
'><span class="custChkBox"></span></label></div>';
|
'><span class="custChkBox"></span></label></div>';
|
||||||
|
o +=
|
||||||
|
'<div class="optionElement"><label class="chkLabel ciphCheckboxLabel2">Prioritize Ingglish [...]<input type="checkbox" id="chkbox_PIM" onclick="conf_PIM()" ' +
|
||||||
|
PIMstate +
|
||||||
|
'><span class="custChkBox"></span></label></div>';
|
||||||
o +=
|
o +=
|
||||||
'<div class="optionElement"><label class="chkLabel ciphCheckboxLabel2">Live Database Mode<input type="checkbox" id="chkbox_LDM" onclick="conf_LDM()" ' +
|
'<div class="optionElement"><label class="chkLabel ciphCheckboxLabel2">Live Database Mode<input type="checkbox" id="chkbox_LDM" onclick="conf_LDM()" ' +
|
||||||
LDMstate +
|
LDMstate +
|
||||||
@@ -708,6 +717,16 @@ function conf_APC() {
|
|||||||
updateTables();
|
updateTables();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function conf_PIM() {
|
||||||
|
// Prioritize Ingglish [...] Matches
|
||||||
|
optPrioritizeIngglish = !optPrioritizeIngglish;
|
||||||
|
var chk = document.getElementById("chkbox_PIM");
|
||||||
|
if (chk !== null) chk.checked = optPrioritizeIngglish;
|
||||||
|
var btn = document.getElementById("queryIngPriorityBtn");
|
||||||
|
if (btn !== null) btn.classList.toggle("ingPriorityOn", optPrioritizeIngglish);
|
||||||
|
refreshOpenQuery();
|
||||||
|
}
|
||||||
|
|
||||||
function conf_LWC() {
|
function conf_LWC() {
|
||||||
// Letter/Word Count
|
// Letter/Word Count
|
||||||
optLetterWordCount = !optLetterWordCount;
|
optLetterWordCount = !optLetterWordCount;
|
||||||
@@ -1076,7 +1095,7 @@ function toggleColorControlsMenu(redraw = false) {
|
|||||||
if (cipherList[i].enabled) {
|
if (cipherList[i].enabled) {
|
||||||
o +=
|
o +=
|
||||||
'<td><span class="ciphCheckboxLabel">' +
|
'<td><span class="ciphCheckboxLabel">' +
|
||||||
cipherList[i].cipherName +
|
escHtml(cipherList[i].cipherName) +
|
||||||
"</span></td>";
|
"</span></td>";
|
||||||
o +=
|
o +=
|
||||||
'<td><input type="number" step="2" min="-360" max="360" value="' +
|
'<td><input type="number" step="2" min="-360" max="360" value="' +
|
||||||
@@ -1742,6 +1761,7 @@ function updateTables(updColorLayout = true) {
|
|||||||
autoHistoryTableLayout(); // use Compact History if necessary
|
autoHistoryTableLayout(); // use Compact History if necessary
|
||||||
updateHistoryTable(); // update history table
|
updateHistoryTable(); // update history table
|
||||||
updateWordBreakdown(breakCipher, true); // update word breakdown and choose first enabled cipher
|
updateWordBreakdown(breakCipher, true); // update word breakdown and choose first enabled cipher
|
||||||
|
if (typeof refreshOpenQuery === "function") refreshOpenQuery(); // refresh an open matches box in place after a cipher-set change
|
||||||
}
|
}
|
||||||
|
|
||||||
function autoHistoryTableLayout() {
|
function autoHistoryTableLayout() {
|
||||||
@@ -1761,6 +1781,19 @@ function updateEnabledCipherCount() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Entity-escape user-supplied text before it enters an innerHTML string — for the HTML body AND
|
||||||
|
// for values inside double-quoted attributes (escapes & < > " '). Store phrases RAW; escape only
|
||||||
|
// here at render. Added 2026-09-13 (the calc had no escaping; phrases reached the DOM raw). Keep
|
||||||
|
// every user-text sink routed through this.
|
||||||
|
function escHtml(s) {
|
||||||
|
return String(s)
|
||||||
|
.replace(/&/g, "&")
|
||||||
|
.replace(/</g, "<")
|
||||||
|
.replace(/>/g, ">")
|
||||||
|
.replace(/"/g, """)
|
||||||
|
.replace(/'/g, "'");
|
||||||
|
}
|
||||||
|
|
||||||
function sVal() {
|
function sVal() {
|
||||||
return document.getElementById("phraseBox").value.trim(); // get value, remove spaces from both sides
|
return document.getElementById("phraseBox").value.trim(); // get value, remove spaces from both sides
|
||||||
}
|
}
|
||||||
@@ -1950,7 +1983,7 @@ function updateEnabledCipherTable() {
|
|||||||
'<td class="phraseGemCiphName" style="' +
|
'<td class="phraseGemCiphName" style="' +
|
||||||
cur_col +
|
cur_col +
|
||||||
'">' +
|
'">' +
|
||||||
cipherList[i].cipherName +
|
escHtml(cipherList[i].cipherName) +
|
||||||
"</td>";
|
"</td>";
|
||||||
// o += '<td class="phraseGemValueOdd" style="'+cur_col+'">'+cipherList[i].calcGematria(phr)+'</td>'
|
// o += '<td class="phraseGemValueOdd" style="'+cur_col+'">'+cipherList[i].calcGematria(phr)+'</td>'
|
||||||
o +=
|
o +=
|
||||||
@@ -1975,7 +2008,7 @@ function updateEnabledCipherTable() {
|
|||||||
'<td class="phraseGemCiphName" style="' +
|
'<td class="phraseGemCiphName" style="' +
|
||||||
cur_col +
|
cur_col +
|
||||||
'">' +
|
'">' +
|
||||||
cipherList[i].cipherName +
|
escHtml(cipherList[i].cipherName) +
|
||||||
"</td>";
|
"</td>";
|
||||||
ciph_in_row++;
|
ciph_in_row++;
|
||||||
odd_col = true;
|
odd_col = true;
|
||||||
@@ -2216,7 +2249,7 @@ function updateHistoryTable(hltBoolArr) {
|
|||||||
'px;"><span class="hCV2" style="' +
|
'px;"><span class="hCV2" style="' +
|
||||||
curCiphCol +
|
curCiphCol +
|
||||||
'">' +
|
'">' +
|
||||||
cipherList[z].cipherName +
|
escHtml(cipherList[z].cipherName) +
|
||||||
"</span></td>"; // color of cipher displayed in the table
|
"</span></td>"; // color of cipher displayed in the table
|
||||||
} else {
|
} else {
|
||||||
ms +=
|
ms +=
|
||||||
@@ -2227,7 +2260,7 @@ function updateHistoryTable(hltBoolArr) {
|
|||||||
"px; min-width: " +
|
"px; min-width: " +
|
||||||
calcCipherNameWidthPx(cipherList[z].cipherName) +
|
calcCipherNameWidthPx(cipherList[z].cipherName) +
|
||||||
'px;">' +
|
'px;">' +
|
||||||
cipherList[z].cipherName +
|
escHtml(cipherList[z].cipherName) +
|
||||||
"</td>"; // color of cipher displayed in the table
|
"</td>"; // color of cipher displayed in the table
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2246,11 +2279,11 @@ function updateHistoryTable(hltBoolArr) {
|
|||||||
// comment first, phrase without comment and leading/trailing spaces
|
// comment first, phrase without comment and leading/trailing spaces
|
||||||
dispPhrase =
|
dispPhrase =
|
||||||
'<span class="pCHT">' +
|
'<span class="pCHT">' +
|
||||||
tmpComment +
|
escHtml(tmpComment) +
|
||||||
"</span>" +
|
"</span>" +
|
||||||
sHistory[x].replace(/\[.+\]/g, "").trim();
|
escHtml(sHistory[x].replace(/\[.+\]/g, "").trim());
|
||||||
} else {
|
} else {
|
||||||
dispPhrase = sHistory[x];
|
dispPhrase = escHtml(sHistory[x]);
|
||||||
}
|
}
|
||||||
ms += '<tr><td class="hP" data-ind="' + x + '">' + dispPhrase + "</td>"; // hP - history phrase, add data index
|
ms += '<tr><td class="hP" data-ind="' + x + '">' + dispPhrase + "</td>"; // hP - history phrase, add data index
|
||||||
var col = ""; // value color
|
var col = ""; // value color
|
||||||
|
|||||||
@@ -1490,6 +1490,26 @@ cipherList = [
|
|||||||
false,
|
false,
|
||||||
false
|
false
|
||||||
),
|
),
|
||||||
|
// --- from NetVoid (cyphers.news, 2026-09) — her "CCRU" group = our Alphanumeric family ------------
|
||||||
|
// Based Atlanteanism = Standard − Alphanumeric Qabbala, digits count 0 (her derivation descriptor
|
||||||
|
// {from:"Standard", minus:"Alphanumeric Qabbala"}); values as published, verified against the identity.
|
||||||
|
new cipher(
|
||||||
|
"Based Atlanteanism",
|
||||||
|
"Alphanumeric",
|
||||||
|
156, 80, 62,
|
||||||
|
[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],
|
||||||
|
[0,0,0,0,0,0,0,0,0,0,-9,-9,-9,-9,-9,-9,-9,-9,-9,-9,0,9,18,27,36,45,54,63,72,171,270,369,468,567,666,765],
|
||||||
|
true, false, false
|
||||||
|
),
|
||||||
|
// Based Atlanteanism Denovated = (Standard − Alphanumeric Qabbala) / 9 (her {…, over: 9}).
|
||||||
|
new cipher(
|
||||||
|
"Based Atlanteanism Denovated",
|
||||||
|
"Alphanumeric",
|
||||||
|
172, 100, 62,
|
||||||
|
[48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122],
|
||||||
|
[0,0,0,0,0,0,0,0,0,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,19,30,41,52,63,74,85],
|
||||||
|
true, false, false
|
||||||
|
),
|
||||||
new cipher(
|
new cipher(
|
||||||
"Kabbalistic (Sepharial)",
|
"Kabbalistic (Sepharial)",
|
||||||
"Extra",
|
"Extra",
|
||||||
|
|||||||
+63
-19
@@ -3,6 +3,7 @@
|
|||||||
function queryDatabase() {
|
function queryDatabase() {
|
||||||
var cVal
|
var cVal
|
||||||
if(sVal() == "") return // empty input
|
if(sVal() == "") return // empty input
|
||||||
|
lastQueryPhrase = sVal() // remember what this box is showing, so a later cipher toggle can refresh it
|
||||||
|
|
||||||
if (liveDatabaseMode == true) calcLiveDatabase(userDBlive) // calculate gematria for live database for enabled ciphers
|
if (liveDatabaseMode == true) calcLiveDatabase(userDBlive) // calculate gematria for live database for enabled ciphers
|
||||||
|
|
||||||
@@ -77,6 +78,29 @@ function queryDatabase() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var _refreshingQuery = false // reentrancy guard: updateTables -> refreshOpenQuery -> queryDatabase must not recurse
|
||||||
|
function refreshOpenQuery() {
|
||||||
|
// Called after any cipher-set change (updateTables). If a matches box is open and maximized,
|
||||||
|
// re-run the SAME query so a newly enabled cipher adds its column (and re-ranks) with no
|
||||||
|
// resubmit — and a newly disabled cipher drops its column. No-op when no box is open.
|
||||||
|
if (_refreshingQuery) return
|
||||||
|
var qa = document.getElementById("queryArea")
|
||||||
|
if (qa === null || $("#queryArea").hasClass("minimizeQuery")) return // only when open + not minimized
|
||||||
|
if (lastQueryPhrase === "") return
|
||||||
|
var box = document.getElementById("phraseBox")
|
||||||
|
var savedInput = box.value // preserve whatever the user may be typing now
|
||||||
|
var savedFilter = searchBarValue // preserve the find-in-results filter
|
||||||
|
_refreshingQuery = true
|
||||||
|
try {
|
||||||
|
box.value = lastQueryPhrase // queryDatabase reads sVal(); point it at the open box's phrase
|
||||||
|
queryDatabase() // rebuilds the table for the current enabled-cipher set
|
||||||
|
} finally {
|
||||||
|
box.value = savedInput // restore silently (direct assignment fires no input event)
|
||||||
|
_refreshingQuery = false
|
||||||
|
}
|
||||||
|
if (savedFilter) searchBarDBQuery(savedFilter) // re-apply the filter over the fresh matches
|
||||||
|
}
|
||||||
|
|
||||||
function clearDatabaseQueryTable() {
|
function clearDatabaseQueryTable() {
|
||||||
$("#calcMain").removeClass("splitInterface")
|
$("#calcMain").removeClass("splitInterface")
|
||||||
$("#queryArea").remove() // remove element from page
|
$("#queryArea").remove() // remove element from page
|
||||||
@@ -85,6 +109,31 @@ function clearDatabaseQueryTable() {
|
|||||||
queryResultInitial = [] // clear
|
queryResultInitial = [] // clear
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isIngglishEntry(phr) {
|
||||||
|
return typeof phr === "string" && phr.indexOf("[Ingglish:") !== -1
|
||||||
|
}
|
||||||
|
|
||||||
|
function compareQueryMatches(a, b, searchPhrase) {
|
||||||
|
// 1. Exact phrase match (full string or stripped of [...] comment) always first
|
||||||
|
var aRaw = a[1].toLowerCase()
|
||||||
|
var bRaw = b[1].toLowerCase()
|
||||||
|
var aStripped = aRaw.replace(/\[.+\]/g, '').trim()
|
||||||
|
var bStripped = bRaw.replace(/\[.+\]/g, '').trim()
|
||||||
|
var aExact = (aRaw === searchPhrase || aStripped === searchPhrase) ? 1 : 0
|
||||||
|
var bExact = (bRaw === searchPhrase || bStripped === searchPhrase) ? 1 : 0
|
||||||
|
if (aExact !== bExact) return bExact - aExact
|
||||||
|
|
||||||
|
// 2. When optPrioritizeIngglish is enabled, sort [Ingglish: ...] matches above non-Ingglish matches
|
||||||
|
if (typeof optPrioritizeIngglish !== "undefined" && optPrioritizeIngglish) {
|
||||||
|
var aIng = isIngglishEntry(a[1]) ? 1 : 0
|
||||||
|
var bIng = isIngglishEntry(b[1]) ? 1 : 0
|
||||||
|
if (aIng !== bIng) return bIng - aIng
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3. Then sort by match score descending
|
||||||
|
return b[0] - a[0]
|
||||||
|
}
|
||||||
|
|
||||||
function searchDBcrossCipher() { // populate "queryResult" array with matching phrases
|
function searchDBcrossCipher() { // populate "queryResult" array with matching phrases
|
||||||
var p, m, n
|
var p, m, n
|
||||||
queryResult = [] // reset matching phrases
|
queryResult = [] // reset matching phrases
|
||||||
@@ -121,14 +170,10 @@ function searchDBcrossCipher() { // populate "queryResult" array with matching p
|
|||||||
}
|
}
|
||||||
if (tmpArr[0] > 0) queryResult.push(tmpArr) // if total score is more than zero, add phrase to array
|
if (tmpArr[0] > 0) queryResult.push(tmpArr) // if total score is more than zero, add phrase to array
|
||||||
}
|
}
|
||||||
// Sort by score descending, but pin exact phrase match to top
|
// Sort by score descending, pinning exact match and (when enabled) [Ingglish: ...] matches to top
|
||||||
var searchPhrase = sVal().toLowerCase()
|
var searchPhrase = sVal().toLowerCase().trim()
|
||||||
queryResult.sort(function(a, b) {
|
queryResult.sort(function(a, b) {
|
||||||
// Exact phrase match always first
|
return compareQueryMatches(a, b, searchPhrase)
|
||||||
var aExact = a[1].toLowerCase() === searchPhrase ? 1 : 0
|
|
||||||
var bExact = b[1].toLowerCase() === searchPhrase ? 1 : 0
|
|
||||||
if (aExact !== bExact) return bExact - aExact
|
|
||||||
return b[0] - a[0]; // then by score descending
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,13 +206,10 @@ function searchDBsameCipher() { // populate "queryResult" array with matching ph
|
|||||||
}
|
}
|
||||||
if (tmpArr[0] > 0) queryResult.push(tmpArr) // if total score is more than zero, add phrase to array
|
if (tmpArr[0] > 0) queryResult.push(tmpArr) // if total score is more than zero, add phrase to array
|
||||||
}
|
}
|
||||||
// Sort by score descending, but pin exact phrase match to top
|
// Sort by score descending, pinning exact match and (when enabled) [Ingglish: ...] matches to top
|
||||||
var searchPhrase = sVal().toLowerCase()
|
var searchPhrase = sVal().toLowerCase().trim()
|
||||||
queryResult.sort(function(a, b) {
|
queryResult.sort(function(a, b) {
|
||||||
var aExact = a[1].toLowerCase() === searchPhrase ? 1 : 0
|
return compareQueryMatches(a, b, searchPhrase)
|
||||||
var bExact = b[1].toLowerCase() === searchPhrase ? 1 : 0
|
|
||||||
if (aExact !== bExact) return bExact - aExact
|
|
||||||
return b[0] - a[0];
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -225,7 +267,7 @@ function updateDatabaseQueryTable(stPos = 0, dItems, scrollBarEvent = false) { /
|
|||||||
ms += '<div id="queryMinBtn">_</div>'
|
ms += '<div id="queryMinBtn">_</div>'
|
||||||
ms += '</div>'
|
ms += '</div>'
|
||||||
ms += '<input type="range" min="0" max="'+sliderMax+'" value="'+curSliderPos+'" class="qSlider" id="queryScrollbar">' // slider/scrollbar
|
ms += '<input type="range" min="0" max="'+sliderMax+'" value="'+curSliderPos+'" class="qSlider" id="queryScrollbar">' // slider/scrollbar
|
||||||
ms += '<input id="querySearchInput" type="text" spellcheck="false" autocomplete="off" value="'+searchBarValue+'" placeholder="Find...">' // search bar
|
ms += '<input id="querySearchInput" type="text" spellcheck="false" autocomplete="off" value="'+escHtml(searchBarValue)+'" placeholder="Find...">' // search bar
|
||||||
ms += '<table id="QueryTable" class="HistoryTable" data-startpos='+stPos+' data-dispitems='+dItems+'>'
|
ms += '<table id="QueryTable" class="HistoryTable" data-startpos='+stPos+' data-dispitems='+dItems+'>'
|
||||||
ms += '<tbody>'
|
ms += '<tbody>'
|
||||||
} else { // scrollbar used
|
} else { // scrollbar used
|
||||||
@@ -243,9 +285,11 @@ function updateDatabaseQueryTable(stPos = 0, dItems, scrollBarEvent = false) { /
|
|||||||
|
|
||||||
if (firstPhrase) { // open row on the first phrase
|
if (firstPhrase) { // open row on the first phrase
|
||||||
firstPhrase = false
|
firstPhrase = false
|
||||||
|
var ingBtnClass = (typeof optPrioritizeIngglish !== "undefined" && optPrioritizeIngglish) ? "queryPageBtn ingPriorityBtn ingPriorityOn" : "queryPageBtn ingPriorityBtn"
|
||||||
ms += '<tr class="cH"><td class="mPQ">'
|
ms += '<tr class="cH"><td class="mPQ">'
|
||||||
ms += queryResult.length.toLocaleString('en')+' matches'
|
ms += queryResult.length.toLocaleString('en')+' matches'
|
||||||
ms += '<br><br>'
|
ms += '<br><input class="'+ingBtnClass+'" id="queryIngPriorityBtn" type="button" value="ING ↑" title="Toggle Ingglish [...] priority sort to top" onclick="event.stopPropagation();conf_PIM()">'
|
||||||
|
ms += '<br>'
|
||||||
ms += '<div style="display: inline-flex;">'
|
ms += '<div style="display: inline-flex;">'
|
||||||
ms += '<input class="queryPageBtn" id="queryPrevPageBtn" type="button" value="<" onclick="queryShowPrevPage()">'
|
ms += '<input class="queryPageBtn" id="queryPrevPageBtn" type="button" value="<" onclick="queryShowPrevPage()">'
|
||||||
ms += '<input id="queryPosInput" type="tel" autocomplete="off" value="'+curPos+'">'
|
ms += '<input id="queryPosInput" type="tel" autocomplete="off" value="'+curPos+'">'
|
||||||
@@ -259,7 +303,7 @@ function updateDatabaseQueryTable(stPos = 0, dItems, scrollBarEvent = false) { /
|
|||||||
curCiphCol = (optColoredCiphers) ? 'hsl('+curCiph.H+' '+curCiph.S+'% '+curCiph.L+'% / 1)' : ''
|
curCiphCol = (optColoredCiphers) ? 'hsl('+curCiph.H+' '+curCiph.S+'% '+curCiph.L+'% / 1)' : ''
|
||||||
// ms += '<td class="hCVQ"><span class="hCV2" style="color: '+curCiphCol+'">'+curCiph.cipherName.replace(/ /g, "<br>")+'</span></td>' // color of cipher displayed in the table
|
// ms += '<td class="hCVQ"><span class="hCV2" style="color: '+curCiphCol+'">'+curCiph.cipherName.replace(/ /g, "<br>")+'</span></td>' // color of cipher displayed in the table
|
||||||
ms += '<td class="hCVQ" style="height: '+calcCipherNameHeightPx(curCiph.cipherName)+'px;"><span class="hCV2" style="color: '+curCiphCol+'">'
|
ms += '<td class="hCVQ" style="height: '+calcCipherNameHeightPx(curCiph.cipherName)+'px;"><span class="hCV2" style="color: '+curCiphCol+'">'
|
||||||
ms += curCiph.cipherName+'</span></td>' // color of cipher displayed in the table
|
ms += escHtml(curCiph.cipherName)+'</span></td>' // color of cipher displayed in the table
|
||||||
}
|
}
|
||||||
ms += "</tr>"
|
ms += "</tr>"
|
||||||
curPos += dbPageItems
|
curPos += dbPageItems
|
||||||
@@ -272,12 +316,12 @@ function updateDatabaseQueryTable(stPos = 0, dItems, scrollBarEvent = false) { /
|
|||||||
tmpComment = commentMatch[0]
|
tmpComment = commentMatch[0]
|
||||||
}
|
}
|
||||||
// comment first, phrase without comment and leading/trailing spaces
|
// comment first, phrase without comment and leading/trailing spaces
|
||||||
dispPhrase = (encodingMenuOpened) ? '<span class="pCHT">'+tmpComment+'</span>' + queryResult[x].replace(/\[.+\]/g, '').trim() : '<span class="pCHT">'+tmpComment+'</span>' + queryResult[x][1].replace(/\[.+\]/g, '').trim()
|
dispPhrase = (encodingMenuOpened) ? '<span class="pCHT">'+escHtml(tmpComment)+'</span>' + escHtml(queryResult[x].replace(/\[.+\]/g, '').trim()) : '<span class="pCHT">'+escHtml(tmpComment)+'</span>' + escHtml(queryResult[x][1].replace(/\[.+\]/g, '').trim())
|
||||||
} else {
|
} else {
|
||||||
dispPhrase = (encodingMenuOpened) ? queryResult[x] : queryResult[x][1]
|
dispPhrase = (encodingMenuOpened) ? escHtml(queryResult[x]) : escHtml(queryResult[x][1])
|
||||||
}
|
}
|
||||||
var fullPhrase = (encodingMenuOpened) ? queryResult[x] : queryResult[x][1]
|
var fullPhrase = (encodingMenuOpened) ? queryResult[x] : queryResult[x][1]
|
||||||
ms += '<tr><td class="hPQ" data-ind="'+x+'" title="'+fullPhrase.replace(/"/g, '"')+'">' + dispPhrase + '</td>' // phrase at index 1
|
ms += '<tr><td class="hPQ" data-ind="'+x+'" title="'+escHtml(fullPhrase)+'">' + dispPhrase + '</td>' // phrase at index 1 (title + body both escaped)
|
||||||
|
|
||||||
valPos = 2 // reset position for new phrase
|
valPos = 2 // reset position for new phrase
|
||||||
for (y = 0; y < gemArrCiph.length; y++) { // gemArrCiph contains indices of ciphers used for query
|
for (y = 0; y < gemArrCiph.length; y++) { // gemArrCiph contains indices of ciphers used for query
|
||||||
|
|||||||
+2
-2
@@ -191,9 +191,9 @@ function toggleDateCalcMenu() {
|
|||||||
o += '<div class="dateCalcBg">'
|
o += '<div class="dateCalcBg">'
|
||||||
|
|
||||||
o += '<table class="dateCalcTable2"><tbody>'
|
o += '<table class="dateCalcTable2"><tbody>'
|
||||||
o += '<tr style="line-height: 0.9em;"><td><div id="dateDesc1Area"><input class="dateDescription" id="dateDesc1" value="'+dateDesc1Saved+'"></div></td></tr>' // Date 1 label
|
o += '<tr style="line-height: 0.9em;"><td><div id="dateDesc1Area"><input class="dateDescription" id="dateDesc1" value="'+escHtml(dateDesc1Saved)+'"></div></td></tr>' // Date 1 label
|
||||||
o += '<tr style="line-height: 0.9em;"><td style="padding-bottom: 0.5em;"><span id="d1full_t2" class="dateDetailsText"></span></td></tr>' // Date 1
|
o += '<tr style="line-height: 0.9em;"><td style="padding-bottom: 0.5em;"><span id="d1full_t2" class="dateDetailsText"></span></td></tr>' // Date 1
|
||||||
o += '<tr style="line-height: 0.9em;"><td><div id="dateDesc2Area"><input class="dateDescription" id="dateDesc2" value="'+dateDesc2Saved+'"></div></td></tr>' // Date 2 label
|
o += '<tr style="line-height: 0.9em;"><td><div id="dateDesc2Area"><input class="dateDescription" id="dateDesc2" value="'+escHtml(dateDesc2Saved)+'"></div></td></tr>' // Date 2 label
|
||||||
o += '<tr style="line-height: 0.9em;"><td style="padding-bottom: 0.5em;"><span id="d2full_t2" class="dateDetailsText"></span></td></tr>' // Date 2
|
o += '<tr style="line-height: 0.9em;"><td style="padding-bottom: 0.5em;"><span id="d2full_t2" class="dateDetailsText"></span></td></tr>' // Date 2
|
||||||
o += '<tr><td style="background: var(--menu-bg-accent); padding: 0.4em 0.75em 0.5em 0.75em;"><span id="dateDurValues" class="dateDetailsText"></span></td></tr>'
|
o += '<tr><td style="background: var(--menu-bg-accent); padding: 0.4em 0.75em 0.5em 0.75em;"><span id="dateDurValues" class="dateDetailsText"></span></td></tr>'
|
||||||
o += '</tbody></table>'
|
o += '</tbody></table>'
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ function toggleEncodingMenu(updateEncMenu = false, clearValues = false) {
|
|||||||
if (cipherList[i].enabled == true) { // for each enabled cipher
|
if (cipherList[i].enabled == true) { // for each enabled cipher
|
||||||
chkVal = (document.getElementById('encCiphVal'+i) !== null) ? document.getElementById('encCiphVal'+i).value : 0
|
chkVal = (document.getElementById('encCiphVal'+i) !== null) ? document.getElementById('encCiphVal'+i).value : 0
|
||||||
chkVal = (clearValues) ? 0 : chkVal // clear values
|
chkVal = (clearValues) ? 0 : chkVal // clear values
|
||||||
o += '<td><span class="ciphCheckboxLabel">'+cipherList[i].cipherName+'</span></td>'
|
o += '<td><span class="ciphCheckboxLabel">'+escHtml(cipherList[i].cipherName)+'</span></td>'
|
||||||
o += '<td><input type="text" value="'+chkVal+'" class="colSlider" id="encCiphVal'+i+'"></td>'
|
o += '<td><input type="text" value="'+chkVal+'" class="colSlider" id="encCiphVal'+i+'"></td>'
|
||||||
o += '<td style="min-width: 16px;"></td>'
|
o += '<td style="min-width: 16px;"></td>'
|
||||||
ciph_in_row++
|
ciph_in_row++
|
||||||
|
|||||||
+20
-6
@@ -98,10 +98,13 @@ function importFileAction(file, hasLocalFile) {
|
|||||||
file = ciph[0].replace(/(\t| +|\r|\n)/g, "").slice(10,-1) // remove tabs, consequtive spaces, line breaks - "new cipher" at start, last bracket
|
file = ciph[0].replace(/(\t| +|\r|\n)/g, "").slice(10,-1) // remove tabs, consequtive spaces, line breaks - "new cipher" at start, last bracket
|
||||||
ciph = file.split(",new cipher") // split string into array
|
ciph = file.split(",new cipher") // split string into array
|
||||||
|
|
||||||
cipherList = []; cCat = []; defaultCipherArray = [] // clear arrays with previously defined ciphers, categories, default ciphers
|
var imported = [] // parse every cipher first — one malformed entry aborts the import and keeps the current ciphers
|
||||||
for (n = 0; n < ciph.length; n++) {
|
for (n = 0; n < ciph.length; n++) {
|
||||||
cipherList.push(eval("new cipher("+ciph[n].slice(1,-1)+")")) // remove parethesis, evaluate string as javascript code
|
var c = cipherFromExport(ciph[n].slice(1,-1)) // remove parentheses; parsed as data, never eval'd
|
||||||
|
if (c === null) { displayCalcNotification("Cipher import failed: malformed cipher #"+(n+1), 3000); return }
|
||||||
|
imported.push(c)
|
||||||
}
|
}
|
||||||
|
cipherList = imported; cCat = []; defaultCipherArray = [] // replace previously defined ciphers, categories, default ciphers
|
||||||
document.getElementById("calcOptionsPanel").innerHTML = "" // clear menu panel
|
document.getElementById("calcOptionsPanel").innerHTML = "" // clear menu panel
|
||||||
|
|
||||||
initCalc() // reinit.
|
initCalc() // reinit.
|
||||||
@@ -148,10 +151,13 @@ function importFileAction(file, hasLocalFile) {
|
|||||||
file = ciph[0].replace(/(\t| +|\r|\n)/g, "").slice(10,-1) // remove tabs, consequtive spaces, line breaks - "new cipher" at start, last bracket
|
file = ciph[0].replace(/(\t| +|\r|\n)/g, "").slice(10,-1) // remove tabs, consequtive spaces, line breaks - "new cipher" at start, last bracket
|
||||||
ciph = file.split(",new cipher") // split string into array
|
ciph = file.split(",new cipher") // split string into array
|
||||||
|
|
||||||
cipherList = []; cCat = []; defaultCipherArray = [] // clear arrays with previously defined ciphers, categories, default ciphers
|
var imported = [] // parse every cipher first — one malformed entry aborts the import and keeps the current ciphers
|
||||||
for (n = 0; n < ciph.length; n++) {
|
for (n = 0; n < ciph.length; n++) {
|
||||||
cipherList.push(eval("new cipher("+ciph[n].slice(1,-1)+")")) // remove parethesis, evaluate string as javascript code
|
var c = cipherFromExport(ciph[n].slice(1,-1)) // remove parentheses; parsed as data, never eval'd
|
||||||
|
if (c === null) { displayCalcNotification("Cipher import failed: malformed cipher #"+(n+1), 3000); return }
|
||||||
|
imported.push(c)
|
||||||
}
|
}
|
||||||
|
cipherList = imported; cCat = []; defaultCipherArray = [] // replace previously defined ciphers, categories, default ciphers
|
||||||
document.getElementById("calcOptionsPanel").innerHTML = "" // clear menu panel
|
document.getElementById("calcOptionsPanel").innerHTML = "" // clear menu panel
|
||||||
initCalc() // reinit
|
initCalc() // reinit
|
||||||
updateTables() // update tables
|
updateTables() // update tables
|
||||||
@@ -240,9 +246,17 @@ function isJsonString(str) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function importCalcOptions(calcOpt) { // load user options
|
function importCalcOptions(calcOpt) { // load user options: "name = value" strings; names must be in calcOptionsArr, values are JSON scalars — parsed, never eval'd
|
||||||
if (typeof calcOpt !== 'undefined' && calcOpt !== null) {
|
if (typeof calcOpt !== 'undefined' && calcOpt !== null) {
|
||||||
for (var i = 0; i < calcOpt.length; i++) eval(calcOpt[i])
|
for (var i = 0; i < calcOpt.length; i++) {
|
||||||
|
if (typeof calcOpt[i] !== "string") continue
|
||||||
|
var m = calcOpt[i].match(/^\s*([A-Za-z_][A-Za-z0-9_]*)\s*=\s*([\s\S]+?)\s*$/)
|
||||||
|
if (m === null || calcOptionsArr.indexOf(m[1]) === -1) continue // unknown option name → ignored
|
||||||
|
var v
|
||||||
|
try { v = JSON.parse(m[2]) } catch (e) { continue } // not a JSON scalar → ignored
|
||||||
|
if (typeof v !== "boolean" && typeof v !== "number" && typeof v !== "string") continue
|
||||||
|
window[m[1]] = v // the option globals are top-level `var`s, i.e. window properties
|
||||||
|
}
|
||||||
}
|
}
|
||||||
toggleCodeRain() // update coderain
|
toggleCodeRain() // update coderain
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -20,8 +20,8 @@ function openImageWindow(element, imgName = "", sRatio = window.devicePixelRatio
|
|||||||
imageDataURL = trimCanvas(canvas); // canvas to "data:image/png;base64, ..."
|
imageDataURL = trimCanvas(canvas); // canvas to "data:image/png;base64, ..."
|
||||||
|
|
||||||
if (element == '.dateCalcTable2') { // restore date labels as input
|
if (element == '.dateCalcTable2') { // restore date labels as input
|
||||||
$('#dateDesc1Area').html('<input class="dateDescription" id="dateDesc1" value="'+dateDesc1Saved+'">')
|
$('#dateDesc1Area').html('<input class="dateDescription" id="dateDesc1" value="'+escHtml(dateDesc1Saved)+'">')
|
||||||
$('#dateDesc2Area').html('<input class="dateDescription" id="dateDesc2" value="'+dateDesc2Saved+'">')
|
$('#dateDesc2Area').html('<input class="dateDescription" id="dateDesc2" value="'+escHtml(dateDesc2Saved)+'">')
|
||||||
$('.dateCalcTable2').removeClass('elemBorderScr') // add outline
|
$('.dateCalcTable2').removeClass('elemBorderScr') // add outline
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,10 +241,10 @@ function exportCiphersDB(expAllCiph = false) {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
function exportCalcOptions() {
|
function exportCalcOptions() { // one JSON string per option: "name = value" (same text as before for booleans/numbers); values read by name, never eval'd
|
||||||
var o = "calcOptions = [\n\t"
|
var o = "calcOptions = [\n\t"
|
||||||
for (var i = 0; i < calcOptionsArr.length; i++) {
|
for (var i = 0; i < calcOptionsArr.length; i++) {
|
||||||
o += "\x22"+eval(calcOptionsArr[i])+"\x22,\n\t" // quotes - \x22
|
o += JSON.stringify(calcOptionsArr[i]+" = "+JSON.stringify(window[calcOptionsArr[i]]))+",\n\t"
|
||||||
}
|
}
|
||||||
o = o.slice(0,-3) + "\n]\n" // remove comma, new line, tab; new line, close array, new line
|
o = o.slice(0,-3) + "\n]\n" // remove comma, new line, tab; new line, close array, new line
|
||||||
return o
|
return o
|
||||||
|
|||||||
+26
-1
@@ -216,4 +216,29 @@ class cipher { // cipher constructor class
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// ================= Cipher import (parsed, never eval'd) =================
|
||||||
|
// Exported cipher files (exportCiphers / exportCiphersDB), the localStorage settings copy and
|
||||||
|
// pasted "// ciphers.js" files carry each cipher as `new cipher(<args>)`. The <args> text is
|
||||||
|
// JSON-compatible by construction of the exporter: "name","category",H,S,L,[charcodes],[values],
|
||||||
|
// diacriticsAsRegular,enabled,caseSensitive. It used to be eval()'d — imported files and the
|
||||||
|
// localStorage copy (which any XSS could have written) could execute code. Now it is parsed and
|
||||||
|
// shape-checked; anything that is not exactly a cipher argument list is rejected (null).
|
||||||
|
function parseCipherArgs(argStr) {
|
||||||
|
var args
|
||||||
|
try { args = JSON.parse("[" + argStr + "]") } catch (e) { return null }
|
||||||
|
if (!Array.isArray(args) || args.length < 7 || args.length > 10) return null
|
||||||
|
var isIntArr = function (a) { return Array.isArray(a) && a.every(function (x) { return Number.isInteger(x) }) }
|
||||||
|
var isBoolOrAbsent = function (b) { return b === undefined || typeof b === "boolean" }
|
||||||
|
if (typeof args[0] !== "string" || typeof args[1] !== "string") return null // name, category
|
||||||
|
if (![2, 3, 4].every(function (i) { return typeof args[i] === "number" && isFinite(args[i]) })) return null // H, S, L
|
||||||
|
if (!isIntArr(args[5]) || !isIntArr(args[6]) || args[5].length !== args[6].length) return null // charcodes, values
|
||||||
|
if (![7, 8, 9].every(function (i) { return isBoolOrAbsent(args[i]) })) return null // flags (constructor defaults apply when absent)
|
||||||
|
return args
|
||||||
|
}
|
||||||
|
|
||||||
|
function cipherFromExport(argStr) { // → a cipher, or null when the text is not a well-formed cipher argument list
|
||||||
|
var a = parseCipherArgs(argStr)
|
||||||
|
if (a === null) return null
|
||||||
|
return new cipher(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9])
|
||||||
|
}
|
||||||
@@ -38,6 +38,7 @@ var numericalMode // boolean flag, match numbers instead of phrase gematria
|
|||||||
var userDB = [] // imported database
|
var userDB = [] // imported database
|
||||||
var userDBlive = [] // imported live database (phrases only)
|
var userDBlive = [] // imported live database (phrases only)
|
||||||
var queryResult = [] // matching phrases
|
var queryResult = [] // matching phrases
|
||||||
|
var lastQueryPhrase = '' // the phrase that produced the OPEN matches box, so a cipher toggle can refresh it in place
|
||||||
var queryResultInitial = [] // matching phrases (used to reset search bar results)
|
var queryResultInitial = [] // matching phrases (used to reset search bar results)
|
||||||
var precalcDBLoaded = false // if precalculated database is loaded, disable cipher rearrangement
|
var precalcDBLoaded = false // if precalculated database is loaded, disable cipher rearrangement
|
||||||
var searchBarValue = '' // search bar value
|
var searchBarValue = '' // search bar value
|
||||||
@@ -330,8 +331,8 @@ $(document).ready(function(){
|
|||||||
openImageWindow(".HistoryTable", fileName, 2.0);
|
openImageWindow(".HistoryTable", fileName, 2.0);
|
||||||
});
|
});
|
||||||
$("body").on("click", "#btn-date-calc-png", function () {
|
$("body").on("click", "#btn-date-calc-png", function () {
|
||||||
$('#dateDesc1Area').html('<span class="dateDescription">'+dateDesc1Saved+'</span>') // input to fixed text
|
$('#dateDesc1Area').html('<span class="dateDescription">'+escHtml(dateDesc1Saved)+'</span>') // input to fixed text
|
||||||
$('#dateDesc2Area').html('<span class="dateDescription">'+dateDesc2Saved+'</span>')
|
$('#dateDesc2Area').html('<span class="dateDescription">'+escHtml(dateDesc2Saved)+'</span>')
|
||||||
$('.dateCalcTable2').addClass('elemBorderScr') // add outline
|
$('.dateCalcTable2').addClass('elemBorderScr') // add outline
|
||||||
// phrase-with-spaces_2021-03-26_10-23-52_table.png
|
// phrase-with-spaces_2021-03-26_10-23-52_table.png
|
||||||
var fileName = (saved_d1.getMonth()+1)+'-'+saved_d1.getDate()+'-'+saved_d1.getFullYear()+'_'+
|
var fileName = (saved_d1.getMonth()+1)+'-'+saved_d1.getDate()+'-'+saved_d1.getFullYear()+'_'+
|
||||||
|
|||||||
@@ -32,10 +32,13 @@ function restoreCalcSettingsLocalStorage(silentMode = false) {
|
|||||||
file = ciph[0].replace(/(\t| +|\r|\n)/g, "").slice(10,-1) // remove tabs, consequtive spaces, line breaks - "new cipher" at start, last bracket
|
file = ciph[0].replace(/(\t| +|\r|\n)/g, "").slice(10,-1) // remove tabs, consequtive spaces, line breaks - "new cipher" at start, last bracket
|
||||||
ciph = file.split(",new cipher") // split string into array
|
ciph = file.split(",new cipher") // split string into array
|
||||||
|
|
||||||
cipherList = []; cCat = []; defaultCipherArray = [] // clear arrays with previously defined ciphers, categories, default ciphers
|
var imported = [] // parse every cipher first — one malformed entry aborts the import and keeps the current ciphers
|
||||||
for (n = 0; n < ciph.length; n++) {
|
for (n = 0; n < ciph.length; n++) {
|
||||||
cipherList.push(eval("new cipher("+ciph[n].slice(1,-1)+")")) // remove parethesis, evaluate string as javascript code
|
var c = cipherFromExport(ciph[n].slice(1,-1)) // remove parentheses; parsed as data, never eval'd
|
||||||
|
if (c === null) { displayCalcNotification("Cipher import failed: malformed cipher #"+(n+1), 3000); return }
|
||||||
|
imported.push(c)
|
||||||
}
|
}
|
||||||
|
cipherList = imported; cCat = []; defaultCipherArray = [] // replace previously defined ciphers, categories, default ciphers
|
||||||
document.getElementById("calcOptionsPanel").innerHTML = "" // clear menu panel
|
document.getElementById("calcOptionsPanel").innerHTML = "" // clear menu panel
|
||||||
initCalc() // reinit
|
initCalc() // reinit
|
||||||
updateTables() // update tables
|
updateTables() // update tables
|
||||||
|
|||||||
+26
-2
@@ -1018,9 +1018,16 @@ body {
|
|||||||
}
|
}
|
||||||
#queryDBbtn {
|
#queryDBbtn {
|
||||||
background-color: var(--input-bg-accent);
|
background-color: var(--input-bg-accent);
|
||||||
padding: 0em;
|
/* "\1F52E Query" was left-biased: the value is ~70px in a fixed 75px button, so text-align:center
|
||||||
|
left a right-hand gap that read as extra left padding. Hug the content with symmetric horizontal
|
||||||
|
padding (width:auto) so the orb and label sit centered with equal space either side. Verified
|
||||||
|
headless (q2-D). box-sizing keeps the 1px border out of the width math. */
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: auto;
|
||||||
|
min-width: 75px;
|
||||||
|
padding: 0 0.6em;
|
||||||
margin: 0em 0.3em;
|
margin: 0em 0.3em;
|
||||||
width: 75px;
|
text-align: center;
|
||||||
}
|
}
|
||||||
#enterPhraseBtn,
|
#enterPhraseBtn,
|
||||||
#autoMatchBtn {
|
#autoMatchBtn {
|
||||||
@@ -1629,6 +1636,23 @@ body {
|
|||||||
border: 1px solid var(--border-dark-accent);
|
border: 1px solid var(--border-dark-accent);
|
||||||
padding: 0em 0.35em;
|
padding: 0em 0.35em;
|
||||||
}
|
}
|
||||||
|
.ingPriorityBtn {
|
||||||
|
font-size: 82%;
|
||||||
|
margin: 0.25em 0;
|
||||||
|
padding: 0.1em 0.45em;
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: 0.65;
|
||||||
|
transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
|
||||||
|
}
|
||||||
|
.ingPriorityBtn:hover {
|
||||||
|
opacity: 0.95;
|
||||||
|
}
|
||||||
|
.ingPriorityBtn.ingPriorityOn {
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--border-accent);
|
||||||
|
border-color: var(--border-accent);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
#queryMinBtn {
|
#queryMinBtn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
|
|||||||
+6
-6
@@ -39,11 +39,12 @@ var CALC_CONFIG = {
|
|||||||
databaseJsonUrl: "db.json", // full set — loaded in background
|
databaseJsonUrl: "db.json", // full set — loaded in background
|
||||||
databaseLiteJsonUrl: "db_lite.json", // lite set (common ciphers) — loaded first for fast paint
|
databaseLiteJsonUrl: "db_lite.json", // lite set (common ciphers) — loaded first for fast paint
|
||||||
databaseTxtUrl: "db.txt",
|
databaseTxtUrl: "db.txt",
|
||||||
databaseVersion: 1, // bump on each db.json regen -> cache-busts the db fetch (?v=N)
|
databaseVersion: 5, // bump on each db.json regen -> cache-busts the db fetch (?v=N)
|
||||||
|
|
||||||
// --- Defaults ---
|
// --- Defaults ---
|
||||||
autoMatchDesktop: true,
|
autoMatchDesktop: true,
|
||||||
autoMatchMobile: false,
|
autoMatchMobile: false,
|
||||||
|
prioritizeIngglishMatches: false, // sort [Ingglish: ...] matches to top of query results
|
||||||
resultsPerPage: 12,
|
resultsPerPage: 12,
|
||||||
newPhrasesOnTop: true,
|
newPhrasesOnTop: true,
|
||||||
|
|
||||||
@@ -63,10 +64,9 @@ var CALC_CONFIG = {
|
|||||||
// their exact name from ciphers.js. They still appear in their original
|
// their exact name from ciphers.js. They still appear in their original
|
||||||
// category too — custom categories are convenience shortcuts.
|
// category too — custom categories are convenience shortcuts.
|
||||||
customCategories: [
|
customCategories: [
|
||||||
// Example: CCRU section for Anglossic Qabbala research
|
{
|
||||||
// {
|
name: "Ingglish / CCRU",
|
||||||
// name: "CCRU",
|
ciphers: ["Alphanumeric Qabbala", "Synx", "Based Atlanteanism", "Primes", "Ordinal"]
|
||||||
// ciphers: ["Alphanumeric Qabbala", "Synx", "Keypad"]
|
},
|
||||||
// },
|
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
# Welcome to Hyperdope-Gematria & Ingglish AQ: A Complete Newcomer's Guide
|
||||||
|
|
||||||
|
If you are brand new to **Hyperdope-Gematria** (`Cypher Calculator`) and have never heard of **Ingglish** or **Alphanumeric Qabbala (AQ)**, this guide walks you through everything from first principles to hands-on discovery in under five minutes.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 1: What is Hyperdope-Gematria?
|
||||||
|
|
||||||
|
**Gematria** (or *isopsephy*) is the practice of assigning numerical values to letters so that words and phrases can be summed into numbers. When two seemingly unrelated words or headlines produce the exact same number, gematria researchers call that a **collision** or **equivalence class**.
|
||||||
|
|
||||||
|
**Hyperdope-Gematria** (`https://github.com/malonehunter/hyperdope-gematria`) is a modern, browser-based gematria workbench engineered for speed and multi-system comparison:
|
||||||
|
|
||||||
|
1. **69 Simultaneous English Ciphers:**
|
||||||
|
While traditional calculators only show 1 to 4 ciphers, Hyperdope-Gematria scores every word you type across up to 69 English ciphers at once—including:
|
||||||
|
- **Alphanumeric Qabbala (AQ):** Digits `0–9` equal `0–9`, and letters `A–Z` run continuously from `A = 10` to `Z = 35` (case-insensitive; spaces and punctuation equal `0`).
|
||||||
|
- **Ordinal / Reverse Ordinal:** Classic `A = 1 ... Z = 26` and `Z = 1 ... A = 26`.
|
||||||
|
- **Reduction:** Pythagorean digital root (`A = 1 ... Z = 8`).
|
||||||
|
- **Synx:** Sums the divisor counts of Base-36 AQ character values.
|
||||||
|
- **Based Atlanteanism:** Computes `Standard - Alphanumeric Qabbala`.
|
||||||
|
- **Primes:** Maps `A = 2, B = 3, C = 5 ... Z = 101`.
|
||||||
|
|
||||||
|
2. **Instant Pre-Computed Matching (`<100ms`):**
|
||||||
|
Out of the box, the calculator loads a curated database of **230,000+ words, names, historical events, and esoteric phrases** (`db.txt` compiled into `db_lite.json` and `db.json`). The moment you press `Enter`, it displays every phrase in the database that shares your phrase's numerical value.
|
||||||
|
|
||||||
|
3. **Bracketed Gloss Comments (`[...]`):**
|
||||||
|
One of Hyperdope-Gematria's smartest features is **phrase comment stripping**. Whenever an entry contains square brackets—such as `Spairal [Ingglish: Spiral]`—the calculator **ignores everything inside `[...]` when calculating the number**, but keeps `[Ingglish: Spiral]` visible on screen so you know what the entry means!
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 2: What is Ingglish, and Why Does It Change Gematria?
|
||||||
|
|
||||||
|
### 1. The Hidden Problem with Standard English (`Generation 0: Diachronic / Etymological`)
|
||||||
|
Standard English spelling is a historical museum. Because English printing was frozen centuries ago while spoken pronunciation kept changing, modern English words are packed with **silent letters** and inconsistent vowel spellings:
|
||||||
|
- Look at the word **`knight`**. When you say it out loud, you only pronounce three sounds: `/n/`, `/aɪ/`, `/t/`. Yet Standard English forces you to write six letters (`k-n-i-g-h-t`), including a silent `k` (`20`), a silent `g` (`16`), and a silent `h` (`17`).
|
||||||
|
- In Alphanumeric Qabbala, those unpronounced letters add **`53` points of silent "ghost mass"** (`knight = 123`, `night = 103`). You are scoring the history of medieval scribes rather than the sound of the spoken word.
|
||||||
|
|
||||||
|
### 2. The Phonemic Solution: Ingglish (`Generation 1: Synchronic / Phonemic`)
|
||||||
|
**Ingglish** (`https://ingglish.com`, powered by the 126,000-word Carnegie Mellon University Pronouncing Dictionary) is a deterministic phonetic spelling system for English:
|
||||||
|
- **Zero silent letters:** Every letter written is pronounced. `knight` and `night` both shed their silent letters and become **`nait`** (`AQ = 80`).
|
||||||
|
- **One sound = one spelling:** Every spoken English sound has exactly one spelling. Unstressed vowels reduce to the schwa `a` (`system -> sistam`, `secret -> seekrat`, `future -> fyoocher`). The word `the` becomes `dha` (`AQ = 40`), and `of` becomes `uhv` (`AQ = 78`).
|
||||||
|
- **No redundant letters:** The letters `c`, `q`, and `x` are retired and replaced by the sounds they actually make (`k` or `s`, `kw`, `ks` or `z`).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 3: Five Breakthroughs When Ingglish Enters Hyperdope-Gematria
|
||||||
|
|
||||||
|
When you provision Ingglish words and phrases (`Phrase [Ingglish: Gloss]`) alongside Hyperdope-Gematria's 230,000 Standard English entries, five new analytical capabilities unlock immediately:
|
||||||
|
|
||||||
|
### 1. Acoustic Homophone Compression (`Many Visual Words -> One Spoken Coordinate`)
|
||||||
|
In Standard English AQ, words that sound identical are split apart by their historical spelling:
|
||||||
|
- `I` (`18`), `eye` (`63`), and `AI` (`28`) have three different English AQ values. In Ingglish, all three are pronounced `/aɪ/` and spelled **`Ai`** (`AQ = 28`).
|
||||||
|
- `write` (`124`), `right` (`109`), and `rite` (`92`) compress into **`Rait [Ingglish: Write / Right / Rite]`** (`AQ = 84`).
|
||||||
|
- `sun` (`81`) and `son` (`75`) compress into **`Suhn [Ingglish: Sun / Son]`** (`AQ = 98`).
|
||||||
|
|
||||||
|
### 2. Intergenerational Convergence (`Dispersion -> Exact Equivalence`)
|
||||||
|
Concepts that appear numerically unrelated in Standard English often converge onto a single number in Ingglish.
|
||||||
|
- *Example:* In John Carpenter's *The Thing* (1982), the final standoff revolves around **Childs**, the **alien**, and a bottle of **whiskey**.
|
||||||
|
- In Standard English AQ, their sums are scattered: `Childs = 109`, `alien = 86`, `whiskey = 163`.
|
||||||
|
- In Ingglish AQ, all three lock onto the exact same integer (**`126`**):
|
||||||
|
- `Chaildz [Ingglish: Childs]` = **126**
|
||||||
|
- `Ayleean [Ingglish: Alien]` = **126**
|
||||||
|
- `Wiskee [Ingglish: Whiskey]` = **126**
|
||||||
|
|
||||||
|
### 3. Isometric Fixed Points (`Δ = 0` Bridges Between English and Ingglish)
|
||||||
|
Remarkably, certain words undergo phonetic respelling into Ingglish yet **keep the exact same Alphanumeric Qabbala sum** (`AQ(English) == AQ(Ingglish)`, or `Δ = 0`). These act as immovable bridges between the two spelling systems:
|
||||||
|
|
||||||
|
| Isometric Class | Standard English | Ingglish Entry | Shared AQ | Why `Δ = 0` Holds |
|
||||||
|
| :--- | :--- | :--- | :--- | :--- |
|
||||||
|
| **Type I (Invariant)** | `Thing` | `Thing` | **103** | Phonetic spelling is identical to English |
|
||||||
|
| **Type I (Invariant)** | `Monster` | `Monster` | **167** | Phonetic spelling is identical to English |
|
||||||
|
| **Type I (Invariant)** | `Portal` | `Portal` | **136** | Phonetic spelling is identical to English |
|
||||||
|
| **Type II (Anagram)** | `Ghost` (`g-h-o-s-t`) | `Gohst [Ingglish: Ghost]` | **114** | Same letters reordered (`gho` -> `goh`) |
|
||||||
|
| **Type III (Vowel Split)** | `Iron` (`i-r-o-n`) | `Aiern [Ingglish: Iron]` | **92** | `o (24)` splits into `a (10) + e (14) = 24` |
|
||||||
|
| **Type III (Vowel Split)** | `Demon` (`d-e-m-o-n`) | `Deeman [Ingglish: Demon]` | **96** | `o (24)` splits into `e (14) + a (10) = 24` |
|
||||||
|
| **Type III (Compound)** | `Spider Head` | `Spaider Hed [Ingglish: Spider Head]` | **179** | `i->ai (+10)` is canceled by `ea->e (-10)` |
|
||||||
|
|
||||||
|
### 4. Repdigit Attractors (`333, 666, 777`) & Numogram Syzygies (`81, 495`)
|
||||||
|
In Base-36 AQ, the repdigits `333` (`9 × 37`), `666` (`18 × 37`), and `777` (`21 × 37`) are primary structural attractors, alongside the Ccru Numogram constants `81` (`3^4`) and `495`.
|
||||||
|
- In Ingglish, the prepositional connector **`In Dha [Ingglish: In The]`** sums to `41 + 40 =` **`81`** (`3^4`).
|
||||||
|
- Consequently, English phrases that sit one prime step away from a repdigit snap directly onto `333` in Ingglish:
|
||||||
|
- English `Childs in the alien` (`296 = 8 × 37`) + `37` -> **`Chaildz In Dha Ayleean [Ingglish: Childs In The Alien]`** = **`333`** (`9 × 37`).
|
||||||
|
- English `Childs in the whiskey` (`373`) - `40` -> **`Chaildz In Dha Wiskee [Ingglish: Childs In The Whiskey]`** = **`333`** (`9 × 37`).
|
||||||
|
|
||||||
|
### 5. Cross-Cipher Inspection Across All 69 Ciphers
|
||||||
|
Because Hyperdope-Gematria scores every `[Ingglish: ...]` entry across all 69 English ciphers in `db.json`, you can immediately test whether an AQ match (`333` or `126`) also locks together in **Synx**, **Based Atlanteanism**, **Ordinal**, or **Primes**.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 4: 3-Minute Hands-On Quickstart in Hyperdope-Gematria
|
||||||
|
|
||||||
|
1. **Enable the Alphanumeric Qabbala Loadout:**
|
||||||
|
Open Hyperdope-Gematria in your browser, click **Ciphers**, and enable **Alphanumeric Qabbala** (plus **Synx**, **Ordinal**, and **Primes** if you want multi-cipher columns).
|
||||||
|
2. **Search an Isometric Bridge (`92` or `114`):**
|
||||||
|
Type `Iron` into the search box and press `Enter`. In the matches modal for **Alphanumeric Qabbala = 92**, you will see both Standard English matches and **`Aiern [Ingglish: Iron]`** (`92`), proving that the word holds its exact numerical weight across both spelling systems.
|
||||||
|
3. **Compare English (`Gen 0`) and Ingglish (`Gen 1`) Side-by-Side:**
|
||||||
|
- Type `Childs In The Whiskey` and press `Enter` (`AQ = 373`).
|
||||||
|
- Next, type `Chaildz In Dha Wiskee [Ingglish: Childs In The Whiskey]` and press `Enter` (`AQ = 333`).
|
||||||
|
- Look at the **History Table**: both versions sit side-by-side so you can inspect the exact `-40` (`dha`) shift and click either row to open its visual letter-by-letter bar chart!
|
||||||
+13
-13
@@ -11,16 +11,16 @@
|
|||||||
<!-- Android Web App - Add to Home Screen -->
|
<!-- Android Web App - Add to Home Screen -->
|
||||||
<link rel="manifest" href="manifest.json" />
|
<link rel="manifest" href="manifest.json" />
|
||||||
|
|
||||||
<script src="config.js?v=10"></script>
|
<script src="config.js?v=11"></script>
|
||||||
<script src="lib/jquery.min.js?v=2"></script>
|
<script src="lib/jquery.min.js?v=2"></script>
|
||||||
<!-- html2canvas v1.0.0-alpha.12 -->
|
<!-- html2canvas v1.0.0-alpha.12 -->
|
||||||
|
|
||||||
<script src="calc/gematria.js?v=2"></script>
|
<script src="calc/gematria.js?v=3"></script>
|
||||||
<script src="calc/calc.js?v=13"></script>
|
<script src="calc/calc.js?v=17"></script>
|
||||||
<script src="calc/init-variables.js?v=7"></script>
|
<script src="calc/init-variables.js?v=9"></script>
|
||||||
<script src="calc/ciphers.js?v=5"></script>
|
<script src="calc/ciphers.js?v=6"></script>
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="calc/styles.css?v=9" />
|
<link rel="stylesheet" type="text/css" href="calc/styles.css?v=10" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.onpaint = function () {
|
window.onpaint = function () {
|
||||||
@@ -146,19 +146,19 @@
|
|||||||
|
|
||||||
<span id="loadPanel"></span>
|
<span id="loadPanel"></span>
|
||||||
|
|
||||||
<script src="calc/breakdown.js?v=2"></script>
|
<script src="calc/breakdown.js?v=4"></script>
|
||||||
|
|
||||||
<script src="calc/highlighter.js?v=3"></script>
|
<script src="calc/highlighter.js?v=3"></script>
|
||||||
<script src="calc/export.js?v=2"></script>
|
<script src="calc/export.js?v=4"></script>
|
||||||
<script src="calc/export-csv.js?v=2"></script>
|
<script src="calc/export-csv.js?v=3"></script>
|
||||||
<script src="calc/num-prop.js?v=2"></script>
|
<script src="calc/num-prop.js?v=2"></script>
|
||||||
<script src="calc/edit-ciphers.js?v=2"></script>
|
<script src="calc/edit-ciphers.js?v=2"></script>
|
||||||
<script src="calc/date-calc.js?v=2"></script>
|
<script src="calc/date-calc.js?v=3"></script>
|
||||||
<script src="calc/database.js?v=6"></script>
|
<script src="calc/database.js?v=9"></script>
|
||||||
<script src="calc/quick-guide.js?v=2"></script>
|
<script src="calc/quick-guide.js?v=2"></script>
|
||||||
|
|
||||||
<script src="calc/localstorage.js?v=2"></script>
|
<script src="calc/localstorage.js?v=3"></script>
|
||||||
<script src="calc/encoding.js?v=2"></script>
|
<script src="calc/encoding.js?v=3"></script>
|
||||||
<script src="calc/encoding-ciphers.js?v=2"></script>
|
<script src="calc/encoding-ciphers.js?v=2"></script>
|
||||||
|
|
||||||
<script src="calc/coderain.js?v=2"></script>
|
<script src="calc/coderain.js?v=2"></script>
|
||||||
|
|||||||
+4
-4
@@ -4,13 +4,13 @@
|
|||||||
"background_color": "#202631",
|
"background_color": "#202631",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "res/calc-logo-36.png",
|
"src": "res/calc-logo-32.png",
|
||||||
"sizes": "36x36",
|
"sizes": "32x32",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"density": 0.75
|
"density": 0.75
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "res/calc-logo-36.png",
|
"src": "res/calc-logo-48.png",
|
||||||
"sizes": "48x48",
|
"sizes": "48x48",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"density": 1.0
|
"density": 1.0
|
||||||
@@ -42,4 +42,4 @@
|
|||||||
],
|
],
|
||||||
"start_url": "index.html",
|
"start_url": "index.html",
|
||||||
"display": "fullscreen"
|
"display": "fullscreen"
|
||||||
}
|
}
|
||||||
@@ -32,8 +32,11 @@ DICT = load_dict()
|
|||||||
ROMAN = re.compile(r"M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})", re.I)
|
ROMAN = re.compile(r"M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})", re.I)
|
||||||
|
|
||||||
|
|
||||||
|
INGGLISH_NON_ROMAN = {"di", "li", "mi", "vi", "iv", "ci", "xi"}
|
||||||
|
|
||||||
|
|
||||||
def is_roman(s):
|
def is_roman(s):
|
||||||
return bool(s) and ROMAN.fullmatch(s) is not None
|
return bool(s) and s.lower() not in INGGLISH_NON_ROMAN and ROMAN.fullmatch(s) is not None
|
||||||
|
|
||||||
|
|
||||||
def xform_word(w):
|
def xform_word(w):
|
||||||
|
|||||||
Reference in new issue
Block a user