A library for working with Greek in the pre-403 BCE Attic alphabet > Orthography of Attic Greek >

Working with strings of Attic Greek

Creating valid strings

The specified representation of Attic strings mapped either to ASCII characters only or to the Greek range of Unicode allows for unambiguous comparison and sorting of Attic strings. It is convenient to support the following equivalent forms of input when creating an Attic string:

Examples of constructing Attic strings

The string DEMOS is a valid input form to create an Attic string in the ASCII mapping.

The string δεμος is a valid input form to create an Attic string in the mapping to the Greek range of Unicode.

The string Demos is a valid input form to create an Attic string in the ASCII mapping.

The string Δεμος is a valid input form to create an Attic string in the mapping to the Greek range of Unicode.

The string demos is a valid input form to create an Attic string in the ASCII mapping..

The string ΔΕΜΟΣ is a valid input form to create an Attic string in the mapping to the Greek range of Unicode.

String output of valid strings

Either of the specified representations in ASCII-only characters or in the Greek range of Unicode can be generated for a given Attic string.

Examples: generating ASCII-only strings

Attic strings created from the Greek range of Unicode can also be represented in the ASCII-only mapping:

Constructed from As ASCII string
δεμοςDEMOS
ΔεμοςDEMOS
ΔΕΜΟΣDEMOS
ΔΕ_ΜΟΣDE_MOS
δε=μοςDE=MOS
hοδόςHODO/S

Attic strings created from accepted ASCII input can be represented in the fully specified ASCII-only mapping:

Constructed from As ASCII string
demosDEMOS
DemosDEMOS
DEMOSDEMOS
de_mosDE_MOS
de=mosDE=MOS

Examples: generating strings in the Greek range of Unicode

Attic strings created from ASCII values can also be represented in the mapping to the Greek range of Unicode:

Constructed from As string
DEMOSδεμος
demosδεμος
Demosδεμος
DEMOSδεμος
de_mosδε_μος
de=mosδε͂μος
HODO/Shοδός

Attic strings created from accepted Greek Unicode input can be represented in the fully specified mapping to the Greek range of Unicode:

Constructed from As ASCII string
δεμοςδεμος
Δεμοςδεμος
ΔΕΜΟΣδεμος
ΔΕ_ΜΟΣδε_μος
Hοδόςhοδός