-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
check-
prefix from subcommands of promoted profiles
- Loading branch information
1 parent
d6600a7
commit 489a2cc
Showing
4 changed files
with
79 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
489a2cc
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.
No, please don't do it!
There's a plan to add fixing features (which we had in the past but temporarily removed to be more focused on checking). In that case we may have commands like
fontbakery fix-googlefonts
or something similar.Please ask the user/dev community before this kind of change to the tool.
489a2cc
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.
Also, what is the meaning of a "promoted" profile?
489a2cc
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.
Wouldn't be better introducing fixes for single issues instead that for the whole profile? For example,
fontbakery fix-italic-angle
instead offontbakery fix-post
.489a2cc
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.
Sure! The specific implementation details are a matter yet to be discussed. In the past it was exactly as you proposed, by the way.
The point here is that the
"check-something"
commands are here to distinguish from other kinds of commands (such as"fix-something"
).489a2cc
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.
Good to know, but in my humble opinion
fix
should live out of font/openbakery.489a2cc
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.
@felipesanches
I got the "promoted" term from here: https://github.com/googlefonts/fontbakery/blob/31bb1ca702e771c971d2d8d0b16f5c5f0a210c4d/tests/commands/test_usage.py#L11
I think it's the first time I'm hearing about the
fix-
idea. Thanks for mentioning it. At this point it's hard to say if that feature will ever be wanted or needed in OpenBakery, so until then it's better to keep things simple. You're welcome to submit a proposal.Your input is welcomed, but you need to keep in mind that this project is not Font Bakery; it's a fork and as such it may take different development paths. Feedback from the community is important. But this project is very new, only has one developer, and I haven't seen any evidence that the
openbakery
tool is being used by anyone but me. I'm still working toward having a version 1.x release. The driving efforts until then are 1) reduce the project's default footprint, and 2) make the project more user- and developer-friendly. After the 1.x release any major changes will be proposed and discussed first. Keep an eye on https://github.com/miguelsousa/openbakery/discussions489a2cc
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.
It seems that that line was written by @simoncozens at fonttools/fontbakery@bd724c4
But I still don't know what he meant then - or what you mean now - by using that term. It would be useful to document its meaning explicitly.
489a2cc
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.
fonttools/fontbakery#1501
489a2cc
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.
What I meant is that some of the files under
Lib/fontbakery/profile
(e.g.universal
) are actually profiles in the sense of a list of checks that you want to use, but some of the files in that directory (e.g.post
) are not actually top-level profiles but are simply implementations of checks. See #3188.489a2cc
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.
fonttools/fontbakery#3188