Reference articles on history, science, culture and more
Encyclopedia

Beta Code

ASCII representation format for ancient Greek

Beta Code was a method of representing, using only ASCII characters, the characters, accents, and formatting found in ancient Greek texts (and other ancient languages). Its aim was to be not merely a romanization of the Greek alphabet, but to represent faithfully a wide variety of source texts, including formatting as well as rare or idiosyncratic characters. For most applications, it has been obsoleted by Unicode.

Beta Code was developed by David W. Packard in the late 1970s and adopted by Thesaurus Linguae Graecae in 1981. It became the standard for encoding polytonic Greek and was also used by a number of other projects such as the Perseus Project, the Packard Humanities Institute, the Duke collection of Documentary Papyri, and the Greek Epigraphy Project at Cornell and Ohio State University. Beta Code can be easily converted to a variety of systems for display, most notably Unicode. Most of these projects have since converted their data to Unicode. For example, Perseus originally encoded all its Ancient Greek texts using Beta code, but now releases them as Unicode.

01Encoding

Greek alphabet

Standard Greek alphabet with Beta Code equivalents
Upper caseBeta CodeCharacter nameLower caseBeta Code
Α*AAlphaαA
Β*BBetaβB
Γ*GGammaγG
Δ*DDeltaδD
Ε*EEpsilonεE
Ϝ*VDigammaϝV
Ζ*ZZetaζZ
Η*HEtaηH
Θ*QThetaθQ
Ι*IIotaιI
Κ*KKappaκK
Λ*LLambdaλL
Μ*MMuμM
Ν*NNuνN
Ξ*CXiξC
Ο*OOmicronοO
Π*PPiπP
Ρ*RRhoρR
Σ*SMedial SigmaσS, S1
Final SigmaςS, S2, J
Ϲ*S3Lunate SigmaϲS3
Τ*TTauτT
Υ*UUpsilonυU
Φ*FPhiφF
Χ*XChiχX
Ψ*YPsiψY
Ω*WOmegaωW

Notes

  • Instead of upper-case Latin letters, lower-case Latin letters may also be used (e.g. a for α and *a for Α).
  • The TLG Beta Code Manual uses upper-case ASCII letters to represent Greek letters. A variant (used by the Perseus Project) uses lower-case ASCII letters instead. In both cases, the unadorned ASCII letter represents a lower-case Greek letter, and an asterisk must be added to indicate an upper-case Greek letter.
  • In general, one encoding character S for Greek sigma is sufficient; it is interpreted as a final sigma at the end of words or when followed by punctuation, and as a medial sigma in other positions. In cases where this auto-disambiguation is not correct, the specific codes S1 and S2 are available.
  • Some representations use J for the final sigma and S for the medial sigma. However, J is not supported/output by many applications such as Morpheus and uni2beta.

Punctuation

Punctuation
PunctuationBeta CodeName
..Period
,,Comma
·:Colon (Ano Stigme)
;;Question Mark
'Apostrophe
, _Dash
ʹ#Numeral (Keraia)

The character ' is used both for encoding an apostrophe and for adding a metrical breve to a vowel. The intention is disambiguated because the apostrophe is used in Greek only for elision, which normally occurs after a consonant.

Accents and diacritics

Polytonic Greek accents and diacritics
DiacriticBeta CodeNameExamplesCoded as
  ̓)Smooth breathingἐνE)N
  ̔(Rough breathingὁ, οἱO(, OI(
 ́/Acute accentπρόςPRO/S
  ͂=Circumflex accentτῶνTW=N
 ̀\Grave accentπρὸςPRO\S
  ̈+DiaeresisπροϊέναιPROI+E/NAI
  ͅ|Iota subscriptτῷTW=|
  ̄&MacronμαχαίρᾱςMAXAI/RA&S
  ̆'BreveμάχαιρᾰMA/XAIRA'

These are normally postfix operators, as in the examples above, but for capitalized words, accents come between the * and the letter. The documentation does not otherwise define a required or canonical order for accents. In some data sources, breathing is normally seen before a tonal accent, and one implementation defines a canonical order of breathing, accent, iota subscript. In some implementations, the ordering of the accents can determine the arrangement of the combining characters after conversion to Unicode. Many implementations do not implement macronization.

Watch videos about Beta CodeExplainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article Beta Code, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.