diff --git a/src/qtgui/ssearch_w.cpp b/src/qtgui/ssearch_w.cpp
index 9b401b6c..9544815d 100644
--- a/src/qtgui/ssearch_w.cpp
+++ b/src/qtgui/ssearch_w.cpp
@@ -298,20 +298,43 @@ void SSearch::searchTypeChanged(int typ)
switch (typ) {
case SST_LANG:
queryText->setToolTip(
- tr(
-"Enter query language expression. Cheat sheet:
\n"
-"term1 term2 : 'term1' and 'term2' in any field.
\n"
-"field:term1 : 'term1' in field 'field'.
\n"
-" Standard field names/synonyms:
\n"
-" title/subject/caption, author/from, recipient/to, filename, ext.
\n"
-" Pseudo-fields: dir, mime/format, type/rclcat, date, size.
\n"
-" Two date interval exemples: 2009-03-01/2009-05-20 2009-03-01/P2M.
\n"
-"term1 term2 OR term3 : term1 AND (term2 OR term3).
\n"
-" You can use parentheses to make things clearer.
\n"
-"\"term1 term2\" : phrase (must occur exactly). Possible modifiers:
\n"
-"\"term1 term2\"p : unordered proximity search with default distance.
\n"
-"Use Show Query link when in doubt about result and see manual (<F1>) for more detail.\n"
- ));
+ // Do not modify the text here, test with the
+ // sshelp/qhelp.html file and a browser, then use
+ // sshelp/helphtmltoc.sh to turn to code and insert here
+tr("
Query language cheat-sheet. In doubt: click Show Query. ") + +tr("You should really look at the manual (F1)
") + +tr("| What | Examples | ") + +tr("
|---|---|
| And | one two one AND two one && two |
| Or | one OR two one || two |
| Complex boolean. OR has priority, use parentheses ") + +tr("where needed | (one AND two) OR three |
| Not | -term |
| Phrase | \"pride and prejudice\" |
| Ordered proximity (slack=1) | \"pride prejudice\"o1 |
| Unordered proximity (slack=1) | \"prejudice pride\"po1 |
| Unordered prox. (default slack=10) | \"prejudice pride\"p |
| No stem expansion: capitalize | Floor |
| Field-specific | author:austen title:prejudice |
| AND inside field (no order) | author:jane,austen |
| OR inside field | author:austen/bronte |
| Field names | title/subject/caption author/from recipient/to filename ext |
| Directory path filter | dir:/home/me dir:doc |
| MIME type filter | mime:text/plain mime:video/* |
| Date intervals | date:2018-01-01/2018-31-12 ") + +tr("date:2018 date:2018-01-01/P12M |
| Size | size>100k size<1M |
Query language cheat-sheet. In doubt: click Show Query. + You should really look at the manual (F1)
+| What | Examples | +
|---|---|
| And | one two one AND two one && two |
| Or | one OR two one || two |
| Complex boolean. OR has priority, use parentheses + where needed | (one AND two) OR three |
| Not | -term |
| Phrase | "pride and prejudice" |
| Ordered proximity (slack=1) | "pride prejudice"o1 |
| Unordered proximity (slack=1) | "prejudice pride"po1 |
| Unordered prox. (default slack=10) | "prejudice pride"p |
| No stem expansion: capitalize | Floor |
| Field-specific | author:austen title:prejudice |
| AND inside field (no order) | author:jane,austen |
| OR inside field | author:austen/bronte |
| Field names | title/subject/caption author/from recipient/to filename ext |
| Directory path filter | dir:/home/me dir:doc |
| MIME type filter | mime:text/plain mime:video/* |
| Date intervals | date:2018-01-01/2018-31-12 + date:2018 date:2018-01-01/P12M |
| Size | size>100k size<1M |