-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 support for METAFONT #3465
Add support for METAFONT #3465
Conversation
Includes the METAFONT language to supported languages in Prism. METAFONT is a language for fontdrawing and fontmaking, especially for fonts destined to TeX. While old in various regards its legacy endures in METAPOST or in the TikZ syntax.
JS File Size Changes (gzipped)A total of 2 files have changed, with a combined diff of +2.06 KB (+76.9%).
|
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.
Thank you for the PR @LaeriExNihilo!
The language itself looks good, but there aren't enough tests, so our regex coverage fails. You can see the untested regexes/alternatives here or by running npm run regex-coverage
.
Future more widely used languages may be more suited for the mf alias or .mf extension.
Added comprehensive tests for all features. Added forgotten operators =:| and ||:. Added forgotten constant _. Added forgotten quantities pen_bot, pen_lft, pen_rt and pen_top.
This should pass now @RunDevelopment . While doing the tests I also found a few mistakes in my definitions so it was a good opportunity. |
Thanks @LaeriExNihilo! I forgot to mention that we also have ESLint. Please run |
Changed spaces to tabulations. Alphabetically ordered what was missed.
lint is complaining about a duplicate for my operators but I can't seem to find it. I fixed the spacing (that VSCode had by default to spaces instead of tabs) but I'm not sure it will fix it. |
Build passes all tests and lint:ci locally.
Locally this build passes all tests. lint fixed some alphabetical misorderings I hadn't seen. |
Thank you for contributing @LaeriExNihilo! |
Includes support for Donald Knuth's historic language for fontdesigning and fontmaking. While this language is outdated in many regards its legacy endures in METAPOST and PGF/TikZ, and its macro core principle has real depth. May be of use for people exploring the inception of the TeX ecosystem.