Typophile

Substituting letters - contextual alternates

zapstudio

Hello

I wonder if anyone can help

I am trying to substitute the normal 'i' letter to the dotlessi in specific combination of letters, especially Vi and Yi. For example when someone types Vi, I want the i to change to the dotlessi.

I know about contextual alts but this only changes the first letter.
sub a' [ a b c d f g h i j k l m n o p q r t u v w y ] by uniE002;

Is there any coding I should use to achieve this?

Just put the ' mark after whichever glyph(s) should be substituted:

sub [V Y] i' by dotlessi;

For the calt feature, it might be better to make a copy of the dotlessi glyph and leave it without a Unicode value:

sub [V Y] i' by i.calt;

Captured from web.archive.org on 9 Aug 2014. view this capture