Compatable for Anki 2.1.x ONLY
- Search web using provided URL and display during card review. Search the 1st Field of current note
- Capture web image as card resource and save into note
Use the installation code: 627484806
- Click on button 'Capture' at the button
- Crop the region of image
- Select your note field and save
- Cropped images will be saved to your resource folder of the profile
Select text in the web and right click to show context menu and save.
In the "Options" menu open the configuration dialog:
{
"image_quality": 50,
"load_on_question": false,
"preload": true,
"provider_urls": [
[
"Bing",
"https://www.bing.com/images/search?q=%s"
],
[
"Wiki",
"https://en.wikipedia.org/wiki/?search=%s"
],
[
"WordRoot",
"http://www.youdict.com/root/search?wd=%s~~#article"
]
]
}
- image_quality: Saved image quality, up to 100, default 50.
- load_on_question": change to false if you need web to be queried /ONLY/ on answers.
- preload: Query web even it's invisible.
Config item "load_when_ivl", defaults to ">=0", this value controls the visibility of Web Query dock widget based on current card's intervals:
- New Card: "==0"
- Review Card: ">0"
- Mixed: ">=0"
- Interval within 3 days: "<=3"
When you're looking at the source:
eval(str(self.card.ivl) + UserConfig.load_when_ivl)
You can see that this actually is implemented by Python "eval" .. so you can even set the value as, 1<= interval <=10 and :
{
"load_when_ivl": " in range(1,10)"
}
This is an URL string you can customize in your settings. By default, This addon provide a value for Wikipedia: http://en.wikipedia.org/wiki/wiki.html?search=%s
Please note the "%s" at the end for "search=%s" which mean the parameter where addon will fill during the review.
Although this addon is powerful enough, but sometimes we need to reference parts the web's information and others are not wanted, in this case you can use Standard CSS2 selector syntax to query partially.
Append selectors at the last of your provider url, separate by "~~":
[
"WordRoot",
"http://www.youdict.com/root/search?wd=%s~~#article"
]
Above provider url only return the tag(ID = article) HTML in Web Query.
You would be able to search the web for more provider URL patterns, or make your own just from your browser address bar:
- Search images in www.bing.com for keyword "anki"
- I got the URL like this from browser: https://cn.bing.com/images/search?q=anki&FORM=HDRSC2
- Replace "anki" with "%s" in the parameters "search?q=anki"
- The Provider URL is https://cn.bing.com/images/search?q=%s&FORM=HDRSC2
Every Provider URL should have and only one '%s' place holder.
- Go to "Tool" > "Addons" and find "WebQuery"
- Click on "Settings"
- Find item "provider_urls", you can fill as much as you want, those multiple items will be shown in tabs:
"provider_urls": [
[
"Bing",
"https://www.bing.com/images/search?q=%s"
],
[
"Wiki",
"https://en.wikipedia.org/wiki/?search=%s"
]
],
Just in case you have plenty of url providers and there must to be many tabs on the widget, you can set visibilities of those tabs to each NOTE TYPE, by default they are all turned on for all.
- Go to menu "Tool" > "Manage Note Types" > Select one note
- Click on button "Web Query Tab Visibility"
- Check the visibilities for each of the provider url:
Speical thanks to @语言-Rahanande for collection
- Wikipedia: http://en.wikipedia.org/wiki/wiki.html?search=%s
- Bing Image Search: https://cn.bing.com/images/search?q=%s
- 人人词典: http://www.91dict.com/words?w=%s
- DWDS德语词典: https://www.dwds.de/wb/%s
- littre法语词典: https://www.littre.org/definition/%s
- 波斯语词典: https://www.vajehyab.com/?q=%s
- naver韩语汉字词典(其余韩汉/韩英、韩日同理): http://hanja.naver.com/search?query=%s
- 漢語多功能字庫: http://humanum.arts.cuhk.edu.hk/Lexis/lexi-mf/search.php?word=%s
- 拓本文字资料库: http://coe21.zinbun.kyoto-u.ac.jp/djvuchar?query=%s
- 国学大师-书法字典(其余字典同理): http://shufa.guoxuedashi.com/?sokeyshufa=%s&submit=&kz=70
- 汉越词典摘引: http://hanviet.org/hv_timchu_ndv.php?unichar=%s
- 土耳其语词源词典,基本上来自Nisanyan: https://www.etimolojiturkce.com/kelime/%s
- Nisanyan土耳其语词源词典: http://www.nisanyansozluk.com/?k=%s
- 荷兰语词源词典: http://www.etymologiebank.nl/zoeken/%s
- 斯瓦希里语汉语词典: http://siwaxili.com/%s
- 尼泊尔语词典: http://dsalsrv02.uchicago.edu/cgi-bin/philologic/search3advanced?dbname=turner&query=%s&matchtype=exact&display=utf8
- 尼泊尔语词源词典: http://dsalsrv02.uchicago.edu/cgi-bin/app/schmidt_query.py?qs=%s&searchhws=yes
- CHGIS 哈佛**历史地理GIS数据库: http://maps.cga.harvard.edu/tgaz/placename?fmt=html&n=%s
- **数字植物标本馆: http://www.cvh.ac.cn/ppbc/%s
- **自然标本馆: http://www.cfh.ac.cn/Spdb/spsearch.aspx?aname=%s
- **植物志: http://frps.eflora.cn/frps?id=%s
- **植物图像库: http://www.plantphoto.cn/list?keyword=%s