From ea4f0f62f1cc0ea558402e0cff9ac878bcd47eaa Mon Sep 17 00:00:00 2001 From: ntakahas Date: Fri, 19 Oct 2007 11:07:18 +0000 Subject: [PATCH] Handle ZWJ correctly even if the current font does not contain it. --- FLT/GUJR-OTF.flt | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/FLT/GUJR-OTF.flt b/FLT/GUJR-OTF.flt index c31a1d3..350d45d 100644 --- a/FLT/GUJR-OTF.flt +++ b/FLT/GUJR-OTF.flt @@ -146,17 +146,12 @@ *) (gsub - otf:gujr=nukt,akhn,blwf,half,vatu,pres+) - ) - -;; ZWJ's are used to prevent consonant conjuncts, so they are removed -;; only after 'vatu' and 'pres' have been applied. -(generator - (0 (cond - ("J") - ("." =)) - *)) + ("([^J]*)J(.*)" + (1 otf:gujr=nukt,akhn,blwf,half,vatu,pres+) (2 gsub)) + (".*" + otf:gujr=nukt,akhn,blwf,half,vatu,pres+))) + ) ;; Apply other features. (generator -- 1.7.10.4