GithubHelp home page GithubHelp logo

youdao-dic-plugin-for-listary6beta's Introduction

前言

listary原作者默认使用了金山未公开的翻译接口,今天试了一下好像已经无法访问了。
因此找了一下有道的,但同样是未公开的接口进行翻译,这意味着极不稳定,即可能是明天,也可能是明年将会无法访问。
毕竟官方的接口要付费(摊手
官方的接口原来会送体验金!冲了!虽然不知道体验金能花多久,先安排上再说!

结果说明

未公开接口

翻译请求会返回大量内容,包括各种类别,例如网络翻译、考试词典等等,这里使用了web端的若干可能结果,即web_trans
如果对结果不甚满意可以在test的示例返回结果中寻找想要的结果并注明位置告知我进行修改。
当前结果中第一行代表原始翻译,其中每一个分号都是一个单独的释义,而原始返回结果中有line例句,但当前结果中未包含。

官方API接口

基本上有的内容都放进去了,包括基本释义translation,词典释义basic和web解释。剩下的就还有音标和读音地址可选了233。

使用方法

未公开接口

代码文件normal.js下载至本地,替换%AppData%\Listary\UserProfile\Extensions\listary-extension-dict\中的index.js文件(可以提前备份一下,虽然源文件现在好像已经没用了),重启listary即可。

官方API接口

代码文件key.js下载至本地,替换%AppData%\Listary\UserProfile\Extensions\listary-extension-dict\中的index.js文件,并将sha256.js放到同目录(即listary-extension-dict)中,
将key.js中的id改为自己注册的应用id,key改为自己注册的应用密钥,保存后重启listary即可。

youdao-dic-plugin-for-listary6beta's People

Contributors

whklhh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

youdao-dic-plugin-for-listary6beta's Issues

现在还能用吗?

用官方接口那个,listary,进入翻译状态后输入任意字符就看到右边那个圈一直转个不停,但就是不返回翻译结果。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.