Skip to content

aegean.scripts.linearb

linearb

Linear B script plugin.

LinearB

Bases: Script

Linear B — the Mycenaean Greek syllabary.

load_damos

load_damos() -> Any

Load the DAMOS Linear B corpus as a Corpus (opt-in, fetched).

Fetches the damos-corpus release asset (a few MB JSON; sha256-pinned; CC BY-NC-SA 4.0 — the NonCommercial obligation passes to you) on first use, then loads offline from the cache. One Document per tablet, carrying the DAMOS transliteration (verbatim in transcription) tokenised into words / numerals / logograms, with the site, chronology, scribal hand (meta.scribe, e.g. "117"), find context (meta.findspot), and object class (meta.support: tablet / stirrup jar / nodule / label) in the metadata — so corpus.filter(scribe="117") and scribal-hand keyness work directly. Cite DAMOS in academic work (see NOTICE).

load_epidoc_corpus

load_epidoc_corpus(source: str | Path) -> Corpus

Load a user-supplied EpiDoc Linear B corpus into a Corpus.

parse_epidoc

parse_epidoc(source: str | Path) -> list[Document]

Parse a DAMOS-style EpiDoc file, or a directory of them, into Documents.

gloss

gloss(word: str) -> str | None

A short English gloss for a Linear B word, or None if it is not in the lexicon.

greek_reading

greek_reading(word: str) -> tuple[str, str] | None

The Classical Greek (lemma, gloss) for a transliterated Linear B word, or None.

With the LSJ backend active (aegean.greek.use_lsj), pass the returned lemma to aegean.greek.lookup for the full entry.

word_to_phonetic

word_to_phonetic(word: str, overrides: dict[str, str] | None = None) -> str

Convert a hyphenated Linear B word to its phonetic Latin form.

Unknown signs fall through lowercased. overrides lets a researcher test alternative sign values.