anki-addons
anki-addons copied to clipboard
OALD url
'http://www.oxfordlearnersdictionaries.com/search/english/?q='
would be better than:
'http://www.oxfordlearnersdictionaries.com/definition/english/'
for example: 'Japan' via 1st URL vs 'Japan' via 2nd URL
and OAAD, I know you've said you'll probably not add any more English downloaders.
like Heimlich maneuver,
oaad.py
:
# download pronunciations from Oxford Advanced Learner's Dictionary
from .oald import OaldDownloader
class OaadDownloader(OaldDownloader):
def __init__(self):
OaldDownloader.__init__(self)
self.url = \
'http://www.oxfordlearnersdictionaries.com/search/american_english/?q='
self.extras['Source'] = u'Oxford Advanced American Dictionary'
you mentioned OAAD in this part of the manual, but actually only OALD is included.
Well, OAAD, OALD, who can keep them apart. I’ll think about this. Btw, you get Heimlich maneuver from MW and Japan from lots of sites.
I know, I know...
And the chances i’ll publish the changes are better when you make a pull request. (But i guess i will not have OAAD and OALD activated by default, similar to American,British} Macmillan) And please
- put an encoding and license header in the new file. Copy-and-paste, add your own ©
- Make sure it is (mostly) PEP8-conform. GIYF
- And add a (short) docstring to the class.
Btw, i am not doing anything for this. If you want this in the main version, please make a pull request.