shenleban tongying
7feb883408
refactor: move all dictionary parsers to /src/dict/
...
If a file contains `makeDictionaries` then it belongs to there
2023-04-17 16:55:34 -04:00
shenleban tongying
2f9f09bb9f
refactor: unify source extensions to .cc and .hh
2023-04-17 16:17:03 -04:00
shenleban tongying
cd40bfa7d3
feat: remove LibTIFF dependency
...
* Qt already have built-in support for them
* remove qmake option no_extra_tiff_handler
2023-04-16 13:01:26 +08:00
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
540dda26ed
cleanup: Replace all usages of qrcx://localhost with qrc://
...
The replacement command:
git grep -l 'qrcx://localhost' | xargs sed -i 's/qrcx:\/\/localhost/qrc:\/\//g'
The qrcx:// URL scheme was introduced in 2009 or earlier - it is present
in the first commit in GoldenDict's git history. Back then GoldenDict
supported Qt versions earlier than 4.6, in which
QWebSecurityOrigin::addLocalScheme() was introduced. Adding the qrc URL
scheme as local obsoletes the qrcx URL scheme. GoldenDict does not
compile against Qt versions earlier than 4.6, so there is no reason to
use this custom URL scheme anymore.
Co-authored-by: Igor Kushnir <igorkuo@gmail.com>
2023-03-05 15:20:05 -05:00
shenleban tongying
2aeed5e705
clang-tidy: apply modernize-use-override
2022-12-29 02:14:53 -05:00
shenleban tongying
fcfa4e43e2
refactor: replace escaped strings with raw strings via clang-tidy
2022-12-24 17:01:50 -05:00
Xiao YiFang
2263dfc8da
fix: qt warning when parsing unknown color attribute
...
related to goldendict/goldendict#1578
2022-12-11 12:44:30 +08: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
df0622d216
xapian revert the needToRebuildBTreeIndex to needToRebuildIndex
2022-10-08 21:16:15 +08: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
5918077018
[xapian] add windows support
2022-10-06 01:39:59 +08:00
Xiao YiFang
113bbcb020
fix upstream merge conflict
2022-09-06 07:49:55 +08:00
xiaoyifang
417628292d
Merge branch 'goldendict:master' into staged
2022-06-28 15:06:10 +08:00
Abs62
5d51f183d6
DSL: A little more fix resource loading in some cases
2022-06-27 17:43:32 +03:00
Xiao YiFang
bd02d65ecc
concurrent run will crash application
2022-06-19 20:26:39 +08:00
Xiao YiFang
aa93d9f2d9
opt: replace string() with QString::toStdstring
2022-06-06 20:22:55 +08:00
Xiao YiFang
ba10f68c1c
clean code: replace throw() with noexcept
2022-06-03 21:29:06 +08:00
Xiao YiFang
5bb2fce3c4
fix:clang warning in macos
2022-05-29 16:42:04 +08:00
Xiao YiFang
7910209ae1
clean code: remove dsl runnable ,remove comment endline carriage
2022-05-29 16:00:28 +08:00
Xiao YiFang
40f67d7f0f
fix: dsl dictionary crash when skip expandOptionalParts as headword is too long
2022-05-21 22:50:04 +08:00
Xiao YiFang
e9acba5383
opt: dsl dictionary use lambda function instead of Runnable class
2022-05-19 20:53:23 +08:00
xiaoyifang
658af8525e
fix:QSemphaore changes
2022-04-10 09:33:55 +08:00
xiaoyifang
67c74136e8
optimize: tiff method refactor
2022-04-05 21:36:06 +08:00
yifang
b652d50291
optimize: wchar use builtin char32_t
...
optimize: wchar use builtin char32_t
2022-02-17 22:33:58 +08:00
xiaoyifang
c2b466ce19
Merge branch 'feature/cpp-refactor-code' into staged
2022-02-03 17:51:40 +08:00
yifang
2baf7e2a4d
fix: use gd's embed engine to play sound
...
there is a time during port phrase ,I just use the webengine to play
sound which is faster,but restricted to webengine's ability.
do not use webengine to play sound again.
revert to original state.
2022-01-31 08:39:50 +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
xiaoyifang
c7d33f4eb9
clean code: remove old cpp feature
2022-01-09 16:35:07 +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
yifang.xiao
0365015ac6
clean code:
...
remove "#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )" check ,the check should always be true based on current situation.
2021-12-13 22:45:33 +08:00
xiaoyifang
e7779e5302
fix todo
2021-12-13 22:43:46 +08:00
xiaoyifang
402add183e
clean qt_version < 5 code.
2021-12-13 22:43:46 +08:00
xiaoyifang
e07e0ec314
remove if 0 dead code
2021-11-17 22:19:32 +08:00
xiaoyifang
f0a3df3d6f
refract encoding method
2021-11-06 16:26:30 +08:00
xiaoyifang
02a88c98ad
load dsl dictionary performance improved
2021-11-06 15:45:36 +08:00
yifang
cc9fa33733
fix linux compile error
2021-10-23 12:05:16 +08:00
yifang
bf2640bb25
play sound in the dictionary html
2021-09-23 13:05:05 +08:00
Abs62
72dfe25ff3
DSL: Fix resource loading in some cases
2021-02-13 11:23:00 +03:00
Abs62
5d7d553bb5
Dsl: Fix displayed headword selection for the case of ignore diacritic
2020-10-22 18:32:55 +03:00
Abs62
69e37a3d90
DSL: Show multi-word unknown tags
2020-10-09 20:49:35 +03:00
Abs62
b70c3e8c88
DSL: Show unknown tags
2020-10-05 18:44:53 +03:00
Abs62
02930198a8
DSL: Trim spaces in "s" and "url" tags
2019-09-26 19:40:39 +03:00
Abs62
f2aff9a3dd
DSL: Strip tags "<<" and ">>" while full-text search
2019-09-19 18:04:36 +03:00
Abs62
2c5582ec33
DSL: Fix handling of dsl "@" subcard in first line of card
2019-09-19 18:03:52 +03:00
Abs62
780eabac47
DSL: Change of tags handling while full-text search
2019-09-18 18:32:40 +03:00
Abs62
04d9dc43f6
Fix some crashes (issue #1076 )
2019-01-17 17:53:13 +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