You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
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:
How to query multiple url at once ?
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:
we need to let dictionary add their arguments which can display/choosse in the help/shell (maybe like py.test can have plugin)
we need to let users change dictionary setting in the shell
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 andhttp://latin-dictionary.net/search/latin/{word}
for Latin to English.There are two things come to my mind:
There are mutiple ways to solve problem 1:
DictBase
's childword
)For problem 2, I just have vague thought:
py.test
can have plugin)Conf
class for zdict runtime environment configuration #68)Please comment :)
The text was updated successfully, but these errors were encountered: