From 4a0d1a45579980bbc4e33b7b8543fb7c2e43aee9 Mon Sep 17 00:00:00 2001 From: ntakahas Date: Thu, 25 Mar 2010 10:28:00 +0000 Subject: [PATCH] (stage 1): Use iteration rather than recursive for reordering. --- FLT/GUJR-OTF.flt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 1.7.10.4