Giter VIP home page Giter VIP logo

mdx-server's Introduction

MDX Server

MDX Server is a service used to read MDX/MDD dictionary data and provide a standard HTTP interface to external tools.

It is just a combination of mdict-query and PythonDictionaryOnline.

Usage:

  1. Run mdx_server.py under Python 3.5 environment. When it shows a dialoge window to ask for mdx file, you may select a mdx file located in your disk. After it displayed port:8000 in console window, the service is running at background.
  2. Open your browser and input http://localhost:8000/{word} (the {word} is the English word you want to query.), then the definition of that word will be displayed according to which dictionary(mdx file) you selected in above step 1.

Please check with the manual for more detail and screenshot

MDX Server 使用说明

目前流行的 MDX 词典文件只能在 Mdict, GoldenDict, 欧路,深蓝等词典软件中使用,而不能将内容对外输出。MDX Server 通过读取 MDX、MDD 格式的词典文件,对外部提供一个标准的 HTTP 服务接口。使得一些需要词典服务的软件,比如 Kindlemate,Anki 划词助手以及其他工具可以利用这个本地服务,灵活选取所需的 MDX 词典,批量或者单独获取单词的解释。

  1. 在 python 环境下运行mdx_server.py,弹窗内选择本地 mdx 文件,console 窗口内显示port:8000 表明服务器运行成功,等待外部请求。
  2. 在浏览器地址栏输入 http://localhost:8000/{word},其中{word} 部分为待查的单词,比如 http://localhost:8000/test ,通过 mdx-server 查询,浏览器内将显示该单词在第 1 步所选词典内的解释。

MDX Server 核心功能由 mdict-queryPythonDictionaryOnline 整合而成。

更多内容和屏幕截图,请查阅手册

mdx-server's People

Contributors

ninja33 avatar einverne avatar

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.