mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 07:24:07 +00:00
103 lines
12 KiB
HTML
103 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<!-- gdhelp_en.qdoc -->
|
|
<title>05 Manage dictionaries | GoldenDict</title>
|
|
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
|
</head>
|
|
<body>
|
|
<div class="sidebar">
|
|
<div class="toc">
|
|
<h3 id="toc">Contents</h3>
|
|
<ul>
|
|
<li class="level1"><a href="#5-1-1-files-tab">5.1.1 "Files" tab</a></li>
|
|
<li class="level1"><a href="#5-1-2-sound-dirs-tab">5.1.2 "Sound dirs" tab</a></li>
|
|
<li class="level1"><a href="#5-1-3-morphology-tab">5.1.3 "Morphology" tab</a></li>
|
|
<li class="level1"><a href="#5-1-4-wikipedia-tab">5.1.4 "Wikipedia" tab</a></li>
|
|
<li class="level1"><a href="#5-1-5-websites-tab">5.1.5 "Websites" tab</a></li>
|
|
<li class="level1"><a href="#5-1-6-dict-servers-tab">5.1.6 "DICT servers" tab</a></li>
|
|
<li class="level1"><a href="#5-1-7-programs-tab">5.1.7 "Programs" tab</a></li>
|
|
<li class="level1"><a href="#5-1-8-forvo-tab">5.1.8 "Forvo" tab</a></li>
|
|
<li class="level1"><a href="#5-1-9-transliteration-tab">5.1.9 "Transliteration" tab</a></li>
|
|
<li class="level1"><a href="#5-1-10-text-to-speech-tab-only-under-windows-and-macos">5.1.10 "Text To Speech" tab (only under Windows and MacOS)</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="sidebar-content" id="sidebar-content"></div></div>
|
|
<h1 class="title">05 Manage dictionaries</h1>
|
|
<!-- $$$dicts.html-description -->
|
|
<div class="descr" id="details">
|
|
<p>Dictionaries addition dialog can be called via menu "Edit" -> "Dictionaries..." or by hotkey F3. It contains several tabs.</p>
|
|
<p><b class="redFont"><code translate=\"no\">\chapter</code></b>5.1 Sources</p>
|
|
<p>Here you can add dictionaries of different types. This tab contains some more tabs.</p>
|
|
<h2 id="5-1-1-files-tab">5.1.1 "Files" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_1.png" alt="" /></p><p>Here you can add local dictionaries. It needs to set folder with dictionaries by "Add" button and set "Recursive" checkbox if this folder contains some more folders with dictionaries. GoldenDict will scan these folders (by pressing button "Rescan now", "Apply" or "OK") and add found dictionaries into dictionaries list. "Rescan" button start forced scan of all folders in list. It is necessary if some dictionary was added to these folders when GoldenDict works. Buttons "Apply" and "OK" start rescan only if folders list was changed.</p>
|
|
<p>"Remove" button remove selected folder from list.</p>
|
|
<h2 id="5-1-2-sound-dirs-tab">5.1.2 "Sound dirs" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_2.png" alt="" /></p><p>Here you can add sound files in separate folders. To add such folder it needs to set folder by "Add" button. In the "Name" column you can set name with which this folder will be added to dictionaries list. In the "Icon" column you can set custom icon file for this sound files set. If you add icon file name without path GoldenDict will search this file in configuration folder.</p>
|
|
<h2 id="5-1-3-morphology-tab">5.1.3 "Morphology" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_3.png" alt="" /></p><p>Here you can turn on/off morphology dictionaries. Such dictionaries in Hunspell format (.aff + .dic) should be placed into "content/morphology" subfolder of GoldenDict folder. GoldenDict scan this folder and create list of available dictionaries. To turn on dictionary just set mark in corresponding column.</p>
|
|
<h2 id="5-1-4-wikipedia-tab">5.1.4 "Wikipedia" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_4.png" alt="" /></p><p>Here you can add web-sites which uses Wiki engine. To add such site you should set it url, name for dictionaries list and set mark in "Enabled" column. In the "Icon" column you can set custom icon for this site. If you add icon file name without path GoldenDict will search this file in configuration folder.</p>
|
|
<h2 id="5-1-5-websites-tab">5.1.5 "Websites" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_5.png" alt="" /></p><p>Here you can add any website which allow to set target word in url. To add such site you should set it url with target word template, name for dictionaries list and set mark in "Enabled" column. In the "Icon" column you can set custom icon for this site. If you add icon file name without path GoldenDict will search this file in configuration folder. "As link" column define method of article insertion into common page. If this option is set article will be inserted as link inside <iframe> tag (preferable mode). If articles are not loaded in this mode turn this option off, then articles will be inserted as html-code.</p>
|
|
<p>Target word can be inserted into url in next encodings::</p>
|
|
<div class="table"><table class="generic">
|
|
<thead><tr class="qt-style"><th >Target word template</th><th >Encoding</th></tr></thead>
|
|
<tr valign="top" class="odd"><td >%GDWORD%</td><td >UTF-8</td></tr>
|
|
<tr valign="top" class="even"><td >%GD1251%</td><td >Windows-1251</td></tr>
|
|
<tr valign="top" class="odd"><td >%GDISO1% ... %GDISO16%</td><td >ISO 8859-1 ... ISO 8859-16 respectively</td></tr>
|
|
<tr valign="top" class="even"><td >%GDBIG5%</td><td >Big-5</td></tr>
|
|
<tr valign="top" class="odd"><td >%GDBIG5HKSCS%</td><td >Big5-HKSCS</td></tr>
|
|
<tr valign="top" class="even"><td >%GDGBK%</td><td >GBK and GB 18030</td></tr>
|
|
<tr valign="top" class="odd"><td >%GDSHIFTJIS%</td><td >Shift-JIS</td></tr>
|
|
</table></div>
|
|
<h2 id="5-1-6-dict-servers-tab">5.1.6 "DICT servers" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_6.png" alt="" /></p><p>Here you can add servers which uses DICT protocol. To add such server you should set its url, name for dictionaries list, server bases list, search strategies list and set mark in "Enabled" column. If bases list is empty GoldenDict will use all server bases. If search strategies list is empty GoldenDict will use "prefix" strategy (comparing the first part of the word).</p>
|
|
<p>In the "Icon" column you can set custom icon for every server. If you add icon file name without path GoldenDict will search this file in configuration folder.</p>
|
|
<h2 id="5-1-7-programs-tab">5.1.7 "Programs" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_7.png" alt="" /></p><p>Here you can add external applications. To add such application you should set command line for its launch, name for dictionaries list and application type. The %GDWORD% template in command line will be replaced by word from search line. If command line don't contains such template the word will be fed into standard input stream in 8-bit current locale encoding.</p>
|
|
<p>Allowed application types:</p>
|
|
<div class="table"><table class="generic">
|
|
<thead><tr class="qt-style"><th >Application type</th><th >The purpose of application</th></tr></thead>
|
|
<tr valign="top" class="odd"><td >Audio</td><td >Application play sound.</td></tr>
|
|
<tr valign="top" class="even"><td >Text</td><td >Application output some plain text in 8-bit current locale encoding into standard output stream. This text will be shown as separate article.</td></tr>
|
|
<tr valign="top" class="odd"><td >Html</td><td >Application output some html code into standard output stream. This code will be shown as separate article.</td></tr>
|
|
<tr valign="top" class="even"><td >Prefix</td><td >Application output some word list into standard output stream. This list will be added in common matches list.</td></tr>
|
|
</table></div>
|
|
<p>In the "Icon" column you can set custom icon for every application. If you add icon file name without path GoldenDict will search this file in configuration folder.</p>
|
|
<h2 id="5-1-8-forvo-tab">5.1.8 "Forvo" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_8.png" alt="" /></p><p>Here you can tune the parameters for connection to Forvo server - base of live pronunciations. To use Forvo service you should <a href="http://api.forvo.com/key/" translate="no">obtain user key</a> and place it into "API Key" line. Also you should to set <a href="http://www.forvo.com/languages-codes/" translate="no">language codes</a> in "Language codes" line.</p>
|
|
<h2 id="5-1-9-transliteration-tab">5.1.9 "Transliteration" tab</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_9.png" alt="" /></p><p>Here you can add transliteration algorithms. To add algorithm into dictionaries list just set mark beside it. When such dictionary added into current dictionaries group GoldenDict will search word in the input line as well as result of its handling by corresponding transliteration algorithm.</p>
|
|
<h2 id="5-1-10-text-to-speech-tab-only-under-windows-and-macos">5.1.10 "Text To Speech" tab (only under Windows and MacOS)</h2>
|
|
<p class="centerAlign"><img src="images/dicts1_10.png" alt="" /></p><p>Here you can add text-to-speech engines installed in system. List of such engines shown in combobox "Available voice engines". To add engine select it in list and press "Add" button. For every engine you can tune speech volume and rate by corresponding sliders.</p>
|
|
<p>You can press "Preview" button to send to selected engine string from line "Text to be previewed".</p>
|
|
<p>In the "Icon" column you can set custom icon for every engine. If you add icon file name without path GoldenDict will search this file in configuration folder.</p>
|
|
<p><b class="redFont"><code translate=\"no\">\chapter</code></b>5.2 Dictionaries</p>
|
|
<p>Here you can sort common dictionaries list. It can be completed manually by dragging dictionaries by mouse as well as automatically via context menu. Also here you can see dictionary parameters. The dictionaries filter line allows filter list by dictionary name.</p>
|
|
<p>Via context menu of dictionaries list you can sort this list. Sorting can be completed it two modes:</p>
|
|
<div class="table"><table class="generic">
|
|
<tr valign="top" class="odd"><td >Sort by name</td><td >Alphabetical sorting by dictionary name.</td></tr>
|
|
<tr valign="top" class="even"><td >Sort by language</td><td >Alphabetical sorting by dictionary source language, target language and name.</td></tr>
|
|
</table></div>
|
|
<p>For some local dictionaries you also can call <a href="headwords.html" translate="no">dictionary headwords dialog</a>.</p>
|
|
<p>To remove dictionary from list without deleting it just drag this dictionary into "Inactive (disabled) dictionaries" window.</p>
|
|
<p><b class="redFont"><code translate=\"no\">\chapter</code></b>5.3 Groups</p>
|
|
<p>Here you can create and edit dictionary groups. To add dictionary into group just drag it into groups window, to remove it drag it back to dictionaries list. Also you can press "Auto groups button" to automatically create groups for all presented in dictionaries list language directions. Via context menu of such automatically created groups you can execute additional dictionaries grouping by source or target language and combine dictionaries in more large groups.</p>
|
|
<p>Via "Group icon" list box you can select icon for current group. This icon will be shown beside group name in groups list.</p>
|
|
<p>In "Shortcut" line you can set hotkey to select this group. Just select this line and press shortcut keys.</p>
|
|
<p>"Folder in Favorites" line allow to bind some Favorites folder to this group. Headwords opened in this group will be store in given Favorites folder. Respectively, headwords from given Favorites folder will be opened in this group. A nested folders is allowed, separator is "/" or "\" character. If given folder is absent in Favorites it will be created while first headword store from this group. If folder is not given then headwords from this group will be store in root folder of Favorites.</p>
|
|
<p>Buttons:</p>
|
|
<div class="table"><table class="generic">
|
|
<tr valign="top" class="odd"><td >"Add group"</td><td >Create new group</td></tr>
|
|
<tr valign="top" class="even"><td >"Auto groups"</td><td >Automatic grouping by language directions</td></tr>
|
|
<tr valign="top" class="odd"><td >"Rename group"</td><td >Rename current group</td></tr>
|
|
<tr valign="top" class="even"><td >"Remove group"</td><td >Remove current group</td></tr>
|
|
<tr valign="top" class="odd"><td >"Remove all groups"</td><td >Remove all groups</td></tr>
|
|
</table></div>
|
|
</div>
|
|
<!-- @@@dicts.html -->
|
|
</body>
|
|
</html>
|