From: ntakahas Date: Thu, 25 Mar 2010 10:28:00 +0000 (+0000) Subject: (stage 1): Use iteration rather than recursive for reordering. X-Git-Tag: REL-1-6-0~18 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=4a0d1a45579980bbc4e33b7b8543fb7c2e43aee9;p=m17n%2Fm17n-db.git (stage 1): Use iteration rather than recursive for reordering. --- diff --git a/FLT/GUJR-OTF.flt b/FLT/GUJR-OTF.flt index d01e7d3..e806a23 100644 --- a/FLT/GUJR-OTF.flt +++ b/FLT/GUJR-OTF.flt @@ -96,20 +96,23 @@ ;; Syllables with an overt halant (" (RHJ?)?([^ ]+)(HN) " - | (1 = *) (2 reorder) (3 = =) |) + | (1 = *) (2 reorder *) (3 = =) |) ;; Ordinary syllables (" (RHJ?)?([^mubpaA ]+)(m?u?b?p?n?a?A?) " - | (1 = *) (2 reorder) (3 = *) |) + | (1 = *) (2 reorder *) (3 = *) |) ("." =)) *) + ;; In Devanagari and Gujarati, vattu has a half form. Thus we handle + ;; the sequence CHRHC as (CH)half + (RH)blwf + C instead of + ;; reordering and interpreting it as C + (RH)blwf + H + C. (reorder (cond ("J?(H)(R)$" (2 =) (1 =)) - ("J?(HR)(.+)$" (1 = =) (2 reorder)) - ("(.)(.*)$" (1 =) (2 reorder)))) + ("J?(HR)" (1 = =)) + ("." =))) ) ;; Stage 2