Handle ZWJ correctly even if the current font does not contain it.
authorntakahas <ntakahas>
Fri, 19 Oct 2007 11:07:18 +0000 (11:07 +0000)
committerntakahas <ntakahas>
Fri, 19 Oct 2007 11:07:18 +0000 (11:07 +0000)
FLT/GUJR-OTF.flt

index c31a1d3..350d45d 100644 (file)
   *)
 
  (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