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

[MathML]在Firefox中,mover属性accent默认值是true?

[复制链接]

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-5-29 08:42 |阅读模式
本帖最后由 hbghlyj 于 2022-10-18 11:47 编辑

Mozilla web doc中写道,
accent If true the over-script is an accent, which is drawn closer to the base expression. If false (default value) the over-script is a limit over the base expression.
然而在Firefox注[1]中, 从下图可以发现注[2],mover的缺省值为"true",因此,未设置mover=false时,i和j都不带点.

手动设置了mover=false后,如下图所示(请比较两图中的i):
测试用的网页是一个XHTML+MathML网页注[3].




[1]: Firefox就是由Mozilla公司开发的...
[2]: 当accent为true时i和j都不带点,就像TeX中的$\verb|\imath|$一样.
[3]: 按道理来说,MathML+XHTML应该比MathML+HTML兼容得更好.

相关帖子

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-5-29 11:57
在"C:\mozilla-source\mozilla-unified\layout\mathml\nsMathMLmunderoverFrame.cpp"中的注释中写道default value of accent is false:
QQ图片20220401132641.png

关于dotless i和j: 可以用CSS font-feature-settings来开启和关闭这个字体特性:
QQ图片20220401132641.png

3149

主题

8386

回帖

6万

积分

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

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-5-29 12:07
hbghlyj 发表于 2022-5-29 04:57
在"C:\mozilla-source\mozilla-unified\layout\mathml\nsMathMLmunderoverFrame.cpp"中的注释中写道default ...


但是它还说unless the overscript is embellished and its core <mo> is an accent
我们把这个if条件句的第一个选择注释掉,只保留第二个选择(default false)
QQ图片20220401132641.png

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

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

Powered by Discuz!

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