-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapertium-grc.grc-contract.twol
117 lines (94 loc) · 2.52 KB
/
apertium-grc.grc-contract.twol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
Alphabet
Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω
ς
ά έ ή ί ό ύ ώ
ᾶ ῆ ῖ ῦ ῶ
ᾳ ῃ ῳ
ᾴ ῄ ῴ
ᾷ ῇ ῷ
%{%+%}:0
;
Sets
PreVowel = α ά ᾶ ε έ ο ό ;
PreVowelα = α ά ᾶ ;
PreVowelε = ε έ ;
PreVowelη = η ή ῆ ;
PreVowelο = ο ό ;
PreVowelεο = ε έ ο ό ;
Rules
!!!!!!!!!!!!!!!
!!! First vowel
!!!!!!!!!!!!!!!
"α -> α{+long}"
ά:ᾶ <=> _ %{%+%}:0 [ α:0 | ε:0 | η:0 ] ;
except _ %{%+%}:0 [ ε:0 | α:0 ] ι:0 ;
"α -> ᾳ"
Vx:Vy <=> _ %{%+%}:0 [ α:0 ι:0 | ε:0 ι:0 | ᾳ:0 | ῃ:0 ] ;
where Vx in ( α ά ᾶ )
Vy in ( ᾳ ᾷ ᾷ )
matched ;
"α -> ω"
Vx:Vy <=> _ %{%+%}:0 [ ο:0 ( υ:0 ) | ω:0 ] ;
except _ %{%+%}:0 ο:0 ι:0 ;
where Vx in ( α ά ᾶ )
Vy in ( ω ῶ ῶ )
matched ;
"α -> ώ"
α:ώ <=> _ %{%+%}:0 [ ό:0 | ο:0 ύ:0 | ώ:0 ] ;
"α -> ῳ"
Vx:Vy <=> _ %{%+%}:0 [ ο:0 ι:0 | ῳ:0 ] ;
where Vx in ( α ά ᾶ )
Vy in ( ῳ ῷ ῷ )
matched ;
"ε -> η"
Vx:Vy <=> _ %{%+%}:0 [ α:0 | η:0 ] ;
except _ %{%+%}:0 α: ι: ;
where Vx in ( ε έ )
Vy in ( η ῆ )
matched ;
"ε -> ῃ"
Vx:Vy <=> _ %{%+%}:0 [ α:0 ι:0 | ᾳ:0 | ῃ:0 ] ;
where Vx in ( ε έ )
Vy in ( ῃ ῇ )
matched ;
"έ -> ε"
έ:ε <=> _ %{%+%}:0 [ ε: ( ι: ) | ο: ι: ] ;
"ε -> ου"
Vx:ο <=> _ %{%+%}:0 ο: ( υ: ) ;
where Vx in ( ε έ ) ;
"ε -> ω"
Vx:Vy <=> _ %{%+%}:0 ω:0 ;
where Vx in ( ε έ )
Vy in ( ω ῶ )
matched ;
!!!!!!!!!!!!!!!!
!!! Second vowel
!!!!!!!!!!!!!!!!
"following vowel"
Vx:0 <=> PreVowel: %{%+%}:0 _ ;
where Vx in ( α ω ᾳ ῃ ῳ ) ;
"following ε"
ε:0 <=> [ PreVowelα: | PreVowelη: ] %{%+%}:0 _ ;
PreVowelεο: %{%+%}:0 _ ι: ;
"following ο"
ο:0 <=> PreVowelα: %{%+%}:0 _ ;
PreVowelεο: %{%+%}:0 _ υ: ;
"following ε -> ι"
ε:Vx <=> Vy: %{%+%}:0 _ ;
except _ ι: ;
where Vx in ( ι ῖ )
Vy in ( ε έ )
matched ;
"following ο -> υ"
ο:Vx <=> Vy: %{%+%}:0 _ ;
except _ υ: ;
where Vx in ( υ ῦ υ ῦ )
Vy in ( ο ό ε έ )
matched ;
"diphthong ι"
ι:0 <=> α: %{%+%}: ? _ ;
"ι -> ῖ"
ι:ῖ <=> [ έ: | ό: ] %{%+%}:0 ε: _ ;
"υ -> ῦ"
υ:ῦ <=> [ έ: | ό: ] %{%+%}:0 ο: _ ;