Commit graph

60 commits

Author SHA1 Message Date
Igor Kushnir 5034348c1a Allow silencing failed-loading-resource warnings
When a referenced audio resource is not found in a DSL or XDXF
dictionary, GoldenDict searches for this resource by filename in all
other dictionaries within the current group. Naturally, the file is
absent from most dictionaries (see #970). Therefore a "Failed loading
resource" warning is printed for almost every dictionary in the current
group.

These warnings are by far the most frequent on my system. And in the
scenario described above there is nothing wrong at all. So the user may
want to silence these warnings to help notice less frequent and more
important messages. Implement categorized logging to enable this
customization. These warnings can now be disabled by adding the
following line in the [Rules] section of a logging configuration file
(e.g. ~/.config/QtProject/qtlogging.ini on GNU/Linux):
    goldendict.dictionary.resource.warning=false
See also https://doc.qt.io/qt-5/qloggingcategory.html#logging-rules
2022-11-25 22:48:38 +03:00
Abs62 e333a03d7c Full-text search: Use separate thread pool for search requests 2022-09-06 17:40:22 +03:00
Abs62 f9652487b9 Zim: A little more support for new format features 2022-06-01 17:51:56 +03:00
Abs62 55122eb739 Zim: Handle new namespace (issue #1502) 2022-05-31 21:08:47 +03:00
data-man 278c143a05 Use std::sort in suitable places 2021-02-01 15:00:31 +00:00
Abs62 8e13789e8f Zim: Handle clusters in random order case 2020-10-06 17:52:30 +03:00
Abs62 6e85b27337 Add Zstd compression support for ZIM format 2020-05-27 14:13:08 +03:00
Abs62 d54e0ca9fd Fix some data races (issue #1218) 2019-11-19 19:20:44 +03:00
Abs62 6d46fd1529 Zim, Aard: Fix language recognition from three-letter codes 2018-12-07 16:18:49 +03:00
Boyuan Yang 5d5432dbad
Fix typos found by codespell 2018-07-07 17:33:15 +08:00
Abs62 d7bc012411 Add option to ignore diacritics while articles search 2018-06-13 19:00:42 +03:00
Abs62 fd00e9d156 Fix gcc 7.3 compiler warnings (#issue 978) 2018-05-21 18:32:04 +03:00
Abs62 5fa5cc123f Full-text search: Allow ignore diacritics while search 2018-04-10 17:49:52 +03:00
Abs62 b30dc0f1a5 Zim: Fix threads synchronization while full-text indexing 2018-03-08 16:32:05 +03:00
Abs62 d3d978e7c9 Zim: More fast interrupt of full-text search 2018-03-08 11:46:19 +03:00
Abs62 1e85a18662 Full-test search: Use dictionary-specific articles sorting while search 2018-03-08 00:23:01 +03:00
Abs62 3deb5ee266 Zim: Sort articles by cluster number while full-text indexing 2018-03-07 23:32:20 +03:00
Abs62 69650fff43 Zim: Add some caching for multi-elements clusters 2018-03-07 17:00:43 +03:00
Abs62 7b4e5a2ff7 Full-text search: A little optimization for memory allocation 2018-03-01 18:44:11 +03:00
Abs62 cbdad22f2d Qt5: Some optimizations for QRegularExpression 2018-02-28 17:15:27 +03:00
Abs62 fe39fc8a05 Qt5: More QRegularExpression instead of QRegExp 2018-02-27 20:18:35 +03:00
Abs62 c204f75e52 Qt5: Use QRegularExpression instead of QRegExp in many cases 2018-02-22 16:55:56 +03:00
Abs62 0b6f36479d Add config file parameter to limit headwords number to expand multi-word headwords while indexing (issie #914) 2017-10-25 17:37:39 +03:00
Abs62 cdf2c0d404 Add option to ignore words order while full-text search 2017-07-25 18:28:29 +03:00
Abs62 eb78238f25 Add support for split zip files 2017-04-24 17:42:01 +03:00
Abs62 3275bc462c Merge branch 'Original' into Qt4x5 2015-06-24 17:55:06 +03:00
Abs62 a483d3af2f Zim: Fix links with char '/' 2015-05-27 18:04:48 +03:00
Abs62 c1ed847095 Merge branch 'Temp' into Qt4x5 2015-05-20 17:48:52 +03:00
Abs62 d401e57913 Zim: Ignore "background-color" style attribute in "body" tag 2015-03-22 21:06:37 +03:00
Abs62 40de8fcdd1 Merge branch 'Original' into Qt4x5 2015-02-09 18:57:32 +03:00
Abs62 91bddcc25a Slob: One more fix for full-text search indexing 2015-01-31 11:42:12 +03:00
Abs62 1c2c1963a4 Merge branch 'Original' into Qt4x5 2015-01-22 17:53:46 +03:00
jjzz 7859474f13 minor change on wiki url 2015-01-07 13:33:26 -05:00
jjzz 6bf6dd46df update ZimDictionary::convert(), proper display 2015-01-07 07:09:33 -05:00
Abs62 49a24f61b1 Zim: Some more links handling 2014-12-26 19:42:31 +03:00
Abs62 0e746be996 Zim: Fix some links handling (issue #555) 2014-12-19 17:12:09 +03:00
Abs62 4b8de48e5c Merge branch 'Original' into Qt4x5 2014-11-27 18:53:52 +03:00
Abs62 83397ce8d5 DSL: Exclude tags [s], [url], [video], [preview] from indexing for full-text search 2014-11-22 17:22:04 +03:00
Abs62 35433d9ea6 Merge branch 'Original' into Qt4x5 2014-05-27 17:59:50 +04:00
Abs62 56770cf4ff Zim: Fix new format links handling 2014-05-23 23:24:07 +04:00
Abs62 9c319da834 Merge branch 'Original' into Qt4x5
Conflicts:
	dictserver.cc
2014-05-10 00:05:07 +04:00
Abs62 055ae55abd Full-text search: Special handling for CJK chars 2014-05-08 16:38:00 +04:00
Abs62 273b1b5757 Merge branch 'Original' into Qt4x5
Conflicts:
	articleview.cc
	btreeidx.cc
2014-05-05 21:31:16 +04:00
Abs62 fb19fb183e Full-text search: Skip some text conversions while load article from Zim and Aard dictionaries 2014-04-29 22:17:06 +04:00
Abs62 488286a75f Some more errors handling 2014-04-25 17:13:56 +04:00
Abs62 90130d0fff Adjust code for Qt5 2014-04-23 18:19:46 +04:00
Abs62 10532279b1 Merge branch 'Original' into Qt4x5
Conflicts:
	article_netmgr.cc
	mainwindow.cc
2014-04-23 18:16:06 +04:00
Abs62 67227eda6b Full-text search: A little optimization of memory usage while indexing 2014-04-18 01:08:54 +04:00
Abs62 fd1d035c01 Add full-text search tuning tab to preferences dialog 2014-04-17 18:31:51 +04:00
Abs62 6a13f6a41e Full-text search: Fix crashes at dictionaries rescan 2014-04-17 18:18:15 +04:00