OpenType case feature

sanij's picture

Hello,

I am wondering if anyone else is unhappy with the "case" feature... (In InDesign it moves glyphs like "hyphen", "emdash" etc upward when text is marked as "All Caps" , but it doesn't work when text is directly written in caps or capitalized by selecting "Type/ Change Case".
I tried to make the case sensitivity work whenever caps are in use by including the following lookup in the "liga" feature. So it is turned on together with the liga feature.

Maybe someone would like to try it or comment it.

lookup liga25 {
sub @positionNormal' [@uppercaseLetters ] by @positionHigh;
sub @positionNormal' @positionNormal [@uppercaseLetters] by @positionHigh;
sub @positionNormal' @positionNormal @positionNormal [@uppercaseLetters] by @positionHigh;
sub [@uppercaseLetters @positionHigh] @positionNormal' [@uppercaseLetters @positionNormal space] by @positionHigh;
} liga25;

The classes contain:

@positionNormal:
parenleft, parenright, braceleft, braceright, hyphen,
exclamdown, questiondown, endash, emdash etc
IN NORMAL POSITION

@positionHigh:
parenleft, parenright, braceleft, braceright, hyphen,
exclamdown, questiondown, endash, emdash etc
IN HIGH POSITION

@uppercaseLetters: all the capital letters

Comments

dezcom's picture

The case feature is invoked with the case command (Caps) so that case specific punctuation is brought in to play with that command as well. Typing in all caps brings no command to bear in opentype since this may bring undesired effects for those not so inclined. This does hide the feature as well as [cpsp} capital spacing but I don't know how one can go about changing it.

ChrisL

dezcom's picture

Faces having case specific small caps punctuation also bring those in view with the Small caps or at least All Small Caps command.

ChrisL

sanij's picture

Could there be any undesired effects if case sensitivity in punctuation appears whenever text is set in all caps? js

dezcom's picture

If you have acronyms or initials or just capitalized words mixed with all lower case the problem comes with how to invoke the case command selectively. Even using contextual substitution to place punctuation, you would have it jumping up and down in the same sentence.

ChrisL

Syndicate content Syndicate content