Page 1 of 1

[CLOSED] FEA syntax check error?

Posted: Sat Jun 20, 2020 4:23 am
by Bernie Cossentino
Hi,

Many of my lookups are named with specific info in parentheses. i.e. PairAdjustment (lowercase). As I was just curious to see how a particular lookup would read in FEA, I noticed it would not complete its syntax check, stating the parentheses as the error. Is it a FEA thing that parentheses should not be used for lookup names or is this a bug in FC?

Running FC 13 .2664

Re: FEA syntax check error?

Posted: Sat Jun 20, 2020 8:11 am
by Erwin Denissen
The Adobe FEA OpenType Feature File Specification syntax has more restrictions than our own syntax.

These length and name restrictions apply to both glyph name and lookup label:
  • Maximum of 63 characters in length
  • Must be entirely comprised of characters from the following set:

Code: Select all

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
. # period
_ # underscore
* # Asterisk
+ # Plus sign
- # Hyphen-minus
: # Colon
^ # Circumflex accent
| # Vertical bar
~ # Tilde
Optionally an initial backslash serves to differentiate a name from an identical keyword in the feature file language.

Re: FEA syntax check error?

Posted: Sat Jun 20, 2020 2:51 pm
by Bernie Cossentino
Erwin Denissen wrote: Sat Jun 20, 2020 8:11 am The Adobe FEA OpenType Feature File Specification syntax has more restrictions than our own syntax.

These length and name restrictions apply to both glyph name and lookup label:
  • Maximum of 63 characters in length
  • Must be entirely comprised of characters from the following set:

Code: Select all

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789
. # period
_ # underscore
* # Asterisk
+ # Plus sign
- # Hyphen-minus
: # Colon
^ # Circumflex accent
| # Vertical bar
~ # Tilde
Optionally an initial backslash serves to differentiate a name from an identical keyword in the feature file language.
Good to know!

Thank you for the info :)