QDict icon indicating copy to clipboard operation
QDict copied to clipboard

Internal links (bword://) don't work

Open ilius opened this issue 4 years ago • 4 comments

Internal links in StarDict format, like <a href="bword://二十八宿">二十八宿</a>, don't work for Unicods (non-ASCII) words. I think link target needs to be unquoted. Screenshots: Before click

After click (on first Related word for example) After click

ilius avatar Sep 02 '20 00:09 ilius

In Python, it's done with urllib.parse.unquote function.

ilius avatar Sep 02 '20 00:09 ilius

In Java:

word = URLDecoder.decode(word, "UTF-8");

ilius avatar Sep 03 '20 03:09 ilius

@ilius Hi, I am making a stardict dictionary. I use stardict-tools/tabfile to generate files to use in StarDict. I want internal links, which I guess should be something like: other. But it did not work, and I do not know how to realise. It's a great help if you could give me some advice.

  1. Is internal link supported by StarDict?
  2. Should I write other in example.tab? or example.xml?

Any advice is OK, thanks for your time.

qnr5 avatar May 21 '23 08:05 qnr5

When I change "sametypesequence=m" to "sametypesequence=h", it works as I want.

And, also pretty thank you for your reply. Have a good day!

qnr5 avatar May 21 '23 10:05 qnr5