找回密码
 快速注册
搜索
查看: 50|回复: 2

[Chrome] <mo>拉伸的括号太宽,有多余的空白

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-9-21 09:12 |阅读模式
chrome://settings/fonts
Mathematical Font选取一个数学字体(这里是Latin Modern Math)
Screenshot 2022-09-19 at 17-28-49 Screenshot.png
对比一下:上面的<mo>(</mo>是stretchy="false",而下面的是由\left(生成的,所以是stretchy="true" Screenshot 2022-09-19 at 17-28-49 Screenshot.png
检查一下左边的<mo>(</mo>
发现它的宽度是14px(太宽了,有多余的空白)
Screenshot 2022-09-19 at 17-28-49 Screenshot.png
把左边的<mo>(</mo>手动设为stretchy="false"就宽度正常了(括号未拉伸) Screenshot 2022-09-19 at 17-28-49 Screenshot.png

在Firefox中,<mo>拉伸的括号的宽度是正常的,无论什么字体,没有多余的空白.
所以字体本身没有问题,是Chrome没有正确解析出拉伸的括号在字体中设定的宽度.

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-9-21 09:23
把Mathematical font换成Asana Math,发现积分下限太靠左了? 都和∫重叠了 Screenshot 2022-09-19 at 17-28-49 Screenshot.png
在Asana Math下,拉伸的括号宽度正常,没有多余的空白. Screenshot 2022-09-19 at 17-28-49 Screenshot.png
还是会有其他的问题:右图中,第7题第2行,可以看到,$\abs x$的竖线太长了(而且太偏上)(见1350830),以及$\bar B$的上划线太短了. Screenshot 2022-09-19 at 17-28-49 Screenshot.png

Blink > MathML

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-9-21 09:48
本帖最后由 hbghlyj 于 2022-9-22 17:27 编辑
如何在Chrome或MS Edge中开启MathML支持?
chrome://flags/#enable-experimental-web-platform-features
Screenshot 2022-09-19 at 18-55-15 Virtualizor.png
Igalia announced that they have submitted an intention to release MathML support in Chromium, and confirmed that they have received native support in Chromium Dev 105 released last Friday.Igalia 宣布他们已经提交了在 Chromium 中发布 MathML 支持的意向,并确认他们已经在上周五发布的 Chromium Dev 105 中获得了原生支持。
It is worth mentioning that Chrome 24, which once belonged to the same WebKit kernel as Safari, also briefly supported this standard, but Google subsequently disabled it in Chrome 25 for security reasons.
Now, nine years later, with the continuous efforts of Igalia, the mathematical typesetting in web pages has finally ushered in the dawn again.
值得一提的是,曾经与 Safari 同属 WebKit 内核的 Chrome 24 也曾短暂支持过这一标准,但谷歌随后出于安全原因在 Chrome 25 中禁用了它。
如今,九年过去了,在Igalia的不断努力下,网页中的数学排版终于又迎来了曙光。

Mozilla MathML Test
bb3c899c-fd11-439d-8458-a1645d94b929[1].png
5eb59ca7-4ead-4e78-b2c8-9c95157550ab[1].png

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 15:25

Powered by Discuz!

× 快速回复 返回顶部 返回列表