| 1 |
@Dal_1 = [@aDal.fina @aDal.fina.BaaDal @aDal.fina.KafDal @aDal.fina.LamDal @aDal.isol]; |
| 2 |
@1st_4 = [@aHeh.isol @aHeh.fina @aHeh.fina.KafHeh @aHeh.fina.LamHeh]; |
| 3 |
# final alef with no hamza above |
| 4 |
@Alf_1 = [alef-ar.fina.LamAlfFina alefHamzabelow-ar.fina.LamAlfFina]; |
| 5 |
@Alf_2 = [@aAlf.fina @aAlf.fina.KafAlf @aAlf.fina.KafMemAlf @aAlf.fina.LamAlfFina @aAlf.fina.LamAlfIsol @aAlf.fina.MemAlfFina]; |
| 6 |
@Kaf_1 = [@aKaf.init.KafHeh @aKaf.init.KafMemIsol]; |
| 7 |
@Kaf_2 = [@aKaf.init.KafBaaInit @aKaf.init.KafMemAlf]; |
| 8 |
@Kaf_3 = [@aKaf.init @aKaf.init.KafLam @aKaf.init.PreHeh @aGaf.isol]; |
| 9 |
@Kaf_4 = [@aKaf.init.KafYaaIsol]; |
| 10 |
@Kaf_5 = [@aKaf.init.KafMemInit @aKaf.init.KafRaaIsol]; |
| 11 |
@Raa_1 = [@RaaWaw @aDal.fina @aDal.isol @aDal.fina.BaaDal @aDal.fina.KafDal @aDal.fina.LamDal]; |
| 12 |
@Raa_2 = [@aRaa.fina.MemRaaIsol]; |
| 13 |
@2nd_3 = [@aSen.init.SenHaaInit @aSad.init.SadHaaInit @aLam.init.LamHaaHaaInit]; |
| 14 |
@2nd_4 = [@aSad.init.AboveHaa @aSen.init.AboveHaa @aHeh.init.AboveHaa @aHaa.init.AboveHaa @aMem.init.AboveHaa @aKaf.init.AboveHaa @aAyn.init.AboveHaa]; |
| 15 |
@Teh_m = [tehMarbuta-ar.fina.LamHeh tehMarbuta-ar.fina.KafHeh tehMarbutagoal-ar.fina.LamHeh tehMarbutagoal-ar.fina.KafHeh]; |
| 16 |
# teh marbuta |
| 17 |
feature kern { |
| 18 |
# we don't want to kern those if there is tashkil as it touches the kaf |
| 19 |
pos @RaaWaw @Kaf_1 <-293 0 -293 0>; |
| 20 |
pos @RaaWaw @Kaf_4 <-146 0 -146 0>; |
| 21 |
pos @Dal_1 @Kaf_1 <-293 0 -293 0>; |
| 22 |
pos @Dal_1 @Kaf_4 <-195 0 -195 0>; |
| 23 |
} kern; |
| 24 |
|
| 25 |
feature kern { |
| 26 |
lookupflag IgnoreMarks; |
| 27 |
pos @RaaWaw @Kaf_5 <-293 0 -293 0>; |
| 28 |
pos @RaaWaw [@Kaf_2 @Kaf_3] <-146 0 -146 0>; |
| 29 |
pos @RaaWaw @2nd_3 <-49 0 -49 0>; |
| 30 |
pos @RaaWaw @aYaa.init <39 0 39 0>; |
| 31 |
pos @RaaWaw semicolon-ar <59 0 59 0>; |
| 32 |
# Arabic semicolon |
| 33 |
pos @Dal_1 @Kaf_5 <-293 0 -293 0>; |
| 34 |
pos @Dal_1 [@Kaf_2 @Kaf_3] <-195 0 -195 0>; |
| 35 |
pos @Raa_2 [@Kaf_2 @Kaf_3 @Kaf_4] <-195 0 -195 0>; |
| 36 |
pos @Raa_2 [@Kaf_1 @Kaf_5] <-391 0 -391 0>; |
| 37 |
pos @Raa_2 @2nd_3 <-98 0 -98 0>; |
| 38 |
pos @Raa_2 @2nd_4 <-195 0 -195 0>; |
| 39 |
pos @Raa_2 @aBaaDotBelow <88 0 88 0>; |
| 40 |
# the dots of teh marbuta are very close to exclamation mark |
| 41 |
pos @Teh_m exclam <73 0 73 0>; |
| 42 |
} kern; |
| 43 |
|
| 44 |
lookup YaaBari3Kern { |
| 45 |
pos @aAyn.init <0 0 215 0>; |
| 46 |
pos @aFaa.init <0 0 347 0>; |
| 47 |
pos @aHeh.init <0 0 195 0>; |
| 48 |
pos @aLam.init <0 0 466 0>; |
| 49 |
pos @aMem.init <0 0 254 0>; |
| 50 |
pos @aSen.init <0 0 73 0>; |
| 51 |
pos @aTaa.init <0 0 73 0>; |
| 52 |
pos hehDoachashmee-ar.init <0 0 195 0>; |
| 53 |
} YaaBari3Kern; |
| 54 |
|
| 55 |
feature kern { |
| 56 |
lookupflag IgnoreMarks; |
| 57 |
# +ve kern so that the tail of raa/waw does not touch the dot of baa |
| 58 |
pos [@RaaWaw @AlefHamzaBelow] @aBaaDotBelow <83 0 83 0>; |
| 59 |
# increase advance width for first glyph in 3-letter Baree Yaa ligatures |
| 60 |
pos [@aAyn.init @aFaa.init @aHeh.init @aLam.init @aMem.init @aSen.init @aTaa.init hehDoachashmee-ar.init]' lookup YaaBari3Kern @aBaa.medi.YaaBari; |
| 61 |
} kern; |
| 62 |
|
| 63 |
# we don't want to ignore marks here |
| 64 |
feature kern { |
| 65 |
pos @Alf_1 [@Kaf_1 @Kaf_5] <-244 0 -244 0>; |
| 66 |
pos @Alf_1 @Kaf_2 <-98 0 -98 0>; |
| 67 |
pos @Alf_1 @Kaf_3 <-122 0 -122 0>; |
| 68 |
pos @Alf_1 @Kaf_4 <-146 0 -146 0>; |
| 69 |
# raa/waw/dal followed by isolated dagger alef followed by madda needs some |
| 70 |
# space to avoid fatha/madda clash |
| 71 |
pos @Raa_1' <98 0 98 0> fatha-ar alefabove-ar.isol [madda-ar maddalong-ar]; |
| 72 |
pos [hamza-ar]' <98 0 98 0> fatha-ar alefabove-ar.isol; |
| 73 |
} kern; |
| 74 |
|
| 75 |
feature kern { |
| 76 |
lookupflag IgnoreMarks; |
| 77 |
# kern heh isol/final followed by kaf, does not happen in Arabic but can be |
| 78 |
# seen in Kurdish or Persian using ZWNJ between them. |
| 79 |
pos @1st_4 zerowidthnonjoiner [@Kaf_1 @Kaf_2 @Kaf_3 @Kaf_4 @Kaf_5]' -244; |
| 80 |
# Uniscribe replace ZWNJ with space |
| 81 |
pos @1st_4 space [@Kaf_1 @Kaf_2 @Kaf_3 @Kaf_4 @Kaf_5]' -244; |
| 82 |
# some applications might just remove it |
| 83 |
pos @1st_4 [@Kaf_1 @Kaf_2 @Kaf_3 @Kaf_4 @Kaf_5]' -244; |
| 84 |
} kern; |
| 85 |
|
| 86 |
#ifndef QURAN |
| 87 |
feature kern { |
| 88 |
lookupflag IgnoreMarks; |
| 89 |
pos period [quotedblleft quoteleft] <-146 0 -146 0>; |
| 90 |
pos period.latn [quotedblright quoteright] -73; |
| 91 |
} kern; |
| 92 |
|
| 93 |
#endif |
| 94 |
#ifdef ITALIC |
| 95 |
feature kern { |
| 96 |
lookupflag IgnoreMarks; |
| 97 |
pos @Alf_2 [parenleft bracketleft braceleft] <146 0 146 0>; |
| 98 |
pos [parenright bracketright braceright] [@Kaf_1 @Kaf_2 @Kaf_4 @Kaf_5] <-49 0 -49 0>; |
| 99 |
pos [parenright bracketright braceright] [@Kaf_3] <-98 0 -98 0>; |
| 100 |
pos [braceright] [@Kaf_1 @Kaf_2 @Kaf_4 @Kaf_5] <-98 0 -98 0>; |
| 101 |
pos [braceright] [@Kaf_3] <-146 0 -146 0>; |
| 102 |
} kern; |
| 103 |
|
| 104 |
#endif |
| 105 |
# proportional digits |
| 106 |
feature kern { |
| 107 |
pos one-ar.prop two-ar.prop -49; |
| 108 |
pos one-ar.prop three-ar.prop -49; |
| 109 |
pos one-ar.prop six-ar.prop -98; |
| 110 |
pos one-ar.prop nine-ar.prop -49; |
| 111 |
pos two-ar.prop seven-ar.prop 49; |
| 112 |
pos two-ar.prop eight-ar.prop -24; |
| 113 |
pos three-ar.prop seven-ar.prop 49; |
| 114 |
pos four-ar.prop one-ar.prop -24; |
| 115 |
pos four-ar.prop eight-ar.prop 24; |
| 116 |
pos six-ar.prop one-ar.prop -24; |
| 117 |
pos seven-ar.prop one-ar.prop -24; |
| 118 |
pos seven-ar.prop eight-ar.prop -24; |
| 119 |
pos eight-ar.prop one-ar.prop -49; |
| 120 |
pos eight-ar.prop two-ar.prop -49; |
| 121 |
pos eight-ar.prop three-ar.prop -49; |
| 122 |
pos eight-ar.prop six-ar.prop -49; |
| 123 |
pos eight-ar.prop seven-ar.prop -49; |
| 124 |
pos nine-ar.prop eight-ar.prop 24; |
| 125 |
pos nine-ar.prop zero-ar.prop 24; |
| 126 |
pos zero-ar.prop seven-ar.prop 24; |
| 127 |
pos zero-ar.prop eight-ar.prop 24; |
| 128 |
} kern; |
| 129 |
|
| 130 |
# generated features for anchor points will be inserted here by build script |
| 131 |
|
| 132 |
feature curs { |
| 133 |
# Automatic Code |
| 134 |
} curs; |
| 135 |
|
| 136 |
feature kern { |
| 137 |
# Automatic Code |
| 138 |
} kern; |
| 139 |
|
| 140 |
feature mark { |
| 141 |
# Automatic Code |
| 142 |
} mark; |
| 143 |
|
| 144 |
feature mkmk { |
| 145 |
# Automatic Code |
| 146 |
} mkmk; |
| 147 |
|
| 148 |
|
| 149 |
# With ss05 on, kasra is below shadda, so move the shadda up a bit to |
| 150 |
# compensate for the kasra. |
| 151 |
feature ss05 { |
| 152 |
pos shadda-ar [kasra-ar.small] <0 103 0 0>; |
| 153 |
pos shadda-ar [kasratan-ar.small] <0 171 0 0>; |
| 154 |
} ss05; |