-
Notifications
You must be signed in to change notification settings - Fork 105
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
Overhaul name checks #3194
Overhaul name checks #3194
Conversation
@felipesanches before you crucify me, I'll use enums and error codes :-) |
IIUC we ignore all name records defined outside of 3, 1, 1033 correct? Do non-1033 langID have any role beyond locale-specific menu / example text display strings? |
e18f75c
to
98901f5
Compare
@felipesanches Just an fyi. I'm dog fooding this whilst working on an NDA project so my progress is happening slower than expected. I plan on getting this finished in the next fortnight or so. Due to changing the source of truth, we will need to rigorously test this pr. |
Thanks for putting some more effort on this, @m4rc1e :-) |
Thanks and apologies for the delay on this. We should maybe have a hangout once I think it's ready since I'm making a tonne of changes. |
@m4rc1e, please let me know when this is ready for a code-review. Then if I get confused about some aspects of it during review, we can possibly have a video call for clarification. Cheers! |
In general, though, I prefer to have the clarification in text comments here so that we keep a public record of the rationales behind all our project decisions. |
import logging | ||
|
||
|
||
__all__ = ["GFNames"] |
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.
I think it should be __all__ = ["GFNameData"]
here.
@felipesanches SGTM. I took a step back last night and thought it may be more user friendly if we consolidate all the name checks together. Currently, every name record is an individual check which produces massive reports. Imo, it is far more elegant to produce tables which show all the records together. This approach makes the reports much easier to understand since users can see all the info on one page. Since we also use Rich, here's a mock up of a potential friendlier future. @RosaWagner @vv-monsalve @felipesanches thoughts on this idea? |
That is beautiful, I love it !!!!
|
That's pretty good, @m4rc1e ! |
More structured information, lovely! So happy not seeing the hexadecimal for the bits enabled in the style bits details, and agree on the explanations could be informative. Name ID 4 would be relevant and perhaps including ID 25 (while it is needed for Adobe issues). |
Could be this a good opportunity to review the status of this check? |
It seems that this is now outdated, as we've got a new attempt at #3800 |
This PR will tidy up our existing name table checks. It also fixes the typographic subfamily name check for VFs with multiple axes.
I've had to move away from using the filenames to determine the family name and subfamily name. Instead, I've used the name table itself. This means I will need to implement a check to ensure that the filenames are related to the name table.
#3191
Still wip, needs much more work.