index.html 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="generator" content="Docutils 0.16: http://docutils.sourceforge.net/" />
  7. <title>Searx-Qt documentation</title>
  8. <style type="text/css">
  9. /*
  10. :Author: CYBERDEViL
  11. :Contact: cyberdevilnl at protonmail d0t com
  12. :Copyright: This stylesheet has been placed in the public domain.
  13. Stylesheet for use with Docutils.
  14. https://docutils.sourceforge.io/docs/howto/html-stylesheets.html
  15. */
  16. /*@import url(html4css1.css);*/
  17. body {
  18. max-width: 800px;
  19. background-color: #161616;
  20. color: #bcb;
  21. }
  22. a {
  23. color: #11aa11;
  24. }
  25. table {
  26. border: none;
  27. background-color: #191919;
  28. }
  29. tr {
  30. border: none;
  31. }
  32. th {
  33. border: none;
  34. text-align: left;
  35. }
  36. td {
  37. border: none;
  38. border-bottom: 1px solid #114411;
  39. text-align: left;
  40. }
  41. /*indent sections a little*/
  42. .section {
  43. margin-left: 12px;
  44. }
  45. /*indent section contents a little*/
  46. p, pre, table {
  47. margin-left: 12px;
  48. }
  49. pre {
  50. font-family: monospace;
  51. background-color: #222;
  52. border: 1px solid #111;
  53. padding: 5px;
  54. }
  55. h1 {
  56. background-color: #222;
  57. padding: 6px;
  58. }
  59. h1 a {
  60. color: #fff;
  61. text-decoration: none;
  62. }
  63. h1 a:hover {
  64. text-decoration: underline;
  65. }
  66. img.header {
  67. max-width: 800px;
  68. height: auto;
  69. width: 100%;
  70. }
  71. img.align-right {
  72. clear: right;
  73. float: right;
  74. margin-left: 1em
  75. }
  76. </style>
  77. </head>
  78. <body>
  79. <div class="document">
  80. <div class="section" id="searx-qt">
  81. <h1>Searx-Qt</h1>
  82. <div class="section" id="lightweight-desktop-application-for-searx">
  83. <h2>Lightweight desktop application for Searx</h2>
  84. <p>This is documentation for Searx-Qt version 0.3</p>
  85. <img alt="Searx-Qt v0.3 screenshot." class="header" src="images/screenshot_0_3.png" />
  86. </div>
  87. </div>
  88. <div class="section" id="id1">
  89. <span id="index"></span><h1>Index</h1>
  90. <ul class="simple">
  91. <li><a class="reference internal" href="#index">Index</a></li>
  92. <li><a class="reference internal" href="#about">About</a></li>
  93. <li><ul class="first">
  94. <li><a class="reference internal" href="#about-summary">Summary</a></li>
  95. </ul>
  96. </li>
  97. <li><ul class="first">
  98. <li><a class="reference internal" href="#about-source">Source</a></li>
  99. </ul>
  100. </li>
  101. <li><ul class="first">
  102. <li><a class="reference internal" href="#about-license">License</a></li>
  103. </ul>
  104. </li>
  105. <li><ul class="first">
  106. <li><a class="reference internal" href="#about-dependencies">Dependencies</a></li>
  107. </ul>
  108. </li>
  109. <li><ul class="first">
  110. <li><a class="reference internal" href="#about-translations">Translations</a></li>
  111. </ul>
  112. </li>
  113. <li><ul class="first">
  114. <li><a class="reference internal" href="#about-contact">Contact</a></li>
  115. </ul>
  116. </li>
  117. <li><a class="reference internal" href="#getting-started">Getting started</a></li>
  118. <li><ul class="first">
  119. <li><a class="reference internal" href="#getting-started-install-dependencies">Install dependencies</a></li>
  120. </ul>
  121. </li>
  122. <li><ul class="first">
  123. <li><a class="reference internal" href="#getting-started-installation">Installation</a></li>
  124. </ul>
  125. </li>
  126. <li><a class="reference internal" href="#usage">Usage</a></li>
  127. <li><ul class="first">
  128. <li><a class="reference internal" href="#usage-profiles">Profiles</a></li>
  129. </ul>
  130. </li>
  131. <li><ul class="first">
  132. <li><a class="reference internal" href="#usage-settings">Settings</a></li>
  133. </ul>
  134. </li>
  135. <li><ul class="first">
  136. <li><a class="reference internal" href="#usage-instances">Instances</a></li>
  137. </ul>
  138. </li>
  139. <li><ul class="first">
  140. <li><a class="reference internal" href="#usage-search">Search</a></li>
  141. </ul>
  142. </li>
  143. <li><a class="reference internal" href="#development">Development</a></li>
  144. <li><ul class="first">
  145. <li><a class="reference internal" href="#development-themes">Themes</a></li>
  146. </ul>
  147. </li>
  148. <li><ul class="first">
  149. <li><a class="reference internal" href="#development-translations">Translations</a></li>
  150. </ul>
  151. </li>
  152. </ul>
  153. </div>
  154. <div class="section" id="id2">
  155. <span id="about"></span><h1><a class="reference internal" href="#about">About</a></h1>
  156. <div class="section" id="summary">
  157. <span id="about-summary"></span><h2><a class="reference internal" href="#about-summary">Summary</a></h2>
  158. <p>Searx-Qt is a lightweight desktop application that lets you search on
  159. public Searx instances listed on <cite>https://searx.space</cite>.</p>
  160. <p>Technically Searx-Qt is a client application that does magic with the Searx
  161. API and Searx-Stats2 it's instances.json.</p>
  162. <p>Since version <cite>0.2</cite> it is also possible to manage your own (private?)
  163. instances with the use of a 'user' profile.</p>
  164. <div class="section" id="searx">
  165. <h3>Searx</h3>
  166. <p>Actual search requests will be made to a server running Searx software,
  167. there are many public available. We call such servers 'Searx instances'
  168. or in this document we may refer to just 'instance(s)'.</p>
  169. <p>If you are not familiar with the Searx project; you can checkout their page
  170. here: <a class="reference external" href="https://searx.github.io/searx/">https://searx.github.io/searx/</a> or <a class="reference external" href="https://searx.me/">https://searx.me/</a></p>
  171. <ul class="simple">
  172. <li>API Docs: <a class="reference external" href="https://searx.github.io/searx/dev/search_api.html">https://searx.github.io/searx/dev/search_api.html</a></li>
  173. <li>Source: <a class="reference external" href="https://github.com/searx/searx">https://github.com/searx/searx</a></li>
  174. <li>License: GPL3</li>
  175. </ul>
  176. </div>
  177. <div class="section" id="searx-stats2">
  178. <h3>Searx-Stats2</h3>
  179. <p>The Searx-Stats2 project lists public Searx instances with statistics. The
  180. original Searx-Stats2 instance is running at <a class="reference external" href="https://searx.space/">https://searx.space/</a>. This is
  181. where Searx-Qt will request a list with instances when the update button
  182. is pressed.</p>
  183. <ul class="simple">
  184. <li>Source: <a class="reference external" href="https://github.com/searxng/searx-space">https://github.com/searxng/searx-space</a></li>
  185. <li>License: GPL3</li>
  186. </ul>
  187. </div>
  188. </div>
  189. <div class="section" id="source">
  190. <span id="about-source"></span><h2><a class="reference internal" href="#about-source">Source</a></h2>
  191. <p><a class="reference external" href="https://notabug.org/CYBERDEViL/searx-qt">https://notabug.org/CYBERDEViL/searx-qt</a></p>
  192. </div>
  193. <div class="section" id="license">
  194. <span id="about-license"></span><h2><a class="reference internal" href="#about-license">License</a></h2>
  195. <ul class="simple">
  196. <li>GPL3 <a class="reference external" href="https://www.gnu.org/licenses/gpl-3.0.en.html">https://www.gnu.org/licenses/gpl-3.0.en.html</a></li>
  197. </ul>
  198. </div>
  199. <div class="section" id="dependencies">
  200. <span id="about-dependencies"></span><h2><a class="reference internal" href="#about-dependencies">Dependencies</a></h2>
  201. <table border="1" class="docutils">
  202. <colgroup>
  203. <col width="10%" />
  204. <col width="11%" />
  205. <col width="11%" />
  206. <col width="68%" />
  207. </colgroup>
  208. <thead valign="bottom">
  209. <tr><th class="head">name</th>
  210. <th class="head">version</th>
  211. <th class="head">license</th>
  212. <th class="head">URL</th>
  213. </tr>
  214. </thead>
  215. <tbody valign="top">
  216. <tr><td>python</td>
  217. <td>3</td>
  218. <td>PSFL</td>
  219. <td><a class="reference external" href="https://docs.python.org/3/license.html">https://docs.python.org/3/license.html</a></td>
  220. </tr>
  221. <tr><td>requests</td>
  222. <td><ul class="first last simple">
  223. <li></li>
  224. </ul>
  225. </td>
  226. <td>Apache 2</td>
  227. <td><a class="reference external" href="http://docs.python-requests.org/en/master/">http://docs.python-requests.org/en/master/</a></td>
  228. </tr>
  229. <tr><td>PyQt5</td>
  230. <td><ul class="first last simple">
  231. <li></li>
  232. </ul>
  233. </td>
  234. <td>GPL3</td>
  235. <td><a class="reference external" href="https://www.riverbankcomputing.com/software/pyqt/intro">https://www.riverbankcomputing.com/software/pyqt/intro</a></td>
  236. </tr>
  237. <tr><td>urllib3</td>
  238. <td><ul class="first last simple">
  239. <li></li>
  240. </ul>
  241. </td>
  242. <td>MIT</td>
  243. <td><a class="reference external" href="https://urllib3.readthedocs.io/">https://urllib3.readthedocs.io/</a></td>
  244. </tr>
  245. </tbody>
  246. </table>
  247. <p><strong>Optional for socks proxy support</strong>:</p>
  248. <blockquote>
  249. <table border="1" class="docutils">
  250. <colgroup>
  251. <col width="14%" />
  252. <col width="15%" />
  253. <col width="15%" />
  254. <col width="56%" />
  255. </colgroup>
  256. <thead valign="bottom">
  257. <tr><th class="head">name</th>
  258. <th class="head">version</th>
  259. <th class="head">license</th>
  260. <th class="head">URL</th>
  261. </tr>
  262. </thead>
  263. <tbody valign="top">
  264. <tr><td>pysocks</td>
  265. <td><ul class="first last simple">
  266. <li></li>
  267. </ul>
  268. </td>
  269. <td>BSD</td>
  270. <td><a class="reference external" href="https://github.com/Anorov/PySocks">https://github.com/Anorov/PySocks</a></td>
  271. </tr>
  272. </tbody>
  273. </table>
  274. </blockquote>
  275. <p><strong>Building</strong>:</p>
  276. <blockquote>
  277. <table border="1" class="docutils">
  278. <colgroup>
  279. <col width="11%" />
  280. <col width="11%" />
  281. <col width="11%" />
  282. <col width="67%" />
  283. </colgroup>
  284. <thead valign="bottom">
  285. <tr><th class="head">name</th>
  286. <th class="head">version</th>
  287. <th class="head">license</th>
  288. <th class="head">URL</th>
  289. </tr>
  290. </thead>
  291. <tbody valign="top">
  292. <tr><td>gettext</td>
  293. <td><ul class="first last simple">
  294. <li></li>
  295. </ul>
  296. </td>
  297. <td>GPL</td>
  298. <td><a class="reference external" href="https://www.gnu.org/software/gettext/">https://www.gnu.org/software/gettext/</a></td>
  299. </tr>
  300. <tr><td>PyQt5-dev</td>
  301. <td>Qt5</td>
  302. <td>GPL3</td>
  303. <td><a class="reference external" href="https://www.riverbankcomputing.com/software/pyqt/intro">https://www.riverbankcomputing.com/software/pyqt/intro</a></td>
  304. </tr>
  305. </tbody>
  306. </table>
  307. </blockquote>
  308. </div>
  309. <div class="section" id="translations">
  310. <span id="about-translations"></span><h2><a class="reference internal" href="#about-translations">Translations</a></h2>
  311. <p>The default language is English.</p>
  312. <p>Since version <cite>0.2</cite> Searx-Qt is able (application-wise, not search results) to
  313. be fully translated with the use of gettext and <cite>.po .pot</cite> files. However the
  314. only translation available currently is for the Dutch language. If you like to
  315. translate Searx-Qt in your language then you can find a example of how to do
  316. that in the <a class="reference internal" href="#development">development section</a>. Please consider opening a
  317. PR on <tt class="docutils literal"><span class="pre">https://notabug.org/CYBERDEViL/searx-qt</span></tt> after your translation has
  318. finished.</p>
  319. </div>
  320. <div class="section" id="contact">
  321. <span id="about-contact"></span><h2><a class="reference internal" href="#about-contact">Contact</a></h2>
  322. <p>Please open a issue on <tt class="docutils literal"><span class="pre">https://notabug.org/cyberdevil/searx-qt</span></tt>.</p>
  323. </div>
  324. </div>
  325. <div class="section" id="id3">
  326. <span id="getting-started"></span><h1><a class="reference internal" href="#getting-started">Getting started</a></h1>
  327. <div class="section" id="install-dependencies">
  328. <span id="getting-started-install-dependencies"></span><h2><a class="reference internal" href="#getting-started-install-dependencies">Install dependencies</a></h2>
  329. <p><strong>Note:</strong> <tt class="docutils literal"><span class="pre">python-requests</span></tt> is also dependent on <tt class="docutils literal"><span class="pre">python-urllib3</span></tt> ;
  330. so <tt class="docutils literal"><span class="pre">python-urllib3</span></tt> will be installed with <tt class="docutils literal"><span class="pre">python-requests</span></tt>
  331. (No need to do a explicit install).</p>
  332. <div class="section" id="debian-ubuntu-based">
  333. <h3>Debian / Ubuntu based</h3>
  334. <p>Install required dependencies:</p>
  335. <pre class="literal-block">
  336. # apt update
  337. # apt upgrade
  338. # apt install python3 python3-requests python3-pyqt5 gettext pyqt5-dev-tools
  339. </pre>
  340. <p><strong>Optional</strong> for socks proxy support:</p>
  341. <pre class="literal-block">
  342. # apt install python3-socks
  343. </pre>
  344. </div>
  345. <div class="section" id="arch-based">
  346. <h3>Arch based</h3>
  347. <p>Install required dependencies:</p>
  348. <pre class="literal-block">
  349. # pacman -Syu python python-requests python-pyqt5 gettext qt5-tools
  350. </pre>
  351. <p><strong>Optional</strong> for socks proxy support:</p>
  352. <pre class="literal-block">
  353. # pacman -S python-pysocks
  354. </pre>
  355. </div>
  356. </div>
  357. <div class="section" id="installation">
  358. <span id="getting-started-installation"></span><h2><a class="reference internal" href="#getting-started-installation">Installation</a></h2>
  359. <p>It is always recommended to let the package-manager of your system
  360. do the installing of software, so your package-manager will keep
  361. track of files installed. Only use <tt class="docutils literal">setup.py</tt> directly if you
  362. know what you are doing.</p>
  363. <p>Since Searx-Qt isn't available in any GNU/Linux distribution (yet?); the
  364. best option is to create a package for your distribution yourself from the
  365. latest release. This will also mean that you have to manually update
  366. Searx-Qt if there is a new version available.</p>
  367. <p><strong>Note:</strong> <a class="reference external" href="https://notabug.org/CYBERDEViL/searx-qt/releases">https://notabug.org/CYBERDEViL/searx-qt/releases</a></p>
  368. <p><strong>Note:</strong> noticed the <tt class="docutils literal">#</tt> or <tt class="docutils literal">$</tt> before every command? When there is a
  369. <tt class="docutils literal">$</tt> before the command, it should be run as a regular user. <tt class="docutils literal">#</tt> as root.</p>
  370. <div class="section" id="debian-based">
  371. <h3>Debian based</h3>
  372. <p>The steps below describe how to get a specific version of Searx-Qt; then
  373. package and install it. This method is available from version
  374. <tt class="docutils literal"><span class="pre">0.1-beta2</span></tt> and up.</p>
  375. <ol class="arabic">
  376. <li><p class="first">Make sure you have <tt class="docutils literal"><span class="pre">python3-stdeb</span></tt> and <tt class="docutils literal">git</tt> installed:</p>
  377. <pre class="literal-block">
  378. # apt install python3-stdeb git
  379. </pre>
  380. </li>
  381. <li><p class="first">Creating a working directory and <tt class="docutils literal">cd</tt> in to it, you may
  382. change this to your own preference:</p>
  383. <pre class="literal-block">
  384. $ mkdir ~/git
  385. $ cd ~/git
  386. </pre>
  387. </li>
  388. <li><p class="first">Cloning the repository and <tt class="docutils literal">cd</tt> in to it:</p>
  389. <pre class="literal-block">
  390. $ git clone &quot;https://notabug.org/CYBERDEViL/searx-qt.git&quot; &quot;searx-qt&quot;
  391. $ cd searx-qt
  392. </pre>
  393. </li>
  394. <li><p class="first">Checkout a specific version:</p>
  395. </li>
  396. </ol>
  397. <blockquote>
  398. <p><strong>Note:</strong> get a list with available tags (versions) with the
  399. <tt class="docutils literal">git tag</tt> command.</p>
  400. <p>Below is a example to checkout version <tt class="docutils literal"><span class="pre">0.3-beta1</span></tt>:</p>
  401. <pre class="literal-block">
  402. $ git checkout 0.3-beta1
  403. </pre>
  404. </blockquote>
  405. <ol class="arabic" start="5">
  406. <li><p class="first">Create .deb:</p>
  407. <pre class="literal-block">
  408. $ ./utils/gen_deb.sh
  409. </pre>
  410. </li>
  411. <li><p class="first">Install the created package:</p>
  412. <pre class="literal-block">
  413. # dpkg -i ./deb_dist/python3-searx-qt_0.3-beta1-1_all.deb
  414. </pre>
  415. </li>
  416. </ol>
  417. </div>
  418. <div class="section" id="id4">
  419. <h3>Arch based</h3>
  420. <p>For Arch based distributions there is a package available in the AUR;
  421. <a class="reference external" href="https://aur.archlinux.org/packages/searx-qt/">https://aur.archlinux.org/packages/searx-qt/</a></p>
  422. <ol class="arabic">
  423. <li><p class="first">Make sure you have <tt class="docutils literal">git</tt> installed:</p>
  424. <pre class="literal-block">
  425. # pacman -S git
  426. </pre>
  427. </li>
  428. <li><p class="first">Creating a working directory and <tt class="docutils literal">cd</tt> in to it, you may change this
  429. to your own preference:</p>
  430. <pre class="literal-block">
  431. $ mkdir ~/pkg
  432. $ cd ~/pkg
  433. </pre>
  434. </li>
  435. <li><p class="first">Getting the <tt class="docutils literal">PKGBUILD</tt> from Arch AUR:</p>
  436. <pre class="literal-block">
  437. $ git clone https://aur.archlinux.org/searx-qt.git
  438. $ cd searx-qt
  439. </pre>
  440. </li>
  441. <li><p class="first">Build and install Searx-Qt package:</p>
  442. <pre class="literal-block">
  443. $ makepkg -si
  444. </pre>
  445. </li>
  446. </ol>
  447. </div>
  448. </div>
  449. </div>
  450. <div class="section" id="id5">
  451. <span id="usage"></span><h1><a class="reference internal" href="#usage">Usage</a></h1>
  452. <div class="section" id="profiles">
  453. <span id="usage-profiles"></span><h2><a class="reference internal" href="#usage-profiles">Profiles</a></h2>
  454. <img alt="Profiles window" class="align-right" src="images/profiles_window.png" />
  455. <p>Profiles are useful when you want to have different settings and/or data without
  456. to having to set it manually every-time. For example you can create a profile
  457. named <cite>Tor</cite> which has different proxy and stats2 settings then you normal
  458. profile.</p>
  459. <dl class="docutils">
  460. <dt>There are two types of profiles:</dt>
  461. <dd><ul class="first last simple">
  462. <li><cite>Stats2</cite> profile</li>
  463. <li><cite>User</cite> profile</li>
  464. </ul>
  465. </dd>
  466. </dl>
  467. <p>The profile type names maybe changed to something better, suggestions are
  468. welcome.</p>
  469. <p>Create a <cite>Stats2</cite> profile if you wish to get/update a list of Searx-instances
  470. from a <cite>Searx-Stats2</cite> instance. For example the default <cite>https://searx.space</cite>.</p>
  471. <p>Create a <cite>User</cite> profile if you wish to add/remove/update your own list with
  472. Searx-instances.</p>
  473. <blockquote>
  474. <div class="line-block">
  475. <div class="line"><strong>NOTE</strong>: Profile types cannot be changed after the creation of the profile,</div>
  476. <div class="line-block">
  477. <div class="line">but you can add multiple profiles of both types.</div>
  478. </div>
  479. </div>
  480. </blockquote>
  481. <div class="section" id="creating-new-profile">
  482. <h3>Creating new profile</h3>
  483. <p>On first usage of <cite>Searx-Qt</cite> you will need to create a new profile. The <cite>Add</cite>
  484. button (of the &quot;Profile select&quot; window) will open a dialog to do so.</p>
  485. <p>There are profile settings presets (Web, Tor, i2p) which you can choose from.
  486. The Tor preset sets the proxy to <tt class="docutils literal">127.0.0.1:9050</tt> and
  487. changes the Searx-Stats2 instance url to the onion address. The i2p preset
  488. sets the proxy to <tt class="docutils literal">127.0.0.1:4444</tt>, it also adds some known
  489. i2p instances of Searx.</p>
  490. <blockquote>
  491. <img alt="Create new profile dialog" src="images/profiles_new.png" />
  492. </blockquote>
  493. </div>
  494. <div class="section" id="deleting-a-profile">
  495. <h3>Deleting a profile</h3>
  496. <p>I hope that it is self explanatory that the <cite>Delete</cite> button of the
  497. &quot;Profile select&quot; window deletes the currently selected profile, it will ask
  498. for confirmation before doing so.</p>
  499. <p>It is not possible to delete a active profile (at-least it shouldn't ;-)).</p>
  500. </div>
  501. </div>
  502. <div class="section" id="settings">
  503. <span id="usage-settings"></span><h2><a class="reference internal" href="#usage-settings">Settings</a></h2>
  504. <div class="section" id="general">
  505. <h3>General</h3>
  506. <img alt="images/settings_general.png" class="align-right" src="images/settings_general.png" />
  507. <div class="section" id="theme">
  508. <h4>Theme</h4>
  509. <p>A <tt class="docutils literal">Theme</tt> is a Searx-Qt specific <tt class="docutils literal">stylesheet</tt> and the <tt class="docutils literal">Base style</tt> is a
  510. Qt theme/style.</p>
  511. <p>The Searx-Qt specific <tt class="docutils literal">Theme</tt> does override the <tt class="docutils literal">Base style</tt>.</p>
  512. </div>
  513. <div class="section" id="cli-output-level">
  514. <h4>CLI output level</h4>
  515. <p>The amount of CLI spam can be set here.</p>
  516. <blockquote>
  517. <ul class="simple">
  518. <li><tt class="docutils literal">Info</tt> does print to <tt class="docutils literal">stdout</tt>.</li>
  519. <li><tt class="docutils literal">Warning</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  520. <li><tt class="docutils literal">Debug</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  521. <li><tt class="docutils literal">Errror</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  522. </ul>
  523. </blockquote>
  524. </div>
  525. </div>
  526. <div class="section" id="connection">
  527. <h3>Connection</h3>
  528. <img alt="images/settings_connection.png" class="align-right" src="images/settings_connection.png" />
  529. <div class="section" id="verify-ssl">
  530. <h4>Verify (SSL)</h4>
  531. <p>Request will fail on a invalid SSL/TLS certificate.</p>
  532. <p>Leave checked if unsure.</p>
  533. <p>See
  534. <a class="reference external" href="https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification">https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification</a>
  535. for a more technical description.</p>
  536. </div>
  537. <div class="section" id="timeout">
  538. <h4>Timeout</h4>
  539. <p>Timeout in seconds for a single request.</p>
  540. <p>Leave it at the default value of 10 seconds if unsure.</p>
  541. <p>See <a class="reference external" href="https://requests.readthedocs.io/en/master/user/advanced/#timeouts">https://requests.readthedocs.io/en/master/user/advanced/#timeouts</a> for a
  542. more technical description.</p>
  543. </div>
  544. <div class="section" id="proxy">
  545. <h4>Proxy</h4>
  546. <p>Here you can set a proxy that will be used for every connection Searx-Qt
  547. makes. Leave the input field blank to use no proxy.</p>
  548. <p>The 'Http' section can be used to proxy plain <a class="reference external" href="http://">http://</a> requests to for
  549. example instances without a certificate. The 'Https' section can be used
  550. to proxy all <a class="reference external" href="https://">https://</a> requests to instances (including fetching the
  551. instances list data from <a class="reference external" href="https://searx.space">https://searx.space</a>) with a certificate. So you
  552. can use a separate proxy for both protocols.</p>
  553. <p>If you use a socks4 or socks5 proxy you probably want to make sure the
  554. 'Proxy DNS' checkbox is checked so DNS requests will also go through the
  555. proxy. DNS proxy is not available for a http proxy type.</p>
  556. </div>
  557. <div class="section" id="user-agents">
  558. <h4>User-agents</h4>
  559. <p>What user-agent string should Searx-Qt send?</p>
  560. <p>After pressing the <cite>Edit</cite> button it will change to a <cite>Save</cite> button, you will
  561. be able to edit the user-agent ?string(s) Searx-Qt will send. Some notes:</p>
  562. <ul class="simple">
  563. <li>One user-agent string per line.</li>
  564. <li>Set total blank to not send any user-agent string.</li>
  565. </ul>
  566. <p>When the <cite>Random</cite> checkbox is checked and there are multiple user-agent
  567. strings set then Searx-Qt will pick a random user-agent string from the list
  568. for every request.</p>
  569. </div>
  570. </div>
  571. <div class="section" id="id6">
  572. <h3>Searx-Stats2</h3>
  573. <p>Here you can change the URL of the Searx-Stats2 instance you like to use
  574. for fetching the instances data.</p>
  575. <blockquote>
  576. <div class="line-block">
  577. <div class="line"><strong>NOTE</strong>: This is only available for a <cite>Stats2</cite> profile type.</div>
  578. </div>
  579. </blockquote>
  580. </div>
  581. <div class="section" id="guard">
  582. <span id="usage-instances"></span><h3>Guard</h3>
  583. <p>Guard can put instances on a timeout or the blacklist when they are failing.</p>
  584. <p>When the Guard rules are set properly, searches will be quicker over time
  585. since failing instances are not used anymore. This reduces the chance of
  586. requesting a search query to a instance that probably will fail again. Also
  587. some instances block our request for whatever reason they have, and there is
  588. no standard response so they all may (and many will) respond diffrently (Thus
  589. we can not properly detect when we may use the API and when not).</p>
  590. <blockquote>
  591. <ul class="simple">
  592. <li>It should be obvious that when <tt class="docutils literal">Enable guard</tt> is checked that Guard is enabled, when not checked Guard is disabled.</li>
  593. <li>When Guard is enabled it is advised to also enable the <tt class="docutils literal">Store log</tt> option so that old failures can be evaluated against new failures after Searx-Qt has been restarted.</li>
  594. <li>Below the <tt class="docutils literal">Store log</tt> option is a spinbox that defines for how long log entries will be stored (in days).</li>
  595. <li>A rule defines what a fail is and what should happen with the failing instance.</li>
  596. </ul>
  597. </blockquote>
  598. <img alt="images/settings_guard.png" class="align-right" src="images/settings_guard.png" />
  599. <div class="section" id="rules">
  600. <h4>Rules</h4>
  601. <p>A rule has the following variables:</p>
  602. <blockquote>
  603. <ul class="simple">
  604. <li><tt class="docutils literal">Error Type</tt>, the type of error.</li>
  605. <li><tt class="docutils literal">Amount</tt> of fails.</li>
  606. <li><tt class="docutils literal">Timeframe</tt> in which the <tt class="docutils literal">Amount</tt> of fails have to occur.</li>
  607. <li><tt class="docutils literal">Status</tt>, the HTTP response code. (Only used for the <tt class="docutils literal">WrongStatus</tt> <tt class="docutils literal">Error type</tt>).</li>
  608. <li><tt class="docutils literal">Destination</tt>, what should happen to the instance? Should Guard put it on
  609. the blacklist or on a timeout?</li>
  610. <li><tt class="docutils literal">Duration</tt> in minutes of the timeout. (Only used when <tt class="docutils literal">Destionation</tt> is set to <tt class="docutils literal">Timeout</tt>). When <tt class="docutils literal">Timeout</tt> is used as <tt class="docutils literal">Destination</tt> and this is set to <tt class="docutils literal">0</tt> minutes the instance will be on timeout until Searx-Qt
  611. has been restarted.</li>
  612. </ul>
  613. </blockquote>
  614. <p>When <tt class="docutils literal">Error type</tt>, <tt class="docutils literal">Amount</tt>, <tt class="docutils literal">Timeframe</tt> and <tt class="docutils literal">Status</tt> are met the rule
  615. will be triggered and the instance will be put on the <tt class="docutils literal">Destination</tt> for
  616. <tt class="docutils literal">Duration</tt> amount of time in minutes.</p>
  617. </div>
  618. <div class="section" id="log">
  619. <h4>Log</h4>
  620. <p>Here you can see failed search requests. Failed search requests will only
  621. be logged when Guard is enabled.</p>
  622. <p>It logs as little as possible. The following is logged:</p>
  623. <blockquote>
  624. <ul class="simple">
  625. <li>Date and time.</li>
  626. <li>Instance url.</li>
  627. <li>Error Type.</li>
  628. <li>HTTP status code.</li>
  629. <li>HTTP content/Error message (for debugging, may contain error message)</li>
  630. </ul>
  631. </blockquote>
  632. </div>
  633. </div>
  634. </div>
  635. <div class="section" id="instances">
  636. <h2><a class="reference internal" href="#usage-instances">Instances</a></h2>
  637. <img alt="images/instances.png" class="align-right" src="images/instances.png" />
  638. <p>A Searx instance is a server running the Searx project. Since we want to
  639. preform searches to Searx instance(s) we need addresses of those
  640. instance(s).</p>
  641. <p>The interface to manage instances is on the right.</p>
  642. <div class="section" id="with-stats2-profile-type">
  643. <h3>With <cite>Stats2</cite> profile type</h3>
  644. <p>When your profile is a <cite>Stats2</cite> type, the Searx-instances will be fetched
  645. from <tt class="docutils literal"><span class="pre">https://searx.space/data/instances.json</span></tt> (or any other set in the
  646. settings by your preference). The <tt class="docutils literal">instances.json</tt> from <tt class="docutils literal">search.space</tt>
  647. also contains a lot of other data about the instances it lists (which we can
  648. use to filter instances based on our preferences).</p>
  649. <p>When Searx-Qt is used for the first time you will need to update the
  650. instances table. There is a 'Update' button between the Filter and the
  651. Table that can be used for this. Searx-Qt will not update this automatically!</p>
  652. <p>It maybe useful to update the instances data so now and then since public
  653. instances appear, disappear and their stats change over time.</p>
  654. </div>
  655. <div class="section" id="with-user-profile-type">
  656. <h3>With <cite>User</cite> profile type</h3>
  657. <p>If your profile is a <cite>User</cite> type you will have to add addresses of instances
  658. manually.</p>
  659. <p>This can be done by pressing the <cite>Add instance</cite> button right above
  660. the instances table, a dialog will pop-up asking for the address to add
  661. (without scheme).</p>
  662. <p>The scheme (<a class="reference external" href="http://">http://</a> or <a class="reference external" href="https://">https://</a>) can be selected from the combobox.</p>
  663. <p>There is also a &quot;Update data on add&quot; checkbox, when this is checked
  664. and <cite>Add</cite> is pressed it will automatically download data from
  665. <cite>http(s)://your-address/config</cite>. Downloading/updating this data may also be
  666. done later by right clicking on a (or multiple) Searx-instances in the table
  667. and pressing <cite>Update selected</cite>.</p>
  668. </div>
  669. <div class="section" id="instances-table">
  670. <span id="usage-instances-table"></span><h3>Instances table</h3>
  671. <p>The instances table can be used to browse instances with their data that
  672. remain after all filters. The table is also used to set the current
  673. instance by left-clicking on one.</p>
  674. <p>The currently used instance should also be visible bottom right in the
  675. application it's status-bar.</p>
  676. <p>Right-clicking in the table opens a context-menu from where you can do
  677. the following:</p>
  678. <ul class="simple">
  679. <li>Whitelist/blacklist selected instance(s).</li>
  680. <li>Temporary blacklist.</li>
  681. <li>Copy selected instance(s) it's/their URL(s).</li>
  682. <li>Select All instances (CTRL+A should do the same).</li>
  683. <li>Hide or show columns.</li>
  684. </ul>
  685. <p>If your profile is a <cite>User</cite> profile the context-menu will have the
  686. following extra actions:</p>
  687. <ul class="simple">
  688. <li>Remove selected instance(s).</li>
  689. <li>Update selected instance(s).</li>
  690. </ul>
  691. </div>
  692. <div class="section" id="filter-instances">
  693. <h3>Filter instances</h3>
  694. <p>When a filter is enabled and the instance it's value that is being
  695. matched is unknown then it is excluded by default!</p>
  696. <div class="section" id="network">
  697. <h4>Network</h4>
  698. <p>Filter instances on network type. Only instances that match one of the
  699. checked network types remain.</p>
  700. </div>
  701. <div class="section" id="require-asn-privacy">
  702. <h4>Require ASN privacy</h4>
  703. <p>Excludes instances that run their server at a known malicious network.
  704. Like for example CloudFlare, Google, Akamai etc..</p>
  705. <p>This does not give any guarantee, it only filters <strong>known</strong> privacy
  706. violators!</p>
  707. <p>For a full list of known malicious networks (technical):
  708. <a class="reference external" href="https://github.com/dalf/searx-stats2/blob/master/searxstats/data/asn.py">https://github.com/dalf/searx-stats2/blob/master/searxstats/data/asn.py</a></p>
  709. </div>
  710. <div class="section" id="require-ipv6">
  711. <h4>Require IPv6</h4>
  712. <p>Exclude instances that don't have at least one IPv6 address.</p>
  713. </div>
  714. <div class="section" id="min-version">
  715. <h4>Min version</h4>
  716. <p>When a minimum version is set only instances that have the minimum set
  717. or higher -version are included.</p>
  718. <blockquote>
  719. <ul class="simple">
  720. <li>When <tt class="docutils literal">Development</tt> is checked it will also include git versions.</li>
  721. <li>When <tt class="docutils literal">Unknown suffix</tt> is checked it will also include git versions with a
  722. unknown commit hash</li>
  723. </ul>
  724. </blockquote>
  725. </div>
  726. <div class="section" id="blacklist">
  727. <h4>Blacklist</h4>
  728. <p>Here are the URLs of the instances that have been blacklisted, either manually
  729. or automatically by Guard (when enabled).</p>
  730. <p>There is a button right to each blacklist item to remove it from the
  731. blacklist.</p>
  732. <p>Hovering the remove button or the url of a blacklist item will show a tooltip
  733. with some more info.</p>
  734. <p>You can manually blacklist a instance by right clicking on a instance in
  735. the instances table and click 'Add to blacklist'; multiple instances can
  736. be blacklisted at once.</p>
  737. <p>Blacklisted instances will be excluded from the table by default.</p>
  738. </div>
  739. <div class="section" id="whitelist">
  740. <h4>Whitelist</h4>
  741. <p>Here are the URLs of the instances that have been manually whitelisted.
  742. There is a button right to each whitelist item to remove it from the
  743. whitelist.</p>
  744. <p>You can manually whitelist a instance by right clicking on a instance in
  745. the instances table and click 'Add to whitelist'; multiple instances can
  746. be whitelisted at once.</p>
  747. <p>Whitelisted instances will be in the table by default except when they are on
  748. the timeout list.</p>
  749. </div>
  750. <div class="section" id="id7">
  751. <h4>Timeout</h4>
  752. <p>This is a temporary blacklist. Instances manually put on a timeout will stay
  753. here until Searx-Qt is restarted. When Guard is enabled it also may put
  754. instances here depending on the set rules, those may persist after Searx-Qt is
  755. restarted depending on the rule(s).</p>
  756. <p>Hovering the remove button or the url of a timeout item will show a tooltip
  757. with some more info.</p>
  758. </div>
  759. </div>
  760. </div>
  761. <div class="section" id="search">
  762. <span id="usage-search"></span><h2><a class="reference internal" href="#usage-search">Search</a></h2>
  763. <div class="section" id="search-bar">
  764. <span id="usage-search-bar"></span><h3>Search bar</h3>
  765. <img alt="images/search_bar.png" src="images/search_bar.png" />
  766. <div class="section" id="fallback">
  767. <span id="usage-search-bar-fallback"></span><h4>Fallback</h4>
  768. <p>When checked it will pick a random instance from the instances table if a
  769. search request fails one way or another and re-try the same request with
  770. the freshly picked instance. There is a maximum amount of 10 tries (10
  771. different instances to try the same request on).</p>
  772. <p>What is fail?</p>
  773. <ul class="simple">
  774. <li>Connection errors including timeout.</li>
  775. <li>Wrong status code (not 200).</li>
  776. <li>No or malformed results returned.</li>
  777. </ul>
  778. </div>
  779. <div class="section" id="random-every">
  780. <span id="usage-search-random-every"></span><h4>Random every</h4>
  781. <p>When checked it will automatically pick a random instance on a search request,
  782. it will also hide the 'Random search button' because it makes it obsolete.</p>
  783. <p>When not checked it will do search requests on the same instance unless the
  784. request fails somehow and 'Fallback' is checked. Exception is when the
  785. 'Random search button' is used for the search request.</p>
  786. </div>
  787. <div class="section" id="random-search-button">
  788. <span id="usage-search-bar-random-search-button"></span><h4>Random search button</h4>
  789. <p>When pressed it will pick a random instance from the list and preform the
  790. search request.</p>
  791. </div>
  792. <div class="section" id="reload-button">
  793. <span id="usage-search-bar-reload-button"></span><h4>Reload button</h4>
  794. <p>When pressed it basically preforms a search request without 'Fallback'
  795. whenever it is enabled or not, it also doesn't reset the page number. So
  796. it can act as a reload button thus it's name, but it does more.</p>
  797. <p>Note: When a search argument like the search query, instance URL,
  798. categories/engines etc. has changed by user interaction it will do the
  799. request with those changes, that isn't a real reload of the previous
  800. request.</p>
  801. <p>Dev-note: Probably this behavior should change or the name/icon should
  802. change to something more fitting.</p>
  803. </div>
  804. <div class="section" id="search-button">
  805. <span id="usage-search-bar-search-button"></span><h4>Search button</h4>
  806. <p>Preform a search request on the currently selected instance.</p>
  807. <p>Page number is reset, 'Fallback' and 'Random Every' options are honored.</p>
  808. </div>
  809. <div class="section" id="search-query-input">
  810. <span id="usage-search-bar-search-query-input"></span><h4>Search query input</h4>
  811. <p>The query you like to search for.</p>
  812. <p>See <a class="reference external" href="https://searx.github.io/searx/user/search_syntax.html">https://searx.github.io/searx/user/search_syntax.html</a> for what is
  813. possible.</p>
  814. <p>It will do a search request on <tt class="docutils literal">enter</tt> key pressed, same behavior as
  815. when the 'Search button' has been pressed.</p>
  816. </div>
  817. </div>
  818. <div class="section" id="search-options">
  819. <span id="usage-search-options"></span><h3>Search options</h3>
  820. <img alt="Search options bar" src="images/search_options.png" />
  821. <p><strong>NOTE</strong>: Right clicking in (on the picture above) the dark area opens a
  822. context-menu where you can manage what options you want to be visible or
  823. not as shown in the image below.</p>
  824. <img alt="Search options context menu" class="align-right" src="images/search_options_rmb.png" />
  825. <p><strong>NOTE</strong>: Left-click (mouse) on the <tt class="docutils literal">Categories</tt> or <tt class="docutils literal">Engines</tt> label will
  826. toggle the label collapsed/expanded state, to be able to reduce the height
  827. when multiple options are selected.</p>
  828. <p><strong>NOTE</strong>: Right-click (mouse) on <tt class="docutils literal">Categories</tt> or <tt class="docutils literal">Engines</tt> label will open
  829. a context menu with a option to uncheck all for convenience.</p>
  830. <div class="section" id="categories">
  831. <span id="usage-search-options-categories"></span><h4>Categories</h4>
  832. <img alt="Categories menu" class="align-right" src="images/categories_menu.png" />
  833. <p>A category is basically a collection of engines. When a category gets checked
  834. then all the engines it represents will also be checked which in turn will
  835. filter out all Searx-instances that don't have at least one of the checked
  836. engines enabled.</p>
  837. <p>Multiple categories may be selected.</p>
  838. <p>The default (non-editable) categories will be compiled from categories listed
  839. in engines. Besides default categories there is also a option to create custom
  840. categories.</p>
  841. <img alt="Custom categories window" src="images/custom_categories.png" />
  842. </div>
  843. <div class="section" id="engines">
  844. <span id="usage-search-options-engines"></span><h4>Engines</h4>
  845. <p>Here you can toggle what search engines should be enabled. It will
  846. automatically filter out all instances from the instances table that doesn't
  847. have at least one of the checked engines enabled. The checked engines will
  848. be send with a search request to a Searx instance with the <cite>enabled_engines</cite>
  849. param. You should only get results from engines that are checked.</p>
  850. <p>If no engine is checked it means that it may return results of any engine
  851. in the list.</p>
  852. <p>The list with engines is created with data from the
  853. <a class="reference internal" href="#usage-instances-table">instances table</a>, so only engines are listed that
  854. are available from the instances table.</p>
  855. </div>
  856. <div class="section" id="period">
  857. <span id="usage-search-options-period"></span><h4>Period</h4>
  858. <p>Search period you like results from. Options are <tt class="docutils literal">Last day</tt>,
  859. <tt class="docutils literal">Last week</tt>, <tt class="docutils literal">Last month</tt> or <tt class="docutils literal">Last year</tt>.</p>
  860. </div>
  861. <div class="section" id="language">
  862. <span id="usage-search-options-language"></span><h4>Language</h4>
  863. <p>If you want results in a specific language than you can select one here. The
  864. set language will persist on restart.</p>
  865. <p>Since Searx-Qt 0.3 there is a option to mark languages a favorites. Favorites
  866. will appear on the top of the combobox list so you won't have to scroll.</p>
  867. <p>Adding a language to favorite can be done by hovering the language and
  868. pressing the spacebar on your keyboard. Removing a favorite works the same,
  869. hover the favorite language and press the spacebar on your keyboard.</p>
  870. <blockquote>
  871. <div class="line-block">
  872. <div class="line"><strong>NOTE</strong>: Not all engines have language support and not all engines </div>
  873. <div class="line-block">
  874. <div class="line">honor the requested language. Searx-qt does not (yet?) act on </div>
  875. <div class="line">this.</div>
  876. </div>
  877. </div>
  878. <div class="line-block">
  879. <div class="line"><strong>NOTE</strong>: When <tt class="docutils literal">Default language</tt> is set that means the default language</div>
  880. <div class="line-block">
  881. <div class="line">of the instance.</div>
  882. </div>
  883. </div>
  884. </blockquote>
  885. </div>
  886. </div>
  887. <div class="section" id="search-results">
  888. <h3>Search results</h3>
  889. <div class="section" id="find-text-in-results">
  890. <h4>Find text in results</h4>
  891. <p>The find widget to search text inside the results can be opened/focused by the
  892. keyboard shortcut <tt class="docutils literal">Ctrl + F</tt>.</p>
  893. <p>Shortcuts that may be used while the find text input is activated:</p>
  894. <blockquote>
  895. <ul class="simple">
  896. <li><tt class="docutils literal">Return</tt> to find the next match.</li>
  897. <li><tt class="docutils literal">Shift + Return</tt> to find the previous match.</li>
  898. <li><tt class="docutils literal">Escape</tt> to close.</li>
  899. </ul>
  900. </blockquote>
  901. </div>
  902. </div>
  903. </div>
  904. </div>
  905. <div class="section" id="id8">
  906. <span id="development"></span><h1><a class="reference internal" href="#development">Development</a></h1>
  907. <p><strong>NOTE</strong>: Make sure you are in the Searx-Qt source root (where utils/,
  908. locales/, searxqt/ etc.. are).</p>
  909. <p><strong>NOTE</strong>: To run Searx-Qt without need to install:</p>
  910. <pre class="literal-block">
  911. # Copy the executable from ./bin to cwd (searx-qt source root)
  912. cp bin/searx-qt ./
  913. # Start
  914. ./searx-qt
  915. </pre>
  916. <div class="section" id="themes">
  917. <span id="development-themes"></span><h2><a class="reference internal" href="#development-themes">Themes</a></h2>
  918. <div class="section" id="create-new-theme">
  919. <h3>Create new theme</h3>
  920. <p>A theme consists of icons, application css and search result/fail css.</p>
  921. <p>Simple example to create a new theme from the default theme:</p>
  922. <p><strong>NOTE</strong>: Replace <tt class="docutils literal">your_theme</tt> with the name of your new theme.</p>
  923. <p><strong>NOTE</strong>: For this example you should know basic CSS.</p>
  924. <ol class="arabic">
  925. <li><p class="first">Setup structure for new theme.</p>
  926. <blockquote>
  927. <pre class="code literal-block">
  928. cp -r ./themes/default/ ./themes/your_theme/
  929. </pre>
  930. </blockquote>
  931. </li>
  932. <li><p class="first">Edit the application style <tt class="docutils literal">./themes/your_theme/style.css</tt>.</p>
  933. </li>
  934. <li><p class="first">Edit the css used for failed search result message <tt class="docutils literal">./themes/your_theme/html_fail.css</tt>.</p>
  935. </li>
  936. <li><p class="first">Edit the css used for search results <tt class="docutils literal">./themes/your_theme/html_results.css</tt></p>
  937. </li>
  938. <li><p class="first">Edit the icons (don't change their size) <tt class="docutils literal"><span class="pre">./themes/your_theme/icons/*.png</span></tt></p>
  939. </li>
  940. <li><p class="first">Open <tt class="docutils literal">./themes/your_theme/manifest.json</tt> and change the <tt class="docutils literal">name</tt> variable to the pretty name of your new theme.</p>
  941. </li>
  942. <li><p class="first">See if your theme is listed, when not there is a error:</p>
  943. <pre class="literal-block">
  944. python ./utils/themes_tool.py list
  945. </pre>
  946. </li>
  947. <li><p class="first">Compile the theme:</p>
  948. <pre class="literal-block">
  949. python ./utils/themes_tool.py make your_theme
  950. </pre>
  951. </li>
  952. <li><p class="first">Open Searx-Qt, go to settings, change to your new theme (it should be listed, else there is an error) and test it:</p>
  953. <pre class="literal-block">
  954. ./searx-qt
  955. </pre>
  956. </li>
  957. <li><p class="first">Done? :-)</p>
  958. </li>
  959. </ol>
  960. </div>
  961. </div>
  962. <div class="section" id="id9">
  963. <span id="development-translations"></span><h2><a class="reference internal" href="#development-translations">Translations</a></h2>
  964. <p>Searx-Qt will try to find a translation for your system locale and use that
  965. when found.</p>
  966. <p>To test translations the system locale should be installed for that language,
  967. it doesn't have to be set for testing since we can easly override the <tt class="docutils literal">LANG</tt>
  968. environment variable before executing Searx-Qt.</p>
  969. <p><strong>NOTE</strong>: The examples below are for a Dutch language translation, you
  970. should replace <tt class="docutils literal">nl_NL</tt> with the i18n locale ID of the language you whish to
  971. translate.</p>
  972. <div class="section" id="create-new-translation">
  973. <h3>Create new translation</h3>
  974. <ol class="arabic">
  975. <li><p class="first">Setup structure for new language:</p>
  976. <pre class="literal-block">
  977. # Update the searx-qt.pot template file.
  978. ./utils/locale_tool.sh -c
  979. # Create directory structure.
  980. mkdir -p ./locales/nl_NL/LC_MESSAGES/
  981. # Copy the template file to our new directory.
  982. cp ./locales/searx-qt.pot ./locales/nl_NL/LC_MESSAGES/searx-qt.po
  983. # Check if our new language is found. It should be listed.
  984. ./utils/locale_tool.sh --list
  985. </pre>
  986. </li>
  987. <li><p class="first">Start working on the translation.</p>
  988. <p>You can edit the <tt class="docutils literal"><span class="pre">./locales/nl_NL/LC_MESSAGES/searx-qt.po</span></tt> file with a
  989. text editor or a special editor for translations (that can handle <tt class="docutils literal">.po</tt>
  990. files like for example Poedit).</p>
  991. </li>
  992. <li><p class="first">Compile the translation:</p>
  993. <pre class="literal-block">
  994. ./utils/locale_tool.sh -m nl_NL
  995. </pre>
  996. </li>
  997. <li><p class="first">Test the translation:</p>
  998. <pre class="literal-block">
  999. # Note: overriding XDG_DATA_HOME only for debugging translations! Themes
  1000. # will not work.
  1001. XDG_DATA_HOME=&quot;$(pwd -P)/&quot; LANG=nl_NL.UTF-8 ./searx-qt
  1002. </pre>
  1003. </li>
  1004. </ol>
  1005. </div>
  1006. <div class="section" id="update-existing-translation">
  1007. <h3>Update existing translation</h3>
  1008. <ol class="arabic">
  1009. <li><p class="first">Update files:</p>
  1010. <pre class="literal-block">
  1011. # Update the .pot template file.
  1012. ./utils/locale_tool.sh -c
  1013. # Update the translation it's .po file
  1014. ./utils/locale_tool.sh -u nl_NL
  1015. </pre>
  1016. </li>
  1017. <li><p class="first">Edit the translation:</p>
  1018. <p>You can edit the <tt class="docutils literal"><span class="pre">./locales/nl_NL/LC_MESSAGES/searx-qt.po</span></tt> file with a
  1019. text editor or a special editor for translations (that can handle <tt class="docutils literal">.po</tt>
  1020. files like for example Poedit).</p>
  1021. </li>
  1022. <li><p class="first">Compile the translation:</p>
  1023. <pre class="literal-block">
  1024. ./utils/locale_tool.sh -m nl_NL
  1025. </pre>
  1026. </li>
  1027. <li><p class="first">Test the translation:</p>
  1028. <pre class="literal-block">
  1029. # Note: overriding XDG_DATA_HOME only for debugging translations! Themes
  1030. # will not work.
  1031. XDG_DATA_HOME=&quot;$(pwd -P)/&quot; LANG=nl_NL.UTF-8 ./searx-qt
  1032. </pre>
  1033. </li>
  1034. </ol>
  1035. </div>
  1036. </div>
  1037. </div>
  1038. </div>
  1039. </body>
  1040. </html>