8000 better dictionary API support · Issue #85 · zdict/zdict · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

better dictionary API support #85

Open
wdv4758h opened this issue Apr 3, 2016 · 0 comments
Open

better dictionary API support #85

wdv4758h opened this issue Apr 3, 2016 · 0 comments

Comments

@wdv4758h
Copy link
Member
wdv4758h commented Apr 3, 2016

I just notice that some dictionaries may have different url for different translate, e.g. Latdict can use http://latin-dictionary.net/search/english/{word} for Engish to Latin and http://latin-dictionary.net/search/latin/{word} for Latin to English.

There are two things come to my mind:

  1. How to query multiple url at once ?
  2. How to pass arguments to specific dictionary ? (different dictionary may need different arguments)

There are mutiple ways to solve problem 1:

  • reimplement a lot of method just for this dictionary to support mutiple API url
  • split each API url into different DictBase's child
  • refine our dictionary to support mutiple API url, and we can select in interactive shell
  • let dictionary API url support more arguments (not only word)

For problem 2, I just have vague thought:

Please comment :)

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

No branches or pull requests

1 participant
0