index.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <html>
  2. <head>
  3. <title>QStarDict documentation</title>
  4. <link rel="stylesheet" type="text/css" href="styles/style.css">
  5. </head>
  6. <body>
  7. <div id="wrap">
  8. <h1>QStarDict documentation</h1>
  9. <p>
  10. QStarDict is a dictionary application. It allows the user to install
  11. Kiwix and StarDict dictionaries and look up words from these dictionaries.
  12. </p>
  13. <p>This guide is aimed to assist you in using QStarDict.</p>
  14. <h2>Contents</h2>
  15. <ul>
  16. <li><a href="#starting-qstardict">Starting QStarDict</a></li>
  17. <li><a href="#running-in-background">Running in background</a></li>
  18. <li><a href="#starting-with-system">Starting with system</a></li>
  19. <li><a href="#installing-kiwix-dictionaries">Installing Kiwix dictionaries</a></li>
  20. <li><a href="#installing-stardict-dictionaries">Installing StarDict dictionaries</a></li>
  21. <li><a href="#looking-up-words">Looking up words</a></li>
  22. <li><a href="#popup-window">Popup window</a></li>
  23. </ul>
  24. <a href="#starting-qstardict" name="starting-qstardict"><h2>Starting QStarDict</h2></a>
  25. <p>It is possible to start QStarDict either through the menu of the desktop
  26. environment in the "Education" section or using the command line by typing the
  27. command</p>
  28. <p><code>
  29. qstardict
  30. </code></p>
  31. <a href="#running-in-background" name="running-in-background"><h2>Running in background</h2></a>
  32. <p>When QStarDict is started, it can be either in normal mode, when
  33. the main window is shown as here:
  34. <img src="images/main-window-intro.png" width="100%">
  35. or it can be started in background mode.
  36. </p>
  37. <p>
  38. When QStarDict runs in background mode, it is displayed in the notification area:
  39. </p>
  40. <p align="center"><img src="images/notification-area.png"></p>
  41. <p>
  42. The purpose of the background mode is to make it possible for QStarDict to scan
  43. selection in other applications and to show the popup window with dictionary
  44. articles.
  45. See the section on <a href="#popup-window">popup window</a>
  46. for more details.
  47. </p>
  48. <p>
  49. In order to make QStarDict able to run in background, the corresponding setting
  50. should be set on:
  51. <img src="images/settings-run-in-background.png" width="100%">
  52. By default it is on.
  53. </p>
  54. <p>
  55. QStarDict remembers whether it was in normal or background mode on exit, and
  56. on a subsequent start it restores the state of being in background.
  57. </p>
  58. <p>
  59. If you want QStarDict to be started in background, use the
  60. <code>--background</code> command line option by starting QStarDict as
  61. </p><p>
  62. <code>
  63. qstardict --background
  64. </code>
  65. </p>
  66. <a href="#starting-with-system" name="starting-with-system"><h2>Starting with system</h2></a>
  67. <p>
  68. It is possible to set up starting of QStarDict with system in common desktop
  69. environments. In order to enable starting of QStarDict with system, use the
  70. corresponding setting:
  71. </p>
  72. <p align="center"><img src="images/settings-start-with-system.png" width="100%"></p>
  73. <p>
  74. By default starting with system is off.
  75. </p>
  76. <a href="#installing-kiwix-dictionaries" name="installing-kiwix-dictionaries">
  77. <h2>Installing Kiwix dictionaries</h2></a>
  78. <p>
  79. <a href="https://kiwix.org/en/">Kiwix</a> is a project which goal is to create offline versions of websites. The most
  80. prominent of these websites for using with QStarDict is <a href="https://www.wiktionary.org/">Wiktionary</a>.
  81. </p>
  82. <p>
  83. In order to download offline versions of Wiktionary for languages you are interested in, visit
  84. <a href="https://download.kiwix.org/zim/wiktionary/">Kiwix ZIM download page</a> and select the
  85. "nopic" version of Wiktionary for the language you are interested in.
  86. </p>
  87. <p>Note that the language specified in the filename is the target language, not a
  88. source language. Each language contains articles for words in all source languages,
  89. in the target language. For instance, if you want to look up words in Russian
  90. translated to English, you need to use the file with "en_all" language code.
  91. </p>
  92. <p>Examples of filenames:</p>
  93. <ul>
  94. <li>"wiktionary_en_all_nopic_2023-07.zim" is a dictionary in English for all languages</li>
  95. <li>"wiktionary_ru_all_nopic_2023-09.zim" is a dictionary in Russian for all languages</li>
  96. </ul>
  97. <p>
  98. Let us suppose that you have downloaded a file "wiktionary_en_all_nopic_2023-07.zim" to "~/Downloads" directory.
  99. </p>
  100. <p>
  101. It can be installed from the "Dictionaries" tab of the Settings Dialog, which can be opened using
  102. "Settings"&nbsp;→&nbsp;"Configure QStarDict" menu in the main window:
  103. <img src="images/settings-dictionaries-add.png" width="100%">
  104. </p><p>
  105. In order to install a dictionary, press the "Add Dictionary" button, which is marked on the screenshot.
  106. </p>
  107. <p>
  108. Doing it would result in opening a file dialog:
  109. </p>
  110. <img src="images/file-dialog-kiwix.png" width="100%">
  111. <p>
  112. In the file dialog, select "Kiwix ZIM files" filter (marked on the screenshot) and then pick
  113. the ZIM file you want to add.
  114. </p>
  115. <p>When the file is selected, an add dictionary dialog would appear:</p>
  116. <img src="images/add-dialog-kiwix.png">
  117. <p>
  118. It would prompt you to move the dictionary file to a QStarDict's directory.
  119. </p>
  120. <p>
  121. It is also possible to not move, but create a symbolink link to the dictionary
  122. file. In order to do it, select "Symlink" in the combobox in the add dialog.
  123. </p>
  124. <p>
  125. After importing the dictionary, it would appear at the top of the list of
  126. dictionaries in the settings dialog:
  127. </p>
  128. <img src="images/settings-dictionaries-dict-kiwix.png" width="100%">
  129. <p>
  130. After pressing OK the added dictionary will be enabled and it will be possible to
  131. <a href="#looking-up-words">look up words</a> from it.
  132. </p>
  133. <a href="#installing-stardict-dictionaries" name="installing-stardict-dictionaries"><h2>Installing StarDict dictionaries</h2></a>
  134. <p>
  135. QStarDict supports StarDict 2.x and StarDict 3.x dictionaries.
  136. </p>
  137. <p>
  138. A StarDict dictionary consists of three files:
  139. </p>
  140. <ul>
  141. <li>".ifo", a file containing metadata about the dictionary
  142. <li>".idx", an index file of the dictionary
  143. <li>".dict.dz", a file containing dictionary articles
  144. </ul>
  145. <p>
  146. It is possible to install a StarDict dictionary to QStarDict by opening the "Dictionaries" tab in the Settings Dialog,
  147. which can be opened using "Settings"&nbsp;→&nbsp;"Configure QStarDict" menu in the main window:
  148. <img src="images/settings-dictionaries-add.png" width="100%">
  149. In order to install a dictionary file to QStarDict, press the "Add Dictionary" button, which is marked on the
  150. screenshot.
  151. </p>
  152. <p>
  153. Doing it would result in opening a file dialog:
  154. </p>
  155. <img src="images/file-dialog-stardict.png" width="100%">
  156. <p>
  157. In the file dialog, select "StarDict IFO files" filter (marked on the screenshot) and then pick the ".ifo" file of the dictionary you want to add.
  158. </p>
  159. <p>Note that the <code>.idx</code> and <code>.dict.dz</code> files must be in the same directory as the
  160. <code>.ifo</code> file in order to allow the dictionary to be successfully imported.
  161. </p>
  162. <p>
  163. After importing the dictionary, it would appear at the top of the list of
  164. dictionaries in the settings dialog:
  165. </p>
  166. <img src="images/settings-dictionaries-dict-stardict.png" width="100%">
  167. <p>
  168. After pressing OK the added dictionary will be enabled and it will be possible to
  169. <a href="#looking-up-words">look up words</a> from it.
  170. </p>
  171. <a href="#looking-up-words" name="looking-up-words"><h2>Looking up words</h2></a>
  172. <p>
  173. It is possible to look up words in the main window of QStarDict. The words to be
  174. looked up can be typed into the text input. By default, the words are searched
  175. as soon as they are typed, but this behaviour can be turned off in the General tab
  176. of the settings dialog.
  177. </p>
  178. <a href="#popup-window" name="popup-window"><h2>Popup window</h2></a>
  179. <p>
  180. A popup window is a window that can be shown near words selected by mouse. Its
  181. behaviour can be configured in the "Popup window" tab of the settings dialog.
  182. </p>
  183. </div>
  184. </body>
  185. </html>