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%). Details
|
RunDevelopment
left a comment
There was a problem hiding this comment.
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.