Commit graph

19 commits

Author SHA1 Message Date
shenleban tongying 4432de9d50
clean: remove duplicated exCantReadFile definitions
Obviously, it is a result of copy-paste programming
2023-06-19 18:54:17 -04:00
shenleban tongying 1589e14b70
clean: remove redundant dictionaryNativeIcon
`dictionaryNativeIcon` was intended to access the original icon before none-square icons were transformed into squares.

`dictionaryNativeIcon` is only used in dictionaryBar, but according to the intention, it shouldn't.

In reality, `dictionaryNativeIcon` is almost always equal to `dictionaryIcon`.
2023-06-18 22:37:07 -04:00
xiaoyifang 5899aa7c94
fix: highlight fts search result (#792)
* fix: highlight fts search result

* 🎨 apply clang-format changes

* remove accent/diacritic handler used in fts search

* header file adjustment

* fix: qt5.15 compile

* fix: code smell

use const reference variable

* fix: code smell

* fix: code smell

* fix: code smell

* fix: code smell

* 🎨 apply clang-format changes

* fix: code smells

🎨 apply clang-format changes

* opt: fix code smells

remove unused parameters from function `ftsIndexIsOldOrBad`

🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-03 08:29:19 +08:00
xiaoyifang 4147770f85
Opt: ftshelper refactor (#760)
* opt: remove useless ftshelper methods

🎨 apply clang-format changes

opt: slob use xapian as fulltext engine

🎨 apply clang-format changes

opt: refactor ftshelper

🎨 apply clang-format changes

* opt: refactor ftshelper

remove unused variabes and functions.

* 🎨 apply clang-format changes

* opt: refactor ftshelper

remove unused variabes and functions.

* opt: refactor ftshelper

remove unused variabes and functions.

🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-31 07:42:31 +08:00
shenleban tongying 0079cd2933 clean: remove unnecessary header includes
* remove all <QtGUI> which includes *everything* of Qt
* remove unused headers
2023-05-30 20:59:51 +08:00
YiFang Xiao 15e0fa087f opt: replace Mutex::Lock with QMutexLocker 2023-05-30 00:08:01 +08:00
xiaoyifang 715512eda3
feat: allow to customize dictionary name (#722)
* feat: allow to customize dictionary name

* 🎨 apply clang-format changes

* fix: code smell

* feat: allow to set custom dictionary name

* 🎨 apply clang-format changes

* feat: add doc for customizing dictionary name

* 🎨 apply clang-format changes

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-20 22:33:20 +08:00
YiFang Xiao 9c22e7bb21 clean: remove useless comment 2023-05-09 06:16:41 +08:00
xiaoyifang f25bee96e5 fix:startdict parse html incorrect
stardict/xdxf use QDomDocument to parse the html. which result with incorrect html structure.
2023-05-09 06:16:41 +08:00
xiaoyifang c11cff46f0 opt:style changes 2023-05-09 06:16:41 +08:00
xiaoyifang eee71f6cdf opt: remove unneccessary translation and QString conversion 2023-05-08 00:31:21 +08:00
xiaoyifang cfe1a1c8c0 opt: simple case folding 2023-04-29 18:21:42 +08:00
xiaoyifang 325c3fb0bb opt: replace qthreadpool with qfuture
relate #515
2023-04-29 18:08:39 +08:00
xiaoyifang dbe04db7f5 opt: move fsencoding to utils.hh(.cc)
after multi refactor ,the fsencoding only left two methods and has nothing to do with encoding . Base on this condition  ,move the method to utils
2023-04-29 00:56:22 +08:00
xiaoyifang ed4273e540 opt:refactor html:unescape method
close #579
2023-04-28 21:21:38 +08:00
xiaoyifang 12d9ae3ddb fix:stardict bword dictionary compatiblity
fix #567, some word is html encoded
2023-04-27 07:06:42 +08:00
xiaoyifang 3a52323f29 remove unnecessary string conversion 2023-04-25 08:28:40 +08:00
Xiao YiFang c2f856c074 opt: Sorting through the use of strings
there are many string conversion in the system .some of them can be avoided .
2023-04-24 15:11:40 +08:00
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
Renamed from stardict.cc (Browse further)