From c19c727f40ed6e688bf15e24b084a2097695a390 Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Tue, 13 Nov 2018 17:01:35 +0100 Subject: [PATCH] (Ara) yet another hamza fix --- src/arabic/OrthoAra.gf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/arabic/OrthoAra.gf b/src/arabic/OrthoAra.gf index edf4f0f81..8bd8f4f3c 100644 --- a/src/arabic/OrthoAra.gf +++ b/src/arabic/OrthoAra.gf @@ -34,10 +34,16 @@ oper l@(""|"ال") + ("أ"|"أَ") + #hamza + tail => l + "آ" + tail; l@(""|"ال") + #hamza + v@("َ"|"ُ") + tail => l + "أ" + v + tail; l@(""|"ال") + #hamza + v@("ِ") + tail => l + "إ" + v + tail; - head + v1@("ِ"|"ُ"|"َ"|"ْ"|"ا"|"ي"|"و") + head + v1@(#vow|"ْ"|"ا"|"ي"|"و") + #hamza + v2@(#vow|"ْ") + tail => - case v2 of { "ْ" => head + v1 + tHmz v1 + tail ; -- unsure about this /IL - _ => head + v1 + tHmz v1 + v2 + tail } ; + case v2 of { "ْ" => head + v1 + bHmz v1 v2 + tail ; -- unsure about this /IL + _ => head + v1 + bHmz v1 v2 + v2 + tail } ; + head + v1@(#vow|"ْ"|"ا"|"ي"|"و") -- the same but it ends in vowel + + #hamza + v2@(#vow|"ْ") => + case v2 of { "ْ" => head + v1 + tHmz v1 ; + _ => head + v1 + tHmz v1 + v2 } ; + head + v1@(#vow|"ْ"|"ا"|"ي"|"و") -- the same but it ends without vowel + + #hamza => head + v1 + tHmz v1 ; head + #hamza + tail => head + (bHmz (dp 2 head) (take 2 tail)) + tail; --last head , take 1 tail _ => word