-
Notifications
You must be signed in to change notification settings - Fork 738
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
Add OpenTypeFeature suppport #864
Conversation
Hello again. It would be very nice if someone can click the button so our websites can benefit from the new lexer. Pretty please! |
what should be done to get OpenTypeFeature support? thanks |
beep! any thoughts? the spec is maintained by Adobe see https://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html |
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.
Hi, thanks for your submission. I'm helping triage pull requests to see if we can work down the backlog, finally. I've got only a minor comment here with respect to removing some unused/commented out lines. Other than that it looks ready to me.
Actually, sorry, one more little nitpick: Can you add "# frozen_string_literal: true" to the ruby files. This is down to how long the PR has open, sorry, it was added project wide a while back. |
hope these requested changes are oke... thanks!! |
hi @vidarh, any updates on this? can this lexer finally be merged? thanks! |
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.
@thomgb I'm sorry it's taken so long to get back to you on this. I've left some specific comments below.
At a more general level:
-
If you rebase this against the current master, you should pick up the changes that will allow Travis to run the tests properly.
-
To avoid ambiguity warnings, could you denote regular expressions with
%r
? So rather thanrule /.../
, you'd writerule %r/.../
.
Let me know if you have any questions!
@gferreira Sorry it's been taking so long. We've been working through the backlog but I'm afraid I hadn't got to this one yet. I've submitted feedback on the lexer and will wait to see how that goes! :) |
@pyrmont many thanks for your feedback, updates by @typemytype coming soon… cheers! |
Ive rebased to the current master and applied requested changes thanks for the thorough comments! |
@typemytype There are some linting issues. Refer the Travis build logs for details or run |
@typemytype Regarding the point that @ashmaroli was raising, to avoid RuboCop errors, you need to write your regular expressions in such a way so that they are not potentially confused with division using the |
@ashmaroli thanks
|
@typemytype After looking at the Adobe specification more closely, I thought it was more correct to call the lexer OpenTypeFeatureFile. I've made the old Thanks for all the work on getting this ready for merging. It's great to expand the types of files that are supported by Rouge! :) |
Some small side notes: I understand why you wanted to change to OpenTypeFeatureFile (its indeed in the spec) but it feels also weird: you dont call the lexer for ruby The OpenType feature spec is here: https://adobe-type-tools.github.io/afdko/OpenTypeFeatureFileSpecification.html AFDKO is a compiler to build binary fonts and OpenType features are a small part of this. thanks!! |
@typemytype Two points:
|
@pyrmont people usually call it “fea language” or “fea syntax”. examples:
ps. thanks for your assistance in getting fea syntax supported by Rouge! |
@gferreira Doesn't the example above where it's referred to as 'OpenType Feature File Syntax' demonstrate that this is the appropriate name? To use @typemytype's example from earlier, nobody would say 'Ruby File Syntax'. |
For what it's worth, I should also note that the name of the Ruby class is really just an implementation detail. It doesn't have any impact on how you can use it. The important thing from an end-user perspective is the tag and aliases. |
its indeed a detail, already super happy to have this support in rouge! thanks |
We, type designers, use
opentypefeature
code. It would be nice to have support for this.