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
Xiao YiFang
a840a99e5c
clean: replace the string with rawstring
...
replace some html make section with rawstring to achieve a more clear readability
2023-04-16 00:24:11 +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
Xiao YiFang
c472b2cb71
fix:code smell
2023-04-09 12:42:32 +08:00
Xiao YiFang
1996af61a6
fix: mdx dictionary entry://#hashtag navigation
2023-04-09 12:42:32 +08:00
xiaoyifang
83f299bbc3
fix: a possible bug
...
at rare conditions , the for loop will continue to run until the request is canceled.
2023-03-27 13:14:47 +08:00
Xiao YiFang
da406e1e02
fix:remove code smell
2023-03-27 12:23:48 +08:00
Xiao YiFang
6abdaab5d3
fix: mdx file not found exception
2023-03-27 12:23:48 +08:00
Xiao YiFang
a54ee3e716
fix: convert string literal to Raw string to remove code smell
2023-03-11 14:10:02 +08:00
Xiao YiFang
eb5ae99da9
fix: anchor #hashtag navigation failed to work
2023-03-11 14:10:02 +08:00
Xiao YiFang
1072adfad9
Revert "fix: mdx headword total count is incorrect"
...
This reverts commit 66ec6b6d63
.
2023-02-05 13:45:48 +08: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
66ec6b6d63
fix: mdx headword total count is incorrect
2022-11-16 21:09:30 +08:00
Xiao YiFang
85b6b34aed
opt: replace font-face's url in html
2022-10-11 20:57:04 +08: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
4ab26f687c
mdx normal index check logic
2022-10-06 01:39:59 +08:00
Xiao YiFang
98769b6dd2
fix:mdx embeded @font-face support
2022-10-03 20:28:16 +08:00
Xiao YiFang
1eceb1d388
opt: mutex reentry lock
2022-09-19 20:31:40 +08:00
Xiao YiFang
5b94146090
opt:mdx class destruction order
2022-09-18 09:00:27 +08:00
Xiao YiFang
c1953f9d47
opt:website customize icon
2022-09-09 13:53:56 +08:00
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