Commit graph

76 commits

Author SHA1 Message Date
shenleban tongying 0cb3bb9142 refactor: abstract FsEncoding::dirname(getDictionaryFilenames()[0])
* FsEncoding::dirname is mostly used with getDictionaryFilenames()[0] to obtain the containing folder of a dict
* Abstract them into Dictionary::Class::getContainingDir()
* FsEncoding::dirname is removed
2023-04-14 12:53:53 +08:00
shenleban tongying e66f97f7db refactor: remove FsEncoding::encode/decode
They never serve any purpose other than converting between std::string <> QString <> char*.
2023-04-14 07:27:59 +08:00
shenleban tongying 32304d4b15 cleanup: remove all useless #include <QDebug>
All Qt Headers already implicitly included it.
2023-03-21 21:15:14 +08:00
Xiao YiFang fabb9d6487 fix:compile error after merge xdxf.cc changes 2023-01-24 21:28:34 +08:00
Abs62 cbdfa586d1 XDXF: Add support for draft revision 034 (issue #1600) 2023-01-24 20:07:15 +08:00
shenleban tongying 2aeed5e705 clang-tidy: apply modernize-use-override 2022-12-29 02:14:53 -05:00
shenleban tongying 4452c06c3e Replace sptr with std::shared_ptr
* Make sptr an alias of std::shared_ptr
* Make old sptr's implicit conversion explict through std::make_shared
2022-11-28 22:54:31 -05:00
Xiao YiFang 83b36a7316 xapian ,fullindex file name different in normal mode and xapian mode 2022-10-06 11:04:48 +08:00
Xiao YiFang ba10f68c1c clean code: replace throw() with noexcept 2022-06-03 21:29:06 +08:00
xiaoyifang 30ce781e6a Revert "improve:handle invalid tag soup improvement, related to old issue #271"
This reverts commit 37d22bc412.
2022-04-10 20:07:00 +08:00
xiaoyifang 67c74136e8 optimize: tiff method refactor 2022-04-05 21:36:06 +08:00
xiaoyifang 7b5511a7bd upgrade to qt6.2 2022-03-11 22:00:45 +08:00
xiaoyifang c2b466ce19 Merge branch 'feature/cpp-refactor-code' into staged 2022-02-03 17:51:40 +08:00
yifang 262e650779 fix: DPRINTF=>GD_DPRINTF ,DDPRINT does not exist now.
do not affect functionality.only existed in comments.
2022-01-15 15:29:20 +08:00
yifang 37d22bc412 improve:handle invalid tag soup improvement, related to old issue #271 2022-01-11 20:33:46 +08:00
xiaoyifang c7d33f4eb9 clean code: remove old cpp feature 2022-01-09 16:35:07 +08:00
yifang de3d7b8b19 clean code:remove QT_VERSION check 2021-12-16 19:59:00 +08:00
yifang 98ca729446 remove qt_version_check macro 2021-12-13 22:45:57 +08:00
xiaoyifang 5eac08c97a rename qt4x5.hh to utils.hh
the filename qt4x5 is not proper now,for the qt4 version can never meet.and the qt5 is actually mean qt>5 .
2021-12-13 22:45:35 +08:00
Abs62 247a076371 XDXF: Fix indexing of the dictionaries with empty "abbreviation" field (issue #1132) 2019-03-17 23:04:14 +03: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 cdf2c0d404 Add option to ignore words order while full-text search 2017-07-25 18:28:29 +03:00
Abs62 af0a6f42cc Correct some log messages 2017-06-22 18:02:04 +03:00
Abs62 eb78238f25 Add support for split zip files 2017-04-24 17:42:01 +03:00
Abs62 499a683537 XDXF: Fix reading for non-Latin charactera while compiled with Qt 5.x 2016-05-29 12:38:50 +03:00
Abs62 e24de4d881 Merge branch 'Original' into Qt4x5
Conflicts:
	xdxf2html.cc
2015-10-14 18:23:46 +03:00
Abs62 b4bb1e9635 Allow search of audio files in sound dictionaries for Xdxf and Stardict-xdxf dictionaries 2015-08-01 13:38:39 +03:00
Abs62 043a10cc98 XDXF: Fix handling of "revision" attribute and "iref" tag 2015-07-07 18:02:06 +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 b9666f7f9f Merge branch 'Original' into Qt4x5
Conflicts:
	bgl_babylon.cc
2014-05-12 18:10:26 +04:00
Abs62 e2e4a6977c Mac-specific: Fix some warnings while compile under MacOS 2014-05-12 17:46:33 +04:00
Abs62 4120213ee8 Rename "DPRINTF" and "FDPRINTF" debug macro 2014-05-11 01:02:31 +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 488286a75f Some more errors handling 2014-04-25 17:13:56 +04:00
Abs62 fbcaf7c2cb Some more error handling 2014-04-24 22:50:47 +04:00
Abs62 10532279b1 Merge branch 'Original' into Qt4x5
Conflicts:
	article_netmgr.cc
	mainwindow.cc
2014-04-23 18:16:06 +04:00
Abs62 fd1d035c01 Add full-text search tuning tab to preferences dialog 2014-04-17 18:31:51 +04:00
Abs62 9ad0d5f985 Implement full-text search 2014-04-16 20:18:28 +04:00
Abs62 0fa4087b38 Merge branch 'Original' into Qt4x5
Conflicts:
	goldendict.pro
	mainwindow.cc
	zim.cc
	zipsounds.cc
2014-02-11 23:39:31 +04:00
Abs62 0c2b182647 Handle 1-bit black/white TIFF images without photometric interpretation tag
(QImage don't handle such images)
2014-02-11 18:02:00 +04:00
Abs62 34271ecc1d Merge branch 'Temp' into Qt4x5
Conflicts:
	article_maker.cc
	article_netmgr.cc
	articleview.cc
	forvo.cc
	goldendict.pro
	hotkeywrapper.cc
	hunspell.cc
	mainwindow.cc
2013-12-18 19:09:48 +04:00
Abs62 49b9ef7799 XDXF: Fix show of dictionary description 2013-11-21 19:03:43 +04:00
Abs62 444938a330 Fix logging to file UTF-8 encoded messages 2013-11-16 22:34:09 +04:00
Abs62 1f87d8a911 Merge branch 'master' into Qt4x5
Conflicts:
	btreeidx.cc
	goldendict.pro
	lsa.cc
	mouseover.cc
	sounddir.cc
	xdxf2html.cc
2013-09-27 17:03:27 +04:00
Abs62 4a414adfdc Some more unhandled exceptions 2013-09-24 17:56:47 +04:00