-
Notifications
You must be signed in to change notification settings - Fork 14
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
Interpretation of spaceAfterScript for mmultiscripts's prescripts #217
Comments
Tentative test: unfortunately, scripts-spaceafterscript3000.woff cannot be access due to CORS policy. It seems chromium badly computes the inline size of mmultitscripts BTW.
|
I would tend to lean towards symmetry. Do you have any idea what TeX does for the equivalent I'm not completely sure that is right comparison though. The mhchem package for
|
I guess one can view the symmetric approach to have a reading of "After" that means "AwayFromBase", or "Outer". "After" is a bit of an unfortunate preposition, since it depends on an implied traversal order... |
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1876684 gecko-commit: eb00222e557742d5a6c66534f38345ddf71deaa5 gecko-reviewers: emilio
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1876684 gecko-commit: eb00222e557742d5a6c66534f38345ddf71deaa5 gecko-reviewers: emilio
For the record this is the == reftest (note: this is using RTL mmultiscript): The results are not available yet, but they should appear at: |
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702 UltraBlame original commit: eb00222e557742d5a6c66534f38345ddf71deaa5
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702 UltraBlame original commit: eb00222e557742d5a6c66534f38345ddf71deaa5
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702 UltraBlame original commit: eb00222e557742d5a6c66534f38345ddf71deaa5
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1876684 gecko-commit: eb00222e557742d5a6c66534f38345ddf71deaa5 gecko-reviewers: emilio
I submitted MicrosoftDocs/typography-issues#1135 for clarifying this in OpenType spec. |
Thanks Khaled, so this would consistent with MathML Core / Chromium. What is your test? It seems there is only one prescript and presubscript, right? Because I only see one gap. |
OK, I was asking because MathML supports multiple sub/sup pairs of prescripts, so we have a more generic use of spaceAfterScript: https://w3c.github.io/mathml-core/#figure-box-mmultiscripts |
I don’t think Microsoft Word support multiple pairs on either side. |
- dir-3.html/dir-5.html: These are approximative verifications of overall RTL directionality using "covering rectangles". Export them with a a specific font in order to make them a bit more robust. For dir-5.html we use scripts-spaceafterscript3000.woff and adjust the rects accordingly but the test might change later depending on the outcome of w3c/mathml-core#217. - dir-4-ref.html: Removed (the test was removed in bug 1783995). Differential Revision: https://phabricator.services.mozilla.com/D199702 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1876684 gecko-commit: eb00222e557742d5a6c66534f38345ddf71deaa5 gecko-reviewers: emilio
@khaledhosny So IIUC the conclusion is that the space should be added before pre-scripts (and after post-scripts) so the "symmetric" approach by Chromium, not the "always-after-scripts" approach by Firefox. |
Yes. The spec text was also updated to make this more explicit:
|
I stumbled on some interop issue while exporting tests from Gecko.
From https://learn.microsoft.com/en-us/typography/opentype/spec/math:
MathML Core and Chromium places the space before each prescript at https://w3c.github.io/mathml-core/#base-with-prescripts-and-postscripts:
But Firefox seems to do it the other way around, i.e. place the space after each prescript.
So the former option makes the rendering more symmetric with respect to the base, but the latter makes it more consistent with the parameter name.
Since we have space between scripts anyway, the significant difference is that the former adds a space between the leftmost scripts (assuming LTR) and the content before ; and the latter adds a space between the base and its closest prescripts.
The text was updated successfully, but these errors were encountered: