Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ignores that may apply to longer words containing a given word as a substring #2

Closed
mrjacobbloom opened this issue Jun 18, 2020 · 1 comment

Comments

@mrjacobbloom
Copy link
Owner

example: a -> una works, but its ignore rule also filters out as -> como

May require filtering out some lookbehind rules but not lookahead rules, and vise-versa. Be smart.

Will probably hecka slow down building features.fea, but should also lead to fewer rules per ligature and thus more words available

@mrjacobbloom
Copy link
Owner Author

Maybe features_inject could have a shape along the lines of

interface SubRule {
  length: number; // still required? Eh
  fromAsString: string; // easier to do a substring check than the equivalent for an array
  subRule: string;
  leftIgnore: string | null;
  rightIgnore: string | null;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant