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

Online dictionary pronunciation problem #1680

Open
bAH7JgbXrMsXEhggm4 opened this issue Dec 17, 2023 · 0 comments
Open

Online dictionary pronunciation problem #1680

bAH7JgbXrMsXEhggm4 opened this issue Dec 17, 2023 · 0 comments

Comments

@bAH7JgbXrMsXEhggm4
Copy link

bAH7JgbXrMsXEhggm4 commented Dec 17, 2023

Because I can't speak English, I have to use Google Translate to write these. It may be difficult to understand. I'm really sorry

Thank you for developing this software, It help me a lot.

I use goldendict like this.

Screenshot from 2023-12-17 10-46-35

content of youdao.html

<!DOCTYPE html>
<html>
<head>
    <meta charset=utf-8 />
    <style>
        iframe{ width: 850px; height: 650px; margin-top:-190px; margin-left:-120px;
        }
    </style>
</head>

<body>
    <iframe id="a" frameborder="0">
    </iframe>
    <script>
    var word = location.href.slice(location.href.indexOf('?a')+3);
    document.getElementById('a').setAttribute(
        'src', 
        'https://dict.youdao.com/result?word=' + word + '&lang=en');
    </script>
</body>
</html>

content of bing.html:

<!DOCTYPE html>
<html>
<head>
    <meta charset=utf-8 />
    <style>
        iframe{ width: 750px; height: 750px; margin-top:-150px; margin-left:-120px;
        }
    </style>
</head>

<body>
    <iframe id="a" frameborder="0">
    </iframe>
    <script>
    var word = location.href.slice(location.href.indexOf('?a')+3);
    document.getElementById('a').setAttribute(
        'src', 
        'https://cn.bing.com/dict/search?q=' + word + '');
    </script>
</body>
</html>

After the configuration is completed, it looks like this

Screenshot from 2023-12-17 10-55-10

goldendict performs very well, there is only one problem: when using 有道 online dictionary, clicking pronunciation has no effect

youdao

However, when using the bing(必应) online dictionary, it can be pronounced normally.

bing

It is worth mentioning that using this version of the GOLDENDICT https://aur.archlinux.org/packages/goldendict-ng, everything is normal, the above two online dictionaries can be pronounced normally.However, this version can only be used in Arch Linux and cannot be used on Debian.

Version:
Screenshot from 2023-12-17 11-23-38

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

1 participant