-
Notifications
You must be signed in to change notification settings - Fork 168
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
STAT table support #1127
STAT table support #1127
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
b02c241
to
ca4e3b9
Compare
This comment has been minimized.
This comment has been minimized.
The LGTM alerts are in ANTLR generated code, is there away to silence these? |
There is a way to do it: https://lgtm.com/help/lgtm/customizing-file-classification But, worth noting: the LGTM checks are informative only. They won't block the PR. So feel free to just ignore. |
@khaledhosny I just made this change on Lines 13 to 16 in 584fab7
|
It was a bit annoying since it kept adding new comments each time I push new changes.
Thanks. I rebased my branch and it helps indeed. |
I’m trying to implement name ID sharing, but all ideas I can come up with seem unnecessarily complicated:
Also the value of such sharing might not be that big:
Sorry for always coming back to this question 😄 but do we really want to to do this 😄 Last time to ask I promise. |
OK, let's proceed without nameRecord sharing for now and at least get the basic implementation integrated. We can defer the sharing feature until later or possibly devise a post-process action to handle it. Thanks for your effort on this, @khaledhosny ! |
All, good then. This should be more or less done, though I’d like to see #1128 before merging to check if the test coverage for the new code is good or not. The code is otherwise ready for review, and the documentation should follow once we are happy with the code. |
I will try to work that out soon (via GHA, using a similar technique as I did in psautohint). |
@khaledhosny Sorry, it looks like I made a mistake in the path to |
Instead of having to manually edit these over and over, lets just drop the comments that no one will miss.
The first time to write a useful and valid STAT table actually!
Move ElidedFallbackName errors to featgram.g so that line number i sprinted as well, and improve the wording of other errors.
Make sure the name ID used actually exists in the name table.
They were separate in anticipation of name id sharing, but this is not going to happen at the moment.
I think the code is ready for review and the test coverage is good. |
@khaledhosny Did you update the spec as well? I don't see that update in here, but the tests reference the new sections of the spec. |
I was waiting until the code is finalized, but I guess it is time to do it. |
Ok, no problem either way. Just wanted to double check. |
Describing the syntax, not attempt at describing what the table does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Khaled! LGTM
Fixes #176.
Almost done, except for name id sharing (still trying to figure out how to reliably do that). Opening to see if CI is happy with what I’ve got so far.