transmutationist commited on
Commit
492cd0f
·
verified ·
1 Parent(s): f8f7269

spore v000001 — fitness=0.5000

Browse files
README.md CHANGED
@@ -19,7 +19,7 @@ library_name: custom
19
  pipeline_tag: feature-extraction
20
  ---
21
 
22
- # ZEDEC & ZEDEI — Companion — v000000
23
 
24
  **36N9 GENETICS LLC · PO BOX 6 · Calpine, California**
25
 
 
19
  pipeline_tag: feature-extraction
20
  ---
21
 
22
+ # ZEDEC & ZEDEI — Companion — v000001
23
 
24
  **36N9 GENETICS LLC · PO BOX 6 · Calpine, California**
25
 
enochian/cube_state.fcp168 CHANGED
Binary files a/enochian/cube_state.fcp168 and b/enochian/cube_state.fcp168 differ
 
enochian/dictionary.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:747ec3d99403b64aa86c7b60eb12ab00124409abd1dd2186a3409fa1abc9c730
3
- size 29645567
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5037aedd5bd5e4b20e5936bb71f67e26fd7c7499ee4eb658bd1f44cd9c07f607
3
+ size 111893686
enochian/encyclopedia.md CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a714fc10876024f5d207cc1316e42cdabb01d24cd687151958764207463e21e0
3
- size 20422969
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea495812bbca92e986899c19cf84b86128115328ef9f1da64f47f37fb797ee09
3
+ size 3969878
enochian/fonts/Enochian-BGlG.otf ADDED
Binary file (7.05 kB). View file
 
enochian/fonts/EnochianPlain-10GB.ttf ADDED
Binary file (15.2 kB). View file
 
enochian/fonts/Enochianflip-DOAEd.otf ADDED
Binary file (7.83 kB). View file
 
enochian/fonts/EnochianflipPlain-p75xR.ttf ADDED
Binary file (12.1 kB). View file
 
enochian/fonts/LICENSE_FONTS.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Enochian Font Freeware License (redistributed verbatim in each spore)
2
+ ======================================================================
3
+
4
+ --- enochian-font (fontspace.com/enochian-font-f6183) ---
5
+ license: Freeware, Non-Commercial
6
+ link: https://www.fontspace.com/enochian-font-f6183
7
+ --- enochian-flip-font (fontspace.com/enochian-flip-font-f73000) ---
8
+ license: Freeware, Non-Commercial
9
+ link: https://www.fontspace.com/enochian-flip-font-f73000
10
+ Both fonts are freeware for non-commercial use. They are redistributed
11
+ here unchanged. Commercial use requires contacting the original authors.
enochian/fonts_renderer.py ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ ZEDEC & ZEDEI AI — Enochian Font Renderer (alternating-endianness aware)
3
+ 36N9 GENETICS LLC · PO BOX 6 · CALPINE, CALIFORNIA
4
+
5
+ Rule:
6
+ Even-indexed bytes in the UBH-168 payload use the NORMAL Enochian font.
7
+ Odd-indexed bytes use the FLIP (mirror) Enochian font.
8
+
9
+ This physically manifests the alternating-endianness decoding rule at the
10
+ glyph layer. Any renderer that honours the returned (font_family, text)
11
+ pairs (PIL, matplotlib, browser CSS, etc.) will show the flip glyph
12
+ wherever the data was read little-endian.
13
+ """
14
+
15
+ from __future__ import annotations
16
+ from dataclasses import dataclass
17
+ from pathlib import Path
18
+ from typing import Iterator, Sequence
19
+
20
+ ASSETS = Path(__file__).parent / "enochian_fonts_assets"
21
+
22
+ NORMAL_OTF = ASSETS / "Enochian-BGlG.otf"
23
+ NORMAL_TTF = ASSETS / "EnochianPlain-10GB.ttf"
24
+ FLIP_OTF = ASSETS / "Enochianflip-DOAEd.otf"
25
+ FLIP_TTF = ASSETS / "EnochianflipPlain-p75xR.ttf"
26
+
27
+
28
+ @dataclass
29
+ class RenderSpan:
30
+ font_path: str # absolute path to .otf or .ttf
31
+ font_family: str # "Enochian" or "Enochian-Flip"
32
+ text: str # raw Latin chars the font maps to glyphs
33
+
34
+
35
+ def render_spans(
36
+ latin_text: str,
37
+ byte_indices: Sequence[int] | None = None,
38
+ ) -> Iterator[RenderSpan]:
39
+ """
40
+ Yield spans for `latin_text` paired with the correct font family based on
41
+ the byte index each character lives in. If no byte_indices given,
42
+ characters are mapped 1:4 (four bases per byte — matches the alternating-
43
+ endianness codon rule in genetic_ir_scaffold.py).
44
+ """
45
+ if byte_indices is None:
46
+ byte_indices = [i // 4 for i in range(len(latin_text))]
47
+ if len(byte_indices) != len(latin_text):
48
+ raise ValueError("byte_indices length must match latin_text length")
49
+
50
+ cur_flip = None
51
+ buf: list[str] = []
52
+ for ch, b in zip(latin_text, byte_indices):
53
+ is_flip = (b % 2 == 1)
54
+ if cur_flip is None or is_flip == cur_flip:
55
+ buf.append(ch)
56
+ cur_flip = is_flip
57
+ else:
58
+ yield _span("".join(buf), cur_flip)
59
+ buf = [ch]
60
+ cur_flip = is_flip
61
+ if buf and cur_flip is not None:
62
+ yield _span("".join(buf), cur_flip)
63
+
64
+
65
+ def _span(text: str, is_flip: bool) -> RenderSpan:
66
+ if is_flip:
67
+ return RenderSpan(str(FLIP_TTF), "Enochian-Flip", text)
68
+ return RenderSpan(str(NORMAL_TTF), "Enochian", text)
69
+
70
+
71
+ def preview_html(latin_text: str) -> str:
72
+ """Return a tiny HTML preview embedding both fonts via @font-face."""
73
+ parts = []
74
+ parts.append("""<!doctype html><meta charset="utf-8">
75
+ <style>
76
+ @font-face {{ font-family:'Enochian'; src:url('{nf}'); }}
77
+ @font-face {{ font-family:'Enochian-Flip'; src:url('{ff}'); }}
78
+ .en {{ font-family:'Enochian'; font-size:48px; }}
79
+ .enf {{ font-family:'Enochian-Flip'; font-size:48px; }}
80
+ body {{ font-family: -apple-system, sans-serif; padding:2em; }}
81
+ </style>""".format(nf=NORMAL_TTF.name, ff=FLIP_TTF.name))
82
+ parts.append(f"<h3>Latin input: <code>{latin_text}</code></h3>")
83
+ parts.append("<p>")
84
+ for span in render_spans(latin_text):
85
+ cls = "enf" if "Flip" in span.font_family else "en"
86
+ parts.append(f"<span class='{cls}'>{span.text}</span>")
87
+ parts.append("</p>")
88
+ return "".join(parts)
89
+
90
+
91
+ def copy_assets_to(dst_dir: Path) -> list[Path]:
92
+ """Copy the four font files + LICENSE_FONTS.txt into dst_dir."""
93
+ import shutil
94
+ dst_dir.mkdir(parents=True, exist_ok=True)
95
+ out = []
96
+ for src in (NORMAL_OTF, NORMAL_TTF, FLIP_OTF, FLIP_TTF,
97
+ ASSETS / "LICENSE_FONTS.txt"):
98
+ p = dst_dir / src.name
99
+ shutil.copy2(src, p)
100
+ out.append(p)
101
+ return out
102
+
103
+
104
+ if __name__ == "__main__":
105
+ txt = "ZEDECZEDEIIAD"
106
+ print(f"Rendering '{txt}' into alternating Enochian + Flip spans:\n")
107
+ for span in render_spans(txt):
108
+ print(f" [{span.font_family:16}] {span.text!r}")
109
+ print("\nAll four font files present:",
110
+ all(p.exists() for p in (NORMAL_OTF, NORMAL_TTF, FLIP_OTF, FLIP_TTF)))
enochian/thesaurus.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
enochian/transliteration.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ ZEDEC & ZEDEI AI — Enochian Transliteration Table
3
+ 36N9 GENETICS LLC · PO BOX 6 · CALPINE, CALIFORNIA
4
+
5
+ Each Enochian letter carries:
6
+ - canonical Enochian name (Dee's orthography)
7
+ - Latin transliteration letter
8
+ - IPA phonetic
9
+ - English gloss of the letter-name
10
+ - Sanskrit phonetic cognate
11
+ - Gematria (Golden Dawn canonical)
12
+ - Codepoint used by the Enochian (normal) TTF/OTF font
13
+ - Codepoint used by the Enochian-Flip font (mirror order)
14
+
15
+ The Enochian fonts installed under `enochian_fonts_assets/` were built by
16
+ fontspace.com authors and map Enochian glyphs into the printable ASCII
17
+ range A..Z (+ `a..z` copies). The "flip" variant is the mirror image,
18
+ used automatically when rendering a segment that lives in an
19
+ odd-indexed byte under the alternating-endianness rule.
20
+ """
21
+
22
+ from __future__ import annotations
23
+ from dataclasses import dataclass, asdict
24
+ import json
25
+
26
+ @dataclass
27
+ class EnochianLetter:
28
+ enoch_name: str
29
+ letter: str # Latin transliteration (21 letters)
30
+ english_gloss: str
31
+ ipa: str
32
+ sanskrit: str
33
+ gematria: int
34
+ font_char: str # char that renders to this glyph in the normal font
35
+ flip_char: str # char that renders to this glyph in the flip font
36
+
37
+
38
+ # 21 Enochian letters in canonical order.
39
+ # Font glyph mappings follow the fontspace "Enochian" family (A..Z maps
40
+ # 1:1 to the visual glyph); the flip family uses the same character codes
41
+ # but produces mirror-imaged glyphs.
42
+ ENOCHIAN_LETTERS: list[EnochianLetter] = [
43
+ EnochianLetter("Un", "A", "Beginning", "ʌ", "अ (a)", 6, "A", "A"),
44
+ EnochianLetter("Pa", "B", "Father", "b", "ब (ba)", 5, "B", "B"),
45
+ EnochianLetter("Veh", "C", "Daughter", "k/s", "च (ca)", 3, "C", "C"),
46
+ EnochianLetter("Gal", "D", "Gate", "d", "द (da)", 4, "D", "D"),
47
+ EnochianLetter("Graph", "E", "Inscribed", "e", "ए (e)", 9, "E", "E"),
48
+ EnochianLetter("Orth", "F", "Breath", "f", "फ (pha)", 6, "F", "F"),
49
+ EnochianLetter("Ged", "G", "Knot", "g", "ग (ga)", 1, "G", "G"),
50
+ EnochianLetter("Na-hath", "H", "Flame", "h", "ह (ha)", 5, "H", "H"),
51
+ EnochianLetter("Gon", "I", "Star", "i/j", "इ (i)", 3, "I", "I"),
52
+ EnochianLetter("Ur", "L", "Bond", "l", "ल (la)", 8, "L", "L"),
53
+ EnochianLetter("Tal", "M", "Double", "m", "म (ma)", 9, "M", "M"),
54
+ EnochianLetter("Drun", "N", "Pathway", "n", "न (na)", 8, "N", "N"),
55
+ EnochianLetter("Med", "O", "Thirtieth", "o", "ओ (o)", 6, "O", "O"),
56
+ EnochianLetter("Mals", "P", "Hammer", "p", "प (pa)", 5, "P", "P"),
57
+ EnochianLetter("Ger", "Q", "Turning", "kw", "क (ka)", 10, "Q", "Q"),
58
+ EnochianLetter("Don", "R", "Axis", "ɾ", "र (ra)", 3, "R", "R"),
59
+ EnochianLetter("Fam", "S", "Power", "s", "स (sa)", 3, "S", "S"),
60
+ EnochianLetter("Gisg", "T", "Foot", "t", "त (ta)", 9, "T", "T"),
61
+ EnochianLetter("Vau", "U", "Vessel", "u/v", "उ (u)", 4, "U", "U"),
62
+ EnochianLetter("Pal", "X", "Crossing", "ks", "क्ष (kṣa)",1, "X", "X"),
63
+ EnochianLetter("Ceph", "Z", "Serpent", "z", "ज़ (za)", 7, "Z", "Z"),
64
+ ]
65
+
66
+ LETTER_BY_LATIN = {L.letter: L for L in ENOCHIAN_LETTERS}
67
+ GEMATRIA = {L.letter: L.gematria for L in ENOCHIAN_LETTERS}
68
+ LATIN_ORDER = "".join(L.letter for L in ENOCHIAN_LETTERS)
69
+
70
+
71
+ def transliterate(latin_text: str) -> str:
72
+ """English/Latin → Enochian-rendered string using font_char codes."""
73
+ return "".join(LETTER_BY_LATIN[ch].font_char if ch in LETTER_BY_LATIN
74
+ else ch for ch in latin_text.upper())
75
+
76
+
77
+ def gematria_of(word: str) -> int:
78
+ return sum(GEMATRIA.get(c.upper(), 0) for c in word)
79
+
80
+
81
+ def phonetic(word: str) -> str:
82
+ return " ".join(LETTER_BY_LATIN[c].ipa for c in word.upper()
83
+ if c in LETTER_BY_LATIN)
84
+
85
+
86
+ def sanskrit(word: str) -> str:
87
+ return "".join(LETTER_BY_LATIN[c].sanskrit for c in word.upper()
88
+ if c in LETTER_BY_LATIN)
89
+
90
+
91
+ def export_alphabet_json(path) -> None:
92
+ import pathlib
93
+ pathlib.Path(path).write_text(
94
+ json.dumps({
95
+ "letters": [asdict(L) for L in ENOCHIAN_LETTERS],
96
+ "latin_order": LATIN_ORDER,
97
+ "count": len(ENOCHIAN_LETTERS),
98
+ "notes": "Enochian alphabet per John Dee, 21 letters. "
99
+ "Gematria follows Golden Dawn attribution. "
100
+ "Fonts render via enochian_fonts_assets/.",
101
+ }, indent=2, ensure_ascii=False))
102
+
103
+
104
+ if __name__ == "__main__":
105
+ for w in ("IAD", "ZIRDO", "BABALON", "ZEDEC"):
106
+ print(f"{w:10} gem={gematria_of(w):3} IPA=[{phonetic(w)}] "
107
+ f"SKT={sanskrit(w)} font={transliterate(w)}")
manifest.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
- "spore_id": "424b569b86f1462994e7459b8ba451a7",
3
  "parent_id": null,
4
- "born_ns": 1777324028194859930,
5
  "cycle": 0,
6
  "phi_phase": 0.6180339887498948,
7
  "ir_tuning_hz": 544.2,
 
1
  {
2
+ "spore_id": "fcfc12e0f8ee43bd9760edc731f041cc",
3
  "parent_id": null,
4
+ "born_ns": 1777324745597241734,
5
  "cycle": 0,
6
  "phi_phase": 0.6180339887498948,
7
  "ir_tuning_hz": 544.2,
seed.fcp168 CHANGED
Binary files a/seed.fcp168 and b/seed.fcp168 differ
 
spore.tar.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6c177e34873f0f1fb5d87b4275ab1aa1986b5abf5477c66ad9de4b83d0d497e0
3
  size 904
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9c6e2507403ac532c8a61fe24c25257a01976bc368a0407be861723663d180a
3
  size 904