- From: Peter Constable <petercon@microsoft.com>
- Date: Tue, 6 Aug 2019 18:47:51 +0000
- To: Sergey Malkin <sergeym@microsoft.com>, Murray Sargent <murrays@exchange.microsoft.com>, Frédéric Wang <fwang@igalia.com>
- CC: "public-mathml4@w3.org" <public-mathml4@w3.org>, Victor Kozyrev <victork@microsoft.com>
- Message-ID: <MW2PR2101MB1065A15A2057CA061909AD34D5D50@MW2PR2101MB1065.namprd21.prod.outlook.>
Please add a comment on the page saying that this needs to be clarified. (That will generate a GitHub issue to be tracked.) Peter From: Sergey Malkin <sergeym@microsoft.com> Sent: Tuesday, August 6, 2019 11:45 AM To: Murray Sargent <murrays@exchange.microsoft.com>; Frédéric Wang <fwang@igalia.com> Cc: public-mathml4@w3.org; Victor Kozyrev <victork@microsoft.com>; Peter Constable <petercon@microsoft.com> Subject: Re: Interpretation of OpenType MATH fraction shifts @Peter Constable<mailto:petercon@microsoft.com>, can we change MATH table spec to make it clear? Thanks, Sergey ________________________________ From: Sergey Malkin <sergeym@microsoft.com<mailto:sergeym@microsoft.com>> Sent: Tuesday, August 6, 2019 11:32 AM To: Murray Sargent <murrays@exchange.microsoft.com<mailto:murrays@exchange.microsoft.com>>; Frédéric Wang <fwang@igalia.com<mailto:fwang@igalia.com>> Cc: public-mathml4@w3.org<mailto:public-mathml4@w3.org> <public-mathml4@w3.org<mailto:public-mathml4@w3.org>>; Victor Kozyrev <victork@microsoft.com<mailto:victork@microsoft.com>>; Peter Constable <petercon@microsoft.com<mailto:petercon@microsoft.com>> Subject: Re: Interpretation of OpenType MATH fraction shifts I actually see in code that shift is relative to baseline. Look at PTLS7::CalcFractionOffsets function in LsMathFractionApi.cpp: LONG dvGapNumerator = dvNumeratorShiftUp - dvNumeratorDescent - (dvAxisHeight + dvRuleThicknessOver2); ... duvNumerator.v = dvAxisHeight + dvRuleThicknessOver2 + dvGapNumerator + dvNumeratorDescent; Which is equivalent to duvNumerator.v = dvNumeratorShiftUp This is consistent with shifts for other math structures, e.g. superscript, where making it relative to math axis doesn't make sense. Thanks, Sergey ________________________________ From: Murray Sargent <murrays@exchange.microsoft.com<mailto:murrays@exchange.microsoft.com>> Sent: Tuesday, August 6, 2019 10:47 AM To: Frédéric Wang <fwang@igalia.com<mailto:fwang@igalia.com>> Cc: public-mathml4@w3.org<mailto:public-mathml4@w3.org> <public-mathml4@w3.org<mailto:public-mathml4@w3.org>>; Victor Kozyrev <victork@microsoft.com<mailto:victork@microsoft.com>>; Sergey Malkin <sergeym@microsoft.com<mailto:sergeym@microsoft.com>>; Peter Constable <petercon@microsoft.com<mailto:petercon@microsoft.com>> Subject: RE: Interpretation of OpenType MATH fraction shifts Looking at the LineServices math fraction handler code, I think the OpenType math table numerator shift-up and denominator shift-down parameters are relative to the math axis. For confirmation, adding Victor, who wrote the math fraction handler code, Sergey, our OpenType math table expert, and Peter who has edited the OpenType math table spec. Thanks, Murray -----Original Message----- From: Frédéric Wang <fwang@igalia.com<mailto:fwang@igalia.com>> Sent: Tuesday, August 6, 2019 7:53 AM To: public-mathml4@w3.org<mailto:public-mathml4@w3.org>; Murray Sargent <murrays@exchange.microsoft.com<mailto:murrays@exchange.microsoft.com>> Subject: Interpretation of OpenType MATH fraction shifts Hi Murray, Can you please indicate whether numerator/denominator shifts should be relative to the fraction baseline: https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmathml-refresh%2Fmathml%2Fissues%2F123&data=04%7C01%7Csergeym%40microsoft.com%7C23418ee72935478ed7d308d71a962c85%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637007104604276097%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C-1&sdata=nWBieXR82IXEct4YidbFW2XTyYiSW8pRRZl0U6otirs%3D&reserved=0<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmathml-refresh%2Fmathml%2Fissues%2F123&data=02%7C01%7Cpetercon%40microsoft.com%7Cb2fe1091722848ba839b08d71a9e2b73%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637007138952992146&sdata=fBwXpB8ruM%2B1ZPmxFUkHL1pG60RwuAc6BYCIXPxr2Ew%3D&reserved=0> Thanks, -- Frédéric Wang
Received on Tuesday, 6 August 2019 18:48:19 UTC