Skip to content

Commit

Permalink
add dlig exception for fffi et al. Closes #732
Browse files Browse the repository at this point in the history
  • Loading branch information
rsms committed Nov 15, 2024
1 parent 94a95d4 commit 4f3d79f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/features/dlig.fea
Original file line number Diff line number Diff line change
@@ -7,12 +7,13 @@
lookupflag IgnoreMarks;

# fi
sub f' [
@DLIG_i_R = [
i idotless idotless.double itildebelow ibar igrave iacute iogonek
ihookabove idotbelow icyrillic ij i.sc

j jdotless jdotlessbar uni0249 uni0249.ccmp jcrosstail yotgreek jecyrillic
] by f.i;
];
sub f' @DLIG_i_R by f.i;

# ff -> ff'
@DLIG_f_L = [ f fdotaccent feng ];
@@ -67,6 +68,9 @@ sub f' [
# ffi (note. f.i is sub'd by liga)
sub f [ f f.i ]' i by f.i.1;

# exception for e.g. fffi
ignore sub @DLIG_t1_L @DLIG_t1_L' @DLIG_t1_L @DLIG_i_R;

# tt, ft, rt, tf, ff, ft ...
sub @DLIG_t1_L @DLIG_t_L' by @DLIG_t_R;
sub @DLIG_t1_L @DLIG_f_L' by @DLIG_f_R;

0 comments on commit 4f3d79f

Please sign in to comment.