Skip to content
greek conversionnext

greek conversion

Convert Ancient and Modern Greek between Greek script, Beta Code, and Latin script, with standards‑based presets and information‑loss diagnostics.

import { convert } from "@humanities/greek-conversion";
// Ancient Greek, in the SBL academic style
convert("Ἕλλησιν ἐγένετο", "greek", "transliteration");
// → Héllēsin egéneto
// Beta Code, as the TLG writes it
convert("*(/ELLHSIN E)GE/NETO", "beta-code", "greek");
// → Ἕλλησιν ἐγένετο
// Modern Greek, as passports and maps write it
convert("Η Αθήνα είναι η πρωτεύουσα", "greek", "transliteration", {
preset: "iso-843-type-2",
});
// → I Athína eínai i protévousa