Adding external web search providers
MultiTerm Widget allows you to start a search in a web browser, specifying a search provider. This is any web page that can perform a search by passing parameters in a URL.
The product comes with a set of predefined providers, such as Google and Microsoft Bing. Since many users will have their own favorite resources, there is an XML file that allows you to add new providers.
Location of the XML
The file is stored alongside the other MultiTerm settings in your application settings:
C:\Users\User\AppData\Roaming\SDL\SDL MultiTerm\WidgetSearchProviders.xml
Format of the XML
The file consists of a list of search providers in the following format:
<WidgetSearchProviders>
<SearchProvider Name="Google Dictionary">
<Url>http://www.google.com/dictionary?langpair={0}|{1}&q={2}
</Url>
<Icon>google.png</Icon>
<LanguageMapping Type="Iso"
/><UrlEncoding>UTF8</UrlEncoding>
</SearchProvider>
... more providers ...
</WidgetSearchProviders>
Tags explained
| Tags | Attributes |
|---|---|
<SearchProvider> | Name : Will be displayed on the search button and the context menu for the web search. |
<URL> | This is sent to the web browser. It allows you to specify three parameters that will be replaced before sending the URL. None of them are mandatory.
|
<Icon> | An image in one of the following formats: ico, png, bmp, gif, jpg. It either needs to be in the same folder as the WidgetSearchProviders.xml file, or you can use a relative path. |
<LanguageMapping> | Type : different websites use different ways of representing languages. This parameter allows you to choose between three types:
|
<UrlEncoding> | Special characters, for example, accented letters such as those in "Grüße" or "crème fraîche", need to be encoded before they are sent to a web page. There are different encodings; most search providers support UTF8 but some, like linguee.com, use Windows-1252 encoding. The encodings that are currently supported are:
|