Commit graph

612 commits

Author SHA1 Message Date
xiaoyifang 966b477b26 🎨 apply clang-format changes 2023-05-28 15:50:08 +08:00
YiFang Xiao cfec24f4bb opt: use auto and for range in building index 2023-05-28 15:50:08 +08:00
YiFang Xiao 2cbcab16ba fix: switch dictionary should change the headwords in the dialog
fix #752
2023-05-27 23:53:16 +08:00
xiaoyifang 3858932ec4
feat!: add libzim dependency (#725)
* feat!: add libzim dependency

* 🎨 apply clang-format changes

* action: add libzim dependency to action

* feat!: change dependency folder

* action: add zim support

* feat!: add libzim support

* action: fix sonarcloud check

* doc: add libzim readme

* action: cmake build

* action: cmake check

* fix: code smell

* action: cmake check

* action: cmake on Macos

* action: cmake on Macos

* feat: use libzim to read title and description

* 🎨 apply clang-format changes

* feat: split zim file support

* feat: loadArticle refactor

* 🎨 apply clang-format changes

* 🎨 apply clang-format changes

* feat: update library and goldendict.pro

* 🎨 apply clang-format changes

* fix:word count

* 🎨 apply clang-format changes

* fix: video src url subsititue

* 🎨 apply clang-format changes

* zim: headword is not usually a valid

it is from title and url.

* fix: remove nested try catch

* zim: fix resource loading issue.

* 🎨 apply clang-format changes

* action: remove libao

* zim: process url

some old zim dictionary url does not contain namespace such as
/C/url

make the old and new zim dictionary's url consistent without the leading
../C/  etc.

* 🎨 apply clang-format changes

* zim: process url

remove leading dot and slash
such as ../-/assets  ,remove ../

* 🎨 apply clang-format changes

* zim: remove resourceIndex creation

use libzim to read the resource directly.

* zim: only iterate all the articles

* 🎨 apply clang-format changes

* fix: code smell

* 🎨 apply clang-format changes

* zim: refactor method to convert url to wstring

* 🎨 apply clang-format changes

* fix:code smell

* 🎨 apply clang-format changes

* zim: update windows dependencies

* zim: add mutex lock

* 🎨 apply clang-format changes

* fix: code smell

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-27 12:12:16 +08:00
YiFang Xiao fe29fdddc1 opt: add command line option --no-tts
when specified, the speech tab in the sources dialog will be disabled.

close #747
2023-05-27 12:11:37 +08:00
xiaoyifang defc2447cf
opt: convert escape string to rawstring (#749)
* opt: convert escape string to rawstring

* 🎨 apply clang-format changes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-27 00:27:50 +08:00
xiaoyifang 6567e1583f
fix: langcoder trigger a crash (#746)
* fix: langcoder trigger a crash

* 🎨 apply clang-format changes

* fix: move static delcaration into the class

* Update langcoder.hh

* fix: refactor code in langcoder

* 🎨 apply clang-format changes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
2023-05-26 23:55:33 +08:00
YiFang Xiao d3cf46e469 clean code 2023-05-23 19:40:37 +08:00
YiFang Xiao 8b1b2a1628 fix: possible dsl languageForId issue
🎨 apply clang-format changes

action: restrict to current repositroy

other people's repository has no permission to commit fix

fix: refactor langcoder method

🎨 apply clang-format changes

🎨 apply clang-format changes

🎨 apply clang-format changes

fix: code smell

🎨 apply clang-format changes

fix: adjust zlib link on Windows

fix: refactor langcoder structure
2023-05-23 19:03:25 +08:00
YiFang Xiao a8b6fbc754 opt: make the searchPanel can resize to a smaller width
🎨 apply clang-format changes

opt: make the searchPanel can resize to a smaller width

🎨 apply clang-format changes

fix:remove group label in docker
2023-05-23 19:03:21 +08:00
YiFang Xiao 5188ebd646 opt: add extra check about the existence of metadata file 2023-05-21 18:18:46 +08:00
xiaoyifang f562b9bb5f
fix: lingua request error will lost a finish signal (#734)
* fix: lingua request error will lost a finish signal

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-21 16:31:05 +08:00
shenleban tongying 23be164bbe fix: access optional without checking the existence 2023-05-21 16:30:19 +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
xiaoyifang 39992d8284
fix: open epwing dictionary folder (#724)
* fix: open epwing dictionary folder

check whether the current path is dir already

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-20 22:26:33 +08:00
shenleban tongying 329737f1cb opt: replace some QString + arg() with {fmt} in article_maker 2023-05-20 11:46:29 +08:00
xiaoyifang 69ff9b1177
opt: remove DiacriticFolding.txt (#713)
* opt: remove DiacriticFolding.txt

* 🎨 apply clang-format changes

* fix: remove foldedDiacritic method

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-20 10:28:43 +08:00
xiaoyifang d08d5fe576
opt: let qt handle the language direction (#709)
* opt: let qt handle the language direction

* 🎨 apply clang-format changes

* action: modify auto clang format action

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-19 19:41:27 +08:00
YiFang Xiao 1e328e0727 fix: qwarning placed in the wrong place 2023-05-19 19:40:19 +08:00
shenleban tongying d0b2349156 update .desktop and appstream xml 2023-05-18 10:27:40 +08:00
xiaoyifang d174dc16ba
opt:remove non-xapian fulltext creation logic (#643)
* opt!:remove non-xapian fulltext creation logic

BREAKING CHANGE: after this PR, xapian package will have to installed
before the compilation. on Linux, this should be libxapian-dev package.

For common users: all created fulltext which is not created by xapian
before will be recreated using the new
engine.

* fix: remove old fulltext search ui

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-17 22:29:56 +08:00
YiFang Xiao e66f6d6404 opt: redirect the log to the current console
🎨 apply clang-format changes
2023-05-17 01:00:19 +08:00
YiFang Xiao ced19b9f11 Revert "feature:webengineprofile use non off record profile"
This reverts commit e84b5aa861.
2023-05-16 04:44:48 -08:00
YiFang Xiao 5fdf672d53 fix: rename customtransliteration from .cpp to .cc 2023-05-15 04:52:09 -08:00
YiFang Xiao 3d01ded56c fix typo 2023-05-15 11:46:02 +08:00
YiFang Xiao c0aeca7254 fix: selection triggered scanpopup too early
on Ubuntu(Linux),the selection change event occured too often while the delayed time is a little small ,the result is that the popup will show up when users still selecting the text.  Increase the delayed time a little seems can solve this issue.

fix #629
2023-05-14 07:56:38 -08:00
YiFang Xiao ca8dc576cd fix:code smell 2023-05-14 06:32:13 -08:00
YiFang Xiao c40d04ec5e feat: add custom transliteration support
fix #661

i18n: add new translation entries
2023-05-14 06:32:13 -08:00
YiFang Xiao 126e76ee62 fix: fulltext search,found dictionaries update 2023-05-14 14:31:30 +08:00
YiFang Xiao 821cceef1d fix: log-to-file does not work in multithread 2023-05-14 07:32:01 +08:00
xiaoyifang 6e52ae601f opt: refactor log file write 2023-05-14 07:32:01 +08:00
YiFang Xiao 967926cee4 fix: press enter the article view does not get the focus
fix #660
2023-05-13 22:57:08 +08:00
YiFang Xiao 85f3e249f0 fix: remove code smell 2023-05-13 22:44:03 +08:00
YiFang Xiao dfd8112f76 fix: multi monitor issue
taken the changes from From 83020389c8
2023-05-13 22:44:03 +08:00
YiFang Xiao 3265912b28 fix: enable font antialias
fix #315
2023-05-13 14:37:49 +08:00
YiFang Xiao 837f8bcaf8 fix: code smell 2023-05-13 12:39:36 +08:00
YiFang Xiao 60d26e0e0f fix: the scanpopup found dictionaries mixed with mainwindows
fix #677
2023-05-13 12:39:36 +08:00
YiFang Xiao 301db81bd4 opt: move auto release guard to the variable
by this way, developer will have a more clear view about what will happen when released
2023-05-12 16:59:52 +08:00
YiFang Xiao be8331afa8 opt: inspector debug message changes 2023-05-12 16:59:52 +08:00
YiFang Xiao 91a5696361 opt: no need to throw warning when invoke RegisterHotKey 2023-05-12 16:59:52 +08:00
YiFang Xiao d1f5024b2b fix: add default value to js gdMakeArticleActive invoke 2023-05-12 09:20:19 +08:00
YiFang Xiao 3a24a43410 fix: when use arrow key in foundDictionaryPanel ,jump to the target dictionary 2023-05-11 18:43:02 +08:00
yifang xiao 2b72e14b55 fix: phrase send from scanpopup should not escape again
fix #626
2023-05-11 07:08:02 +08:00
yifang xiao b495a1006f opt: only enable highlight dictionary name on modern style 2023-05-09 12:32:09 +00: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
YiFang Xiao 482379e5c7 opt: the relative position will make the absolute position work as expected 2023-05-08 13:27:01 +08:00
xiaoyifang eee71f6cdf opt: remove unneccessary translation and QString conversion 2023-05-08 00:31:21 +08:00
xiaoyifang e8b5e8d19a opt : add padding to modern style 2023-05-07 16:54:15 +08:00