Xiao YiFang
a8817242bf
custom icon generate
2022-08-10 20:55:43 +08:00
Xiao YiFang
289beca884
opt:replace vector push_back with emplace_back
2022-08-09 20:47:10 +08:00
Xiao YiFang
e7f60a9335
Revert "the last headword in the block has incorrect data length"
...
This reverts commit b617323bfc
.
2022-08-07 11:03:46 +08:00
Xiao YiFang
b617323bfc
the last headword in the block has incorrect data length
2022-06-23 20:15:55 +08:00
Xiao YiFang
01a8995504
the headword length is not correct
...
due to the parse of the headword length , the last headword has incorrect data length ,which has
cross over many headwords.
the string(constData) will ignore the other headwords coming behind the \0 character.
2022-06-22 07:52:19 +08:00
Xiao YiFang
bd02d65ecc
concurrent run will crash application
2022-06-19 20:26:39 +08:00
Xiao YiFang
4edd3b3987
add mutex to scopedmemmap
2022-06-19 13:26:41 +08:00
Xiao YiFang
f65d47602a
concurrent excepton
2022-06-18 20:46:17 +08:00
Xiao YiFang
a5726aead7
replace regularexpress with global static variables
2022-06-18 18:20:58 +08:00
Xiao YiFang
206474364a
feat:mdx lock free when loadArticle
2022-06-14 21:35:21 +08:00
Xiao YiFang
058ba392fd
opt: fullindex need not to care about stylesheet
2022-06-11 21:06:59 +08:00
Xiao YiFang
6c82bf71b6
improve: move temporary to global static
2022-06-11 20:55:15 +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
7071bc5aa2
fix : revert original ensureInitDone() logic
2022-05-19 20:42:46 +08:00
Xiao YiFang
dab5885b02
opt: debug log message
...
convert GDPRINTF macro to gdDebug internal
2022-05-15 12:52:44 +08:00
Xiao YiFang
9d10ca5c2f
opt: remove useless code
...
the mdx**runnable class is useless now ,can be removed.
2022-05-08 16:44:59 +08:00
xiaoyifang
fc0b33181c
clean code:remove mdx runnable
2022-04-18 22:23:48 +08:00
xiaoyifang
ad7242deae
fix id replacement should consider the javascript reference also
2022-04-16 20:30:46 +08:00
xiaoyifang
0759259b76
Revert "optimize: for loop optimize"
...
This reverts commit 0e238c26fb
.
2022-04-13 23:29:36 +08:00
xiaoyifang
2e6cf12d78
clean code: clang-tidy warning
...
.arg(A).arg(B) to .arg(A,B)
2022-04-11 19:10:40 +08:00
xiaoyifang
70b2f8f7d5
fix:unclosed tag caused the following dictionaries can not render correctly
...
<div/> was deemed as a start div tag ,same as <div>,which cause the following dictionaries can not rendered correctly
2022-04-10 20:40:09 +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
658af8525e
fix:QSemphaore changes
2022-04-10 09:33:55 +08:00
xiaoyifang
506c573c03
optimize:remove QSemphore in mdx dictionary
2022-04-09 15:41:33 +08:00
xiaoyifang
67c74136e8
optimize: tiff method refactor
2022-04-05 21:36:06 +08:00
xiaoyifang
7f805043c7
tiff to webp
2022-04-05 13:09:40 +08:00
xiaoyifang
4970958253
fix:mdx dictionary support tiff image
2022-04-04 23:50:33 +08:00
xiaoyifang
0e238c26fb
optimize: for loop optimize
...
mdx dictionaries take the most part of all dictionaries.
when loop through the filepath ,remove mdx file to reduce further check .
2022-03-24 20:41:32 +08:00
YiFang Xiao
f4ab1ed6a6
optimize: move mdx regex to struct
...
only initiliazed once
2022-03-20 18:49:58 +08:00
xiaoyifang
99077318e3
optimize: move local regex to class property .
2022-03-17 20:07:32 +08:00
xiaoyifang
f133877ca6
remove close tag compensation
2022-03-12 19:41:24 +08:00
xiaoyifang
c0eae69aec
mdx close tag is not necessary.
...
dictionary marker should make sure the dictionary is ok.
If not ,the modern browser is the last protection
2022-03-12 19:20:01 +08:00
xiaoyifang
7b5511a7bd
upgrade to qt6.2
2022-03-11 22:00:45 +08:00
yifang
4a96067e86
fix:large memory consumption when edit dictionaries through right menu context
2022-03-03 23:59:42 +08:00
xiaoyifang
9ecc10ed50
performance: Prefer prefix ++/-- operators for non-primitive types.
...
more detail check https://hownot2code.com/2016/06/30/use-a-prefix-increment-operator-i-in-iterators-instead-of-a-postfix-i-operator/
2022-02-16 21:47:03 +08:00
xiaoyifang
c2b466ce19
Merge branch 'feature/cpp-refactor-code' into staged
2022-02-03 17:51:40 +08:00
yifang
a37a24671c
fix: illege mdx dictionary ,css file embed font with a lead dot,such as "./font.woff"
...
the leading dot character will cause the file can not be found.
2022-01-19 21:01:35 +08:00
yifang
37d22bc412
improve:handle invalid tag soup improvement, related to old issue #271
2022-01-11 20:33:46 +08:00
xiaoyifang
c3db39499b
fix:add a protection to check memory overflow.
2022-01-09 18:12:08 +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
Abs62
b10cdf685c
MDict: A little support for video
2021-11-12 21:26:46 +03: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
9f06afab36
Mdx: Fix some links handling for Qt5-based build after RC2-316-3bc8e0
2018-07-19 18:18:50 +03:00
Abs62
3bc8e002d1
Mdx: Fix some extra anchors for Qt5-based build
2018-07-04 18:10:22 +03:00
Abs62
d7bc012411
Add option to ignore diacritics while articles search
2018-06-13 19:00:42 +03:00