Author Topic: Contextual Mark or Mark to Mark positioning  (Read 2418 times)

BOBT

  • Sr. Member
  • ****
  • Posts: 6
    • Email
Contextual Mark or Mark to Mark positioning
« on: 2013-08-01, 06:01:54 »
Hello,

I was asked if VOLT could do Contextual Mark or Mark to Mark positioning, to which I replied sure. I've done contextual substitutions and have done contextual single glyph and pair adjustments. I assumed that this would work as well. Of course, in my little trial it didn't.

I had a Cyrillic font nearby and tried adding an acute to afii10065 only when preceded by M. I couldn't get it to work in the proofing tool nor in Word. When I drop the context all is well.

Should this work?

Thanks.

Regards,
Bob

JanekZ

  • Sr. Member
  • ****
  • Posts: 18
Re: Contextual Mark or Mark to Mark positioning
« Reply #1 on: 2013-08-02, 10:49:00 »
Sorry, this is not in Volt, but this fea file does what you want (I suppose ;))

lookup Glyphlookup {
    sub \uni0430 by \uni0430 \acutecomb ;
} Glyphlookup;

lookup calt9 {
    sub \uni041C  \uni0430' lookup Glyphlookup   ;
} calt9;

feature calt {
  script DFLT;
     language dflt ;
      lookup calt9;
  script cyrl;
     language dflt ;
      lookup calt9;
} calt;

First lookup is Multiple Substitution, second Contextual Chaining Substitution.
« Last Edit: 2013-08-02, 11:46:42 by JanekZ »