Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ilius opened this issue Sep 2, 2020 · 4 comments
Open

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

ilius opened this issue Sep 2, 2020 · 4 comments

Comments

@ilius
Copy link

ilius commented Sep 2, 2020

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
Copy link
Author

ilius commented Sep 2, 2020

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

@ilius
Copy link
Author

ilius commented Sep 3, 2020

In Java:

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

@qnr5
Copy link

qnr5 commented May 21, 2023

@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
Copy link

qnr5 commented May 21, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants