shenleban tongying
2f9f09bb9f
refactor: unify source extensions to .cc and .hh
2023-04-17 16:17:03 -04: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
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
67c74136e8
optimize: tiff method refactor
2022-04-05 21:36:06 +08:00
yifang
fb2eac9b5e
upgrade to 6.2,linux compile
2022-03-11 22:14:40 +08:00
xiaoyifang
7b5511a7bd
upgrade to qt6.2
2022-03-11 22:00:45 +08:00
yifang
f06fc48b40
format:refactor code
2022-02-19 01:08:20 +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
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
402add183e
clean qt_version < 5 code.
2021-12-13 22:43:46 +08:00
xiaoyifang
8405035d2f
refract encoding method
2021-11-06 16:55:51 +08:00
xiaoyifang
f0a3df3d6f
refract encoding method
2021-11-06 16:26:30 +08:00
xiaoyifang
fb2b667cc5
refract code
2021-10-23 17:37:29 +08:00
Abs62
d54e0ca9fd
Fix some data races (issue #1218 )
2019-11-19 19:20:44 +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
Abs62
5fa5cc123f
Full-text search: Allow ignore diacritics while search
2018-04-10 17:49:52 +03:00
Abs62
cbdd6bfe5a
Qt5: Fix some potential issues after using QRegularExpression instead of QRegExp
2018-03-12 00:06:09 +03:00
Abs62
cfd74be181
Qt5: Fix handling of "audio" tag in GLS format
2018-02-28 17:17:10 +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
3f221041e0
GLS: Add partial support for "audio" tag
2017-10-16 18:34:22 +03:00
Abs62
cdf2c0d404
Add option to ignore words order while full-text search
2017-07-25 18:28:29 +03:00
Abs62
375a3c258b
Gls: Handle "qrcx://..." image links
2017-06-22 18:00:18 +03:00
Abs62
71ddc5c323
Use <div> tag instead of <span> to enclose articles
2017-06-09 15:38:23 +03:00
Abs62
eb78238f25
Add support for split zip files
2017-04-24 17:42:01 +03:00
Abs62
94583da9a3
GLS, Stardict: Fix some links handling
2017-03-20 17:36:28 +03:00
Abs62
ffd56c73dc
GLS: Show alternate neadwords in headword tooltip
2017-03-20 17:34:42 +03:00
Abs62
069be03271
Make headers in dictionary info translatable
2017-03-16 18:20:36 +03:00
Abs62
edf52a6fac
GLS: Fix articles count in dictionary info
2017-03-15 17:44:21 +03:00
Abs62
d1147dc4f0
GLS, Stardict: A little optimization for regular expressions
2017-03-13 17:36:23 +03:00
Abs62
5b80f75637
GLS, Stardict: Fix some links handling
2017-03-12 14:40:45 +03:00
Abs62
fa9d1aecd9
Add option to enable/disable search via synonyms
2017-03-09 19:11:17 +03:00
Abs62
a6df1cfb51
More support for GLS format
2017-03-09 19:09:16 +03:00
Abs62
eba7f5578f
Add support for GLS (Babylon source) format
2017-03-07 16:45:09 +03:00