広辞苑 第七版

Some of picture resources in mdd are in svg formats and don’t display properly on my DictTango Android app, so I have transfered them into png.
MDD中部分图像文件是SVG格式,在DictTango app上无法正常显示,所以我转成了png格式

However, it turned out displaying the picture twice,

and I managed to figured out it was caused by the object claim in mdx text, say:
但是结果出现同一图片显示两次的情况,我最后发现是因为mdx文本里的object命令导致的,比如:

<object class="icon" data="yajirusi2.svg"></object>
<img src="yajirusi2.svg" class="obj"></img>

So I simply deleted all similar object blocks, and pictures display (seemingly) in a proper way


:
我直接简单粗暴地把类似的object部分全部删除,图片现在(看起来)正常显示了:

<img src="yajirusi2.svg" class="obj"></img>

This is quite a makeshift trial as it may damage overall format. So take it if you run into a svg display problem and ignore it if not:
这么做确实是一种权宜之计,会损失格式。如果你遇到svg显示问题就用,没有的话就不要用:
https://cloud.freemdict.com/index.php/s/fXr22HYsKmRHPxH

P.S.: many entries refer to a “ALPH.svg” icon, which I don’t recognise in mdd file, so obviously it can’t be displayed. Hope someone can excavate it from original LogoVista resources.
P.S: 许多条目引用了一个“ALPH.svg”文件,但是我在mdd里并没有发现,所以当然显示不出来。或许有谁可以从LogoVista源文件里面找出来。

5 个赞