mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
(Pes) WIP vowels for TTS support
Vowels are in Str variables, if you want vowels, only change the value of the variable in one place. Default value is empty string.
This commit is contained in:
@@ -21,6 +21,11 @@ oper
|
||||
ZWNJ : Str = "" ;
|
||||
zwnj : Str -> Str -> Str = \s1,s2 -> s1 + ZWNJ + s2 ;
|
||||
|
||||
-- kasre : Str = "ِ" ; -- To enable vowels for TTS input
|
||||
-- fatha : Str = "َ" ;
|
||||
kasre,fatha : Str = [] ;
|
||||
|
||||
|
||||
---- Nouns
|
||||
param
|
||||
Animacy = Animate | Inanimate ;
|
||||
@@ -55,21 +60,17 @@ oper
|
||||
oper
|
||||
|
||||
|
||||
mkPossStem : Str -> Str = \str ->
|
||||
|
||||
case str of {
|
||||
_+ "اه" => str ;
|
||||
_+ "او" => str ;
|
||||
_+ "وه" => str ;
|
||||
_+ ("ا"|"و") => str + "ی" ;
|
||||
_+ "ه" => zwnj str "ا" ;
|
||||
_ => str } ;
|
||||
mkPossStem : Str -> Str = \str ->
|
||||
case str of {
|
||||
_ + ("اه"|"او"|"وه")
|
||||
=> str + fatha ;
|
||||
_ + ("ا"|"و") => str + fatha + "ی" ;
|
||||
_ + "ه" => zwnj str "ا" ;
|
||||
_ => str + fatha } ;
|
||||
|
||||
|
||||
|
||||
mkEzafe : Str -> Str = \str ->
|
||||
--let kasre = "ِ" in -- TODO: Eventually use this
|
||||
let kasre = "" in
|
||||
case str of {
|
||||
st + "اه" => str + kasre ;
|
||||
st + "وه" => str + kasre ;
|
||||
|
||||
Reference in New Issue
Block a user