Python
Choosing a preset
A preset bundles the options that implement one published convention, so that a single name selects a romanization standard or a Beta Code dialect. This page lists the eight presets, compares how each one writes Greek and what it loses, and shows how your own options refine one; each preset states its references and what it leaves out.
The presets
Section titled “The presets”Eight presets cover the common library, scholarly, and interchange conventions:
| Preset | Target | Greek | For |
|---|---|---|---|
ala-lc-ancient |
transliteration | Ancient | Library romanization, Medieval Greek included (before 1454) |
ala-lc-modern |
transliteration | Modern | Library romanization after 1453, with its contextual digraphs |
bnf-ancient |
transliteration | Ancient | BnF/ISO-based romanization for cataloguing |
iso-843-type-1 |
transliteration | Ancient, Modern | Strict, reversible transliteration; also ELOT 743 |
iso-843-type-2 |
transliteration | Modern | Transcription by pronunciation, as ELOT 743: passports, road signs, maps |
sbl-general |
transliteration | Ancient | Biblical studies, as the SBL Handbook writes Greek: no accent |
tlg-core |
Beta Code | Ancient | Uppercase-ASCII TLG Beta Code for polytonic interchange |
perseus |
Beta Code | Ancient | Lowercase-ASCII Beta Code for Perseus and Morpheus |
Without a preset, the transliteration is the library’s own: the letters of the
SBL Handbook, with the accents, iota subscript, diaeresis, and quantity marks
that the Handbook leaves out. The Handbook gives Greek a single style, for
general readers, which sbl-general writes; for academic readers, it asks for
Greek characters.
Select one with preset:
from greek_conversion import convert
convert( "Φίληβος ἢ Περὶ ἡδονῆς", "greek", "transliteration", preset="ala-lc-ancient",)# → Philēbos ē Peri hēdonēs
convert("Βίος Μπάλα", "greek", "transliteration", preset="ala-lc-modern")# → Vios Bala
convert( "Εύβοια, Ευρώπη, αυτός", "greek", "transliteration", preset="iso-843-type-2",)# → Évvoia, Evrópi, aftósType 2 follows pronunciation and is not reversible: convert_detailed() reports
what it loses, such as eta written i or the upsilon of ευ written v.
What each preset loses compares the nine on a
monotonic and a polytonic text, and the pages on
Ancient,
Byzantine and Medieval, and
Modern Greek say which ones apply to each.
How each preset writes Greek
Section titled “How each preset writes Greek”The conventions differ on a few letters, on the vowel pairs with upsilon, on
the digraphs of Modern Greek, and on the marks they keep. These tables give
what each transliteration preset returns; the two Beta Code presets write the
same codes, tlg-core in capitals and perseus in lowercase, but for yot
(#401 and j).
Letters
| Preset | β |
η |
υ |
φ |
χ |
ω |
|---|---|---|---|---|---|---|
| No preset (the default) | b |
ē |
y |
ph |
ch |
ō |
ala-lc-ancient |
b |
ē |
y |
ph |
ch |
ō |
ala-lc-modern |
v |
ē |
y |
ph |
ch |
ō |
bnf-ancient |
b |
ē |
y |
ph |
ch |
ō |
iso-843-type-1 |
v |
ī |
y |
f |
ch |
ō |
iso-843-type-2 |
v |
i |
y |
f |
ch |
o |
sbl-general |
b |
ē |
y |
ph |
ch |
ō |
Vowel pairs with upsilon
| Preset | αυτός |
ευχή |
ούτε |
|---|---|---|---|
| No preset (the default) | autós |
euchḗ |
oúte |
ala-lc-ancient |
autos |
euchē |
oute |
ala-lc-modern |
autos |
euchē |
oute |
bnf-ancient |
autós |
euchḗ |
oúte |
iso-843-type-1 |
autós |
euchī́ |
oúte |
iso-843-type-2 |
aftós |
efchí |
oúte |
sbl-general |
autos |
euchē |
oute |
Gamma before a velar, and the digraphs of Modern Greek
| Preset | άγγελος |
αγκαλιά |
μπαμπάς |
ντομάτα |
|---|---|---|---|---|
| No preset (the default) | ángelos |
ankaliá |
mpampás |
ntomáta |
ala-lc-ancient |
angelos |
ankalia |
mpampas |
ntomata |
ala-lc-modern |
angelos |
ankalia |
bampas |
d̲omata |
bnf-ancient |
ángelos |
ankaliá |
mpampás |
ntomáta |
iso-843-type-1 |
ággelos |
agkaliá |
mpampás |
ntomáta |
iso-843-type-2 |
ángelos |
agkaliá |
bampás |
ntomáta |
sbl-general |
angelos |
ankalia |
mpampas |
ntomata |
Breathings, iota subscript, and accents
| Preset | ἁ |
ἀ |
ᾳ |
ά |
ῶ |
|---|---|---|---|---|---|
| No preset (the default) | ha |
a |
a̧ |
á |
ō̃ |
ala-lc-ancient |
ha |
a |
a |
a |
ō |
ala-lc-modern |
ha |
a |
a |
a |
ō |
bnf-ancient |
ha |
a̓ |
a̧ |
á |
ō̂ |
iso-843-type-1 |
ha |
’a |
a̧ |
á |
ō̂ |
iso-843-type-2 |
ha |
’a |
a̧ |
á |
ô |
sbl-general |
ha |
a |
a |
a |
ō |
Every key behind these spellings, with its values and the presets that select each, is in the option reference.
What each preset loses
Section titled “What each preset loses”A convention that drops marks or merges letters does not convert back to the
Greek it was given. The table says what convert_detailed() reports as lost
when each preset writes two reference texts, one monotonic and one polytonic.
It is computed from the library, and covers these two texts only: a letter
form such as ϐ, or a hiatus marked by a breathing alone, adds losses of its
own (see Knowing what a conversion loses).
- Monotonic: Η Αθήνα είναι η πρωτεύουσα της Ελλάδας· ο Ταΰγετος, το προϊόν, ευχαριστώ, αυτός, άγγελος, μπαμπάς.
- Polytonic: Ἐν ἀρχῇ ἦν ὁ λόγος, καὶ ὁ λόγος ἦν πρὸς τὸν θεόν· Ῥόδος, ᾠδή, εὖ, ἄϋλος, κἀγώ.
| Preset | Lost from the monotonic text | Lost from the polytonic text |
|---|---|---|
| No preset (the default) | The absence of a breathing | Coronis |
ala-lc-ancient |
Accents; diaeresis | Accents; smooth breathing; iota subscript; coronis |
ala-lc-modern |
Accents; diaeresis | Accents; smooth breathing; iota subscript; coronis |
bnf-ancient |
Nothing | Nothing |
iso-843-type-1 |
Nothing | Nothing |
iso-843-type-2 |
The letters eta, omega, upsilon | The letters eta, omega |
perseus |
Nothing | Nothing |
sbl-general |
Accents; diaeresis | Accents; smooth breathing; iota subscript; coronis |
tlg-core |
Nothing | Nothing |
“Nothing” means that the output converts back to the same text under the same
preset. Among the transliterations, bnf-ancient and iso-843-type-1 convert
both texts back.
Refine a preset
Section titled “Refine a preset”Your own options override only the fields they name; the rest of the preset stays in force. Defaults apply first, then the preset, then your options:
from greek_conversion import convert
convert( "Βίος Μπάλα", "greek", "transliteration", preset="ala-lc-modern", transliteration={"beta": "b"},)# → Bios BalaReferences and limits
Section titled “References and limits”Each preset documents its references, its coverage, and what it does not implement, both in the preset reference and at run time:
from greek_conversion import ( DEFAULT_CONVERSION_OPTIONS, get_preset_metadata, resolve_conversion_options,)
get_preset_metadata("bnf-ancient")["coverage"] # → partialDEFAULT_CONVERSION_OPTIONS["transliteration"]["long_vowels"] # → macronresolve_conversion_options(preset="sbl-general")["diacritics"]["accents"]# → removeA preset implements what can be done mechanically from the text. It does not supply a rough breathing missing from the source, or anything else that needs a dictionary; the preset behavior audit lists those limits for each standard.