-
Notifications
You must be signed in to change notification settings - Fork 7
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
mathsize font feature doesn't work #261
Comments
Fixed in dev, but we might want to consider additionally rewriting the font name if this is used to make these fonts more usable. Currently they are rather odd. |
The OpTeX is broken now, when new luaotfload version was released, which is very bad. We can ask if you are doing some tests with OpTeX before new release. I don't see when you are preparing a new version. So, I am unable to do these tests in the right time. The correction in dev branch is the first step, but we need to release a critical bug correction as soon as it is possible. |
You can watch the repo and run your tests when they are commits in the dev branch. luaotfload can be easily installed with l3build. |
I have no time for continuously "watch the repo". This is full time job. More friendly seems to add some OpTeX tests to your tests which you run before release. |
@olsak Writing tests is usually the barrier, not running then: some suggestions would be useful - as non of the team looking after |
You can setup some github action to automate the watching.
I don't have the time nor the skill to write OpTeX tests, and I have neither the time nor the skill to debug them if they fail as I don't know anything about OpTeX. |
Do you have some repository where we can trigger a pipeline whenever we push something? Then you can manage some relevant tests there and they automatically run whenever something changes. |
I have repositories at github, of course. But I don't know what does mean "we can trigger a pipeline". Sorry, my OpTeX tests are only imperfectly. My script runs OpTeX over a set of normal documents and I must to see if there is a suspicious change in log files. In this case, some math text causes Overful/Underful boxes while not before. In this case, I get the bug report from many OpTeX users first, when I returned from my vacation. :( The question is: how long we must to wait to the new release of luaotfload package where this critical bug will be corrected. Now, I added a red text to main web page http://petr.olsak.net/optex/ and additional information about it. Unfortunately, I can't do more. |
Maybe, it would be enough to contact me if you decides a core design change. I suppose that somebody from you decided that "mathsize" font feature will be cancelled from luaotfload. If I knew about such decision sufficiently in advance, I can say: no, OpTeX is based on this feature. |
No, we didn't decide a core design change. We imported a new fontloader version from context and that has this part commented (in fontloader-font-otl.lua) and we didn't overwrite it.
As I already wrote: I have neither the time nor the skill to decide if such a change affects OpTeX or not. So if you want warnings, implement suitable tests and watch the repository. Or use your own independent fontloader. |
OK. I understand that this was work of Hans Hagen. But where is the time for testing luaotfload? I see that the commit of the file fontloader-font-otl.lua was done two weeks ago at dev branch and the luaotfload was released two weeks ago too. Coincidentally I was at my vacation (off-line, of course) at this time... |
I will upload a new release today, so it will probably be in TeX Live roughly tomorrow evening.
Generally we rely on automated testing. Especially fontloader updates (for which we don't have any changelog beside seeing the code diff) are mostly tested though l3build. If you write some stable, well-behaving tests which integrate into our setup I don't see any issue with adding some optex tests there. |
@olsak I'm not directly involved here but all the tests run automatically at github on each commit, so if the new code from context is added and the tests pass then there wouldn't have been particular reason to flag this. |
You can configure a GitHub repository to use GitHub Actions to automatically do something in response to a bunch of events. We use this for example to run tests whenever we push some code. We could configure our repository to automatically trigger such an event in one of your repositories whenever something changes such that you can automatically have some tests executed then. |
We could have a test directory for optex with a
Then a test file
like (copied from optex manual)
and a normalised log
@olsak if there were a few optex files with tests writing anything suitable to a log file they could be run automatically and if an update produces a different log it would flag a fail (l3build normalises dates and file paths away from the log so the generated log files should be stable) |
@davidcarlisle running optex tests is naturally not difficult. The problem is what should happen if they are failures. I do not want to have to investigate if a change is relevant and if yes if optex or luaotfload or something else is responsable. Imho such tests should therefore run outside of luaotfload and someone else should investigate failures and only report back to us if luaotfload is really involved. |
That's always an issue with any library, really: you can't possibly test all of the consumer code, you hope that the maintainers of the latter test. But of course that usually involves the case where end users don't randomly update the library behind the back of the relevant devs :) |
@u-fischer yes although tests don't have to be on the critical path, but also as Marcel says if the tests were hosted at optex they could be triggered from here. l3build could have some tweaks for optex as it has for context, to set up some default settings and normalisations. of course the optex tests don't have to be l3build but it would simplify some things |
Thank you very much for tips and suggestions. I need time to think about the options, then I'll get back to you. |
The functionality of mathsize font feature is lost In the recent version of luaotfload. Suppose the example here: olsak/OpTeX#67 (comment)
The example-image (its second part at the right side) shows that the script size and scriptscript size are smaller. The optional sizes are read from the font data. But this is not true in the new version of luaotfload: all three sizes are equal.
This is critical bug because OpTeX Unicode math macros are based on the mathsize font feature.
The text was updated successfully, but these errors were encountered: