diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-12-21 21:59:23 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-12-21 21:59:23 +0100 |
commit | 925725bfcf0f3ffba5107949bc8424e1fd6d1902 (patch) | |
tree | ee10e2c10e3ec63b0977661cfbc0ef69ad98002a /src/data | |
parent | Adding a tab list menu entry showing all open tabs. (diff) | |
download | rekonq-925725bfcf0f3ffba5107949bc8424e1fd6d1902.tar.xz |
Icon at the right of the urlbar that allows to add an opensearch engine
introduce search icon
description file downloaded after validation, not before
icons updated when engine added
add opensearch xml description files
sync desktop file => fix add webshortcut
use db_opensearch.json file to track opensearch engines
create an opensearch description only when the engine support suggestions
remove opensearch description when an engine is deleted in the webshortcut setting dialog
popup: disable ok button when webshortcut is already used
Lionel Chauvin is the man having done this big, big, big work!!
I'm just merging ;)
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/CMakeLists.txt | 12 | ||||
-rw-r--r-- | src/data/beolingus.xml | 8 | ||||
-rw-r--r-- | src/data/db_opensearch.json | 67 | ||||
-rw-r--r-- | src/data/de2en.xml | 8 | ||||
-rw-r--r-- | src/data/dictfr.xml | 8 | ||||
-rw-r--r-- | src/data/facebook.xml | 8 | ||||
-rw-r--r-- | src/data/kde_techbase.xml | 8 | ||||
-rw-r--r-- | src/data/kde_userbase.xml | 8 | ||||
-rw-r--r-- | src/data/voila.xml | 8 | ||||
-rw-r--r-- | src/data/wikia.xml | 8 | ||||
-rw-r--r-- | src/data/wikipedia.xml | 4 | ||||
-rw-r--r-- | src/data/wiktionary.xml | 8 | ||||
-rw-r--r-- | src/data/wr_english.xml | 6 | ||||
-rw-r--r-- | src/data/youtube.xml | 7 |
14 files changed, 166 insertions, 2 deletions
diff --git a/src/data/CMakeLists.txt b/src/data/CMakeLists.txt index 5f499941..f34936b4 100644 --- a/src/data/CMakeLists.txt +++ b/src/data/CMakeLists.txt @@ -31,7 +31,19 @@ INSTALL( # opensearch engines INSTALL( FILES + beolingus.xml + de2en.xml + dictfr.xml + facebook.xml google.xml + kde_techbase.xml + kde_userbase.xml + youtube.xml + voila.xml + wikia.xml wikipedia.xml + wiktionary.xml + wr_english.xml + db_opensearch.json DESTINATION ${DATA_INSTALL_DIR}/rekonq/opensearch ) diff --git a/src/data/beolingus.xml b/src/data/beolingus.xml new file mode 100644 index 00000000..60901163 --- /dev/null +++ b/src/data/beolingus.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>De-En Beolingus</ShortName> + <Description>Beolingus: German-English Dictionary</Description> + <Url method="get" template="http://dict.tu-chemnitz.de/?query={searchTerms}"/> + <Url method="get" type="application/x-suggestions+json" template="http://dict.tu-chemnitz.de/sugg.php?json=1;s={searchTerms}"/> + <Image>http://dict.tu-chemnitz.de/pics/beo-de.png</Image> +</OpenSearchDescription> diff --git a/src/data/db_opensearch.json b/src/data/db_opensearch.json new file mode 100644 index 00000000..16fc3f89 --- /dev/null +++ b/src/data/db_opensearch.json @@ -0,0 +1,67 @@ +[["http://www.7digital.com/osd.xml","7digital"], +["http://dict.tu-chemnitz.de/de-en/opensearch.xml","beolingus"], +["http://www.blip.tv/opensearch.xml","blip"], +["http://b.static.ak.fbcdn.net/rsrc.php/zJ/r/H2SSvhJMJA-.xml","facebook"], +["http://www.flickr.com/opensearch.xml","flickr"], +["https://github.com/opensearch.xml","github"], +["https://bugs.kde.org/search_plugin.cgi","bugft"], +["http://st.pimg.net/tucs/opensearch.xml","cpan"], + +["http://citeseerx.ist.psu.edu/search_plugins/citeseerx_general.xml","citeseerx"], +["http://citeseerx.ist.psu.edu/search_plugins/citeseerx_authorl.xml","citeseerx"], +["http://citeseerx.ist.psu.edu/search_plugins/citeseerx_title.xml","citeseerx"], + +["http://identi.ca/opensearch/people","identica_people"], +["http://identi.ca/opensearch/notice","identica_notices"], + +["http://www.cnrtl.fr/portail/opensearch.xml","dictfr"], + +["http://www.youtube.com/opensearch?locale=en_GB","youtube"], +["http://static1.urbandictionary.com/osd.xml?1292027099","urbandictionary"], + +["http://www.wordreference.com/tools/OpenSearch/enes.xml","en2es"], +["http://www.wordreference.com/tools/OpenSearch/esen.xml","es2en"], +["http://www.wordreference.com/tools/OpenSearch/enfr.xml","en2fr"], +["http://www.wordreference.com/tools/OpenSearch/fren.xml","fr2en"], +["http://www.wordreference.com/tools/OpenSearch/enit.xml","en2it"], +["http://www.wordreference.com/tools/OpenSearch/iten.xml","it2en"], +["http://www.wordreference.com/tools/OpenSearch/definition.xml","wordref"], +["http://dict.tu-chemnitz.de/de-en/opensearch.xml","de2en"], +["http://www.dict.cc/opensearch.xml","en2de"], +["http://dict.leo.org/plugins/Shared/Searches/leo_frde_de.xml","fr2de"], +["http://dict.leo.org/plugins/Shared/Searches/leo_ende_de.xml","leo"], + +["http://opensearch.search.ke.voila.fr/voila.xml","voila"], +["http://www.wikia.com/opensearch_desc.php","wikia"], + +["http://techbase.kde.org/opensearch_desc.php","kde_techbase"], +["http://userbase.kde.org/opensearch_desc.php","kde_userbase"], + +["http://duckduckgo.com/opensearch.xml","duckduckgo"], + +["http://ecosia.org/_files/searchplugin.xml","ecosia"], + +["http://fr.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://en.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://it.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://de.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://es.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://nl.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://pl.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://ja.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://ru.wikipedia.org/w/opensearch_desc.php","wikipedia"], +["http://pt.wikipedia.org/w/opensearch_desc.php","wikipedia"], + +["http://fr.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://en.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://it.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://de.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://es.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://nl.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://pl.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://ja.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://ru.wiktionary.org/w/opensearch_desc.php","wiktionary"], +["http://pt.wiktionary.org/w/opensearch_desc.php","wiktionary"], + +["http://search.yippy.com/search?v:project=opensearch-desc&v:frame=form&","yippy"], +["http://www.wolframalpha.com/searchDescription.xml","wolfram_alpha"]]
\ No newline at end of file diff --git a/src/data/de2en.xml b/src/data/de2en.xml new file mode 100644 index 00000000..60901163 --- /dev/null +++ b/src/data/de2en.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>De-En Beolingus</ShortName> + <Description>Beolingus: German-English Dictionary</Description> + <Url method="get" template="http://dict.tu-chemnitz.de/?query={searchTerms}"/> + <Url method="get" type="application/x-suggestions+json" template="http://dict.tu-chemnitz.de/sugg.php?json=1;s={searchTerms}"/> + <Image>http://dict.tu-chemnitz.de/pics/beo-de.png</Image> +</OpenSearchDescription> diff --git a/src/data/dictfr.xml b/src/data/dictfr.xml new file mode 100644 index 00000000..64e90ea3 --- /dev/null +++ b/src/data/dictfr.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>Portail Lexical - CNRTL</ShortName> + <Description>Cherche dans le TLF sur le portail lexical du CNRTL</Description> + <Url method="get" template="http://www.cnrtl.fr/definition/{searchTerms}"/> + <Url method="get" type="application/x-suggestions+json" template="http://www.cnrtl.fr/utilities/OPEN?query={searchTerms}"/> + <Image>http://www.cnrtl.fr/favicon.ico</Image> +</OpenSearchDescription> diff --git a/src/data/facebook.xml b/src/data/facebook.xml new file mode 100644 index 00000000..612e7cd0 --- /dev/null +++ b/src/data/facebook.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>Facebook</ShortName> + <Description>Search Facebook</Description> + <Url method="get" template="http://www.facebook.com/search/?src=os&q={searchTerms}"/> + <Url method="get" type="application/x-suggestions+xml" template="http://www.facebook.com/search/opensearch_typeahead.php?format=xml&q={searchTerms}"/> + <Image>http://www.facebook.com/favicon.ico</Image> +</OpenSearchDescription> diff --git a/src/data/kde_techbase.xml b/src/data/kde_techbase.xml new file mode 100644 index 00000000..25fc6e4c --- /dev/null +++ b/src/data/kde_techbase.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>KDE TechBase (en)</ShortName> + <Description>KDE TechBase (en)</Description> + <Url method="get" template="http://techbase.kde.org/index.php?title=Special:Search&search={searchTerms}"/> + <Url method="get" type="application/x-suggestions+xml" template="http://techbase.kde.org/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=0"/> + <Image>http://techbase.kde.org/favicon.ico</Image> +</OpenSearchDescription> diff --git a/src/data/kde_userbase.xml b/src/data/kde_userbase.xml new file mode 100644 index 00000000..64877019 --- /dev/null +++ b/src/data/kde_userbase.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>KDE UserBase (en)</ShortName> + <Description>KDE UserBase (en)</Description> + <Url method="get" template="http://userbase.kde.org/index.php?title=Special:Search&search={searchTerms}"/> + <Url method="get" type="application/x-suggestions+xml" template="http://userbase.kde.org/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=0"/> + <Image>http://userbase.kde.org/favicon.png</Image> +</OpenSearchDescription> diff --git a/src/data/voila.xml b/src/data/voila.xml new file mode 100644 index 00000000..55780275 --- /dev/null +++ b/src/data/voila.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>Voila</ShortName> + <Description>Moteur de recherche Voila</Description> + <Url method="get" template="http://rws.search.ke.voila.fr/RW/S/opensearch_voila?rdata={searchTerms}"/> + <Url method="get" type="application/x-suggestions+json" template="http://search.ke.voila.fr/fr/cmplopensearch/xml/fullxml?rdata={searchTerms}&amp;id=1&amp;dtd=2.0"/> + <Image>http://www.voila.fr/favicon.ico</Image> +</OpenSearchDescription> diff --git a/src/data/wikia.xml b/src/data/wikia.xml new file mode 100644 index 00000000..0a1eac69 --- /dev/null +++ b/src/data/wikia.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>Wikia (en)</ShortName> + <Description>Wikia (en)</Description> + <Url method="get" template="http://www.wikia.com/index.php?title=Special:Search&search={searchTerms}"/> + <Url method="get" type="application/x-suggestions+json" template="http://www.wikia.com/api.php?action=opensearch&search={searchTerms}&namespace=1"/> + <Image>http://images.wikia.com/wikiaglobal/images/6/64/Favicon.ico</Image> +</OpenSearchDescription> diff --git a/src/data/wikipedia.xml b/src/data/wikipedia.xml index 4e152087..9f9bdda4 100644 --- a/src/data/wikipedia.xml +++ b/src/data/wikipedia.xml @@ -2,7 +2,7 @@ <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>Wikipedia</ShortName> <Description>Wikipedia</Description> - <Url method="get" template="http://en.wikipedia.org/w/index.php?title=Sp%C3%A9cial:Recherche&search={searchTerms}"/> - <Url method="get" type="application/x-suggestions+xml" template="http://en.wikipedia.org/w/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=0"/> + <Url method="get" template="http://{country}.wikipedia.org/w/index.php?title=Sp%C3%A9cial:Recherche&search={searchTerms}"/> + <Url method="get" type="application/x-suggestions+xml" template="http://{country}.wikipedia.org/w/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=0"/> <Image>http://en.wikipedia.org/favicon.ico</Image> </OpenSearchDescription> diff --git a/src/data/wiktionary.xml b/src/data/wiktionary.xml new file mode 100644 index 00000000..033f5b9e --- /dev/null +++ b/src/data/wiktionary.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>Wiktionary</ShortName> + <Description>Wiktionary</Description> + <Url method="get" template="http://{country}.wiktionary.org/w/index.php?title=Special:Search&search={searchTerms}"/> + <Url method="get" type="application/x-suggestions+xml" template="http://{country}.wiktionary.org/w/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=0"/> + <Image>http://en.wiktionary.org/favicon.ico</Image> +</OpenSearchDescription> diff --git a/src/data/wr_english.xml b/src/data/wr_english.xml new file mode 100644 index 00000000..30c9339b --- /dev/null +++ b/src/data/wr_english.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>WR English</ShortName> + <Description>WordReference monolingual English dictionary search</Description> + <Url method="get" template="http://www.wordreference.com/definition/{searchTerms}"/> +</OpenSearchDescription> diff --git a/src/data/youtube.xml b/src/data/youtube.xml new file mode 100644 index 00000000..1fa8338a --- /dev/null +++ b/src/data/youtube.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> + <ShortName>Recherche de vidéos YouTube</ShortName> + <Description>Recherche de vidéos sur YouTube</Description> + <Url method="get" template="http://www.youtube.com/results?search_query={searchTerms}&page={startPage?}&utm_source=opensearch"/> + <Image>http://www.youtube.com/favicon.ico</Image> +</OpenSearchDescription> |