Commit graph

95 commits

Author SHA1 Message Date
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
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 2b3a8d16bc Mdx: Fix resource files indexing (issue #971) 2018-04-08 18:00:21 +03:00
Abs62 62529d8a6c Qt5: Fix compilation under early Qt5 versions (issue #990) 2018-04-08 17:48:46 +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 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 eff09c675a MDict: More optimize links handling 2016-11-15 17:39:45 +03:00
Abs62 404999c4e5 MDict: Optimize links handling 2016-11-07 20:31:37 +03:00
Abs62 f0256b2b18 MDict: Fix handling of links with '/' symbol (issue #771) 2016-11-01 19:19:08 +03:00
Abs62 249db51e86 MDict: Fix handling of external links to images (issue #761) 2016-09-25 16:05:40 +03:00
Abs62 3c7c9244c3 Fix case of unclosed <span> tags in articles 2016-05-11 18:56:37 +03:00
Abs62 4290734589 MDict: Fix handling of anchors like "<a id="xxx"> 2016-05-11 17:41:13 +03:00
Abs62 2dda3e62f7 Merge branch 'Original' into Qt4x5 2016-04-14 19:08:36 +03:00
Abs62 5cafac686e MDict: Fix handling of urls with "data" URI scheme in .css (issue #687) 2016-04-14 18:51:00 +03:00
Abs62 eee04266db Merge branch 'Original' into Qt4x5 2016-04-02 01:51:38 +03:00
Abs62 30dad341d1 MDict: Handle local url's in loaded .css 2016-04-02 01:50:19 +03:00
Abs62 8bd4e7ab48 Merge branch 'Temp' into Qt4x5 2016-03-28 21:21:01 +03:00
Abs62 2221beb249 MDict: One more fix for script handling 2016-03-28 21:14:38 +03:00
Abs62 40244f6c1c Merge branch 'Original' into Qt4x5 2016-03-10 00:00:23 +03:00
Abs62 8388cd8ee6 MDict: Fix some scripts handling 2016-03-09 23:06:53 +03:00
Abs62 2ab4eeaf60 Merge branch 'Original' into Qt4x5 2015-10-30 22:24:44 +03:00
Abs62 81d56b73f9 MDict: Fix links handling 2015-10-30 22:21:35 +03:00
Abs62 b2b60fc2e1 Merge branch 'Original' into Qt4x5 2015-10-30 16:34:08 +03:00
Abs62 c2eb4a0ef2 MDict: Handle inter-article anchors 2015-10-28 23:24:10 +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