Ancient Greek
The library was first written for Ancient Greek. It reads polytonic Greek with its accents, breathings, iota subscripts, coronides, and quantity marks, and writes it in Beta Code or after the romanizations that classicists and libraries use. This page helps you choose a convention, says which ones convert back, and gathers the tasks proper to ancient texts.
What is read
Section titled “What is read”Polytonic Greek is read from Unicode, composed or decomposed, and from Beta
Code as the TLG and Perseus write it. Besides the twenty-four letters, the
library knows digamma, yot, stigma, the two koppas, and sampi; the lunate
sigma and the symbol forms such as ϐ and ϑ, which it reads as their
letters; Greek punctuation; and the alphabetic numerals that a keraia marks.
import { convert } from "@humanities/greek-conversion";
convert("mh=nin a)/eide qea/", "beta-code", "greek"); // → μῆνιν ἄειδε θεάconvert("ϝάναξ ϙόρινθος", "greek", "transliteration"); // → wánax ḳórinthosChoose a convention
Section titled “Choose a convention”| To write | Preset | εὐχῇ |
|---|---|---|
| A scholarly transliteration, with accents and length | No preset (the default) | euchȩ̄̃ |
| The SBL Handbook’s transliteration, without accents | sbl-general |
euchē |
| Library catalogue records, after the Library of Congress | ala-lc-ancient |
euchē |
| Catalogue records of French libraries, after the BnF | bnf-ancient |
eu̓chȩ̄̂ |
| The international transliteration, ISO 843 | iso-843-type-1 |
’euchī̧̂ |
| Beta Code as the TLG writes it | tlg-core |
EU)XH=| |
| Beta Code for Perseus and Morpheus | perseus |
eu)xh=| |
import { convert } from "@humanities/greek-conversion";
const iliad = "μῆνιν ἄειδε θεὰ Πηληϊάδεω Ἀχιλῆος";
convert(iliad, "greek", "transliteration");// → mē̃nin áeide theà Pēlēïádeō Achilē̃os
convert(iliad, "greek", "transliteration", { preset: "ala-lc-ancient" });// → mēnin aeide thea Pēlēiadeō Achilēos
convert(iliad, "greek", "beta-code", { preset: "tlg-core" });// → MH=NIN A)/EIDE QEA\ *PHLHI+A/DEW *)AXILH=OSEvery convention is read as it is written: give the same preset to convert its output back to Greek. Each preset states its references and what it does not implement in the preset reference.
What converts back
Section titled “What converts back”Beta Code notes every mark of polytonic Greek: its output converts back to the same text, the symbol forms apart. The transliterations differ:
- the default writes no smooth breathing and reads one back on an initial vowel, so that it converts back but for the coronis and the few spellings listed under Limits;
bnf-ancientwrites the smooth breathing and the coronis as marks of their own, which read back;iso-843-type-1writes the smooth breathing as an apostrophe, which does not read back as a breathing;sbl-generalandala-lc-ancientdrop the accents and most other marks, as their conventions ask.
What each preset loses compares
them on a reference text, and convertDetailed() reports the losses of your
own. A crasis, for example, loses its coronis by default, and keeps it under
coronis: "greek":
import { convertDetailed } from "@humanities/greek-conversion";
const crasis = "κἀγὼ τοὔνομα";
const plain = convertDetailed(crasis, "greek", "transliteration");plain.output; // → kagṑ toúnomaplain.losses.map((loss) => loss.diacritic); // → ["coronis","coronis"]
const marked = convertDetailed(crasis, "greek", "transliteration", { transliteration: { coronis: "greek" },});marked.output; // → ka᾽gṑ toú᾽nomamarked.lossy; // → falseTasks proper to ancient texts
Section titled “Tasks proper to ancient texts”- Elision. Greek output keeps an elided consonant as the source writes
it (
ἀπ’ οὗ), and aspirates it on demand: see Aspirate an elided consonant. - Iota adscript. To write
τῶιforτῷ, orὨιδῇafter a capital, see Write the iota on the line. - Letter forms. The lunate sigma,
ϐ, andϑare kept in Greek output and can be folded: see Keep or fold letter forms. - Beta Code. For capitals, quantity, and the TLG’s codes, see Write Beta Code the TLG way.
- Numerals.
text.numerals: "decimal"writes a marked alphabetic numeral as a number, as the ALA-LC presets do; Punctuation and numerals says what is read as one:
import { convert } from "@humanities/greek-conversion";
convert("βιβλίον γʹ, ἔτος ͵αωκαʹ", "greek", "transliteration", { text: { numerals: "decimal" },});// → biblíon 3, étos 1821Limits
Section titled “Limits”- What the text does not write. A breathing left out, as in capitals, is
not supplied: under
ala-lc-ancient,ΗΣΙΟΔΟΥgivesĒSIODOU, where the table expectsHēsiodou. - A hiatus marked by a breathing alone.
Ἀίδηςis transliteratedAídēs, which reads back as the diphthong ofΑἴδης; the loss is reported (displaced-diacritic), andbnf-ancientkeeps the distinction. - Symbol forms in Beta Code. Beta Code notes the lunate sigma, but not
ϐorϑ, which convert back asβandθ. - Greek mixed with another language.
convert()converts the whole text, andconvertGreekPassages()its Greek passages only: see Text in another language.