Re: [UAFDKOML] Replace letters in OT features ...

40 views
Skip to first unread message
Message has been deleted

Cosimo Lupo

unread,
Feb 2, 2016, 11:44:49 AM2/2/16
to uafd...@googlegroups.com
what about you make two classes and you substitute one by the other?

feature calt {
  sub r [n napostrophe ntilde ...]' by [n.ss01 napostrophe.ss01 ntilde.ss01 ...];
} calt;


On 2 February 2016 at 16:39, Morten <rostgaar...@gmail.com> wrote:
feature calt {

  sub r n' by n.ss01;

} calt;




--

Cosimo Lupo
Software Development

Dalton Maag Ltd
9th Floor, Blue Star House,
234-240 Stockwell Road
London SW9 9SP United Kingdom
Direct: +44 7825 324360
London Office: +44 20 7924 0633

Passionate about type?
Try before you buy - download our free trial fonts
Sign up to our newsletter
Follow us on Twitter


Registered office:
Mutfords, Hare Street,
Buntingford, SG9 0ED, UK
Registered in England and Wales: 3103619

Privacy and Confidentiality Notice:

This is strictly confidential and intended solely for the person or organisation to whom it is addressed. It may contain privileged and confidential information and if you are not an intended recipient, you must not copy, distribute or take any action in reliance on it. If you have received this message in error, please notify us as soon as possible and delete it from your system.

Cosimo Lupo

unread,
Feb 2, 2016, 12:00:48 PM2/2/16
to uafd...@googlegroups.com
forget what I just written.
You need to define two classes for the regular and alternate n, define a standalone lookup that swaps one with the other, and reference that named lookup in contextual substitution.

Something like this:

@regular_n = [n napostrophe ntilde];
@alternate_n = [n.ss01 napostrophe.ss01 ntilde.ss01];

lookup substitute_n {
    sub @regular_n by @alternate_n;
} substitute_n;

feature calt {
    sub r @regular_n' lookup substitute_n;
} calt;


Cheers,

Morten

unread,
Feb 2, 2016, 12:16:36 PM2/2/16
to UAFDKOML
Great, thanks!
But something do not work:

Missing glyph: napostrophe.ss01
Missing glyph: ntilde.ss01
[FATAL] invalid token (text was " ")!

I think I have to create a lot of alternate n-glyphs in this case. I have hoped, that I could work with just one new 'n' (the alternate one), 
and 'just' add the accent, e.g. the 'tilde', in a script. Is that possible? 

Best,
Morten

Cosimo Lupo

unread,
Feb 2, 2016, 12:24:14 PM2/2/16
to uafd...@googlegroups.com
yes, if...

- you use first decompose ntilde, etc. into n + tildecmb, etc. (this is usually the job of the 'ccmp' feature);
- you place anchors on both the accents and base glyphs and have a 'mark' feature that positions them accordingly

good luck


--
You received this message because you are subscribed to the Google Groups "UAFDKOML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uafdkoml+u...@googlegroups.com.
To post to this group, send email to uafd...@googlegroups.com.
Visit this group at https://groups.google.com/group/uafdkoml.
For more options, visit https://groups.google.com/d/optout.

Morten

unread,
Feb 2, 2016, 12:31:12 PM2/2/16
to UAFDKOML
Uupps, looks very complex ... Thanks a lot for your assistance!
Reply all
Reply to author
Forward
0 new messages