huzheng001 / stardict-3

Automatically exported from code.google.com/p/stardict-3
GNU General Public License v3.0
308 stars 66 forks source link

Add bword:// prefix to link target of "kref" in XDXF-formatted definition #88

Open ilius opened 4 years ago

ilius commented 4 years ago

For example:

<ar><k>ADSL</k>
 See: <dtrn><kref>asymmetrical digital subscriber line</kref></dtrn></ar>
<ar>

Current it will be converted to

See: <a href="asymmetrical digital subscriber line">asymmetrical digital subscriber line</a>

So clicking on the link will try to open it in browser (assuming it's a web link) It should be changed to:

See: <a href="bword://asymmetrical digital subscriber line">asymmetrical digital subscriber line</a>
ilius commented 4 years ago

Here is my version of xdxf.xsl that fixes this.