User's guide
Create an AtticOrthography
:
using AtticGreek, Orthography
attic = atticGreek()
typeof(attic)
AtticOrthography
It inherits from OrthographicSystem
:
typeof(attic) |> supertype
PolytonicGreek.GreekOrthography
So we can validate strings:
s = nfkc("έδοχσεν τôι δέμοι")
validstring(s, attic)
true
validstring("μῆνιν", attic)
false
And tokenize strings:
tokens = Orthography.tokenize(s, attic)
length(tokens)
3
tokens[1].tokencategory
Orthography.LexicalToken()
tokens[1].text
"έδοχσεν"