Commit graph

1121 commits

Author SHA1 Message Date
shenleban tongying 48fc8fceff clean: deprecations that won't break Qt5 compatibility 2024-03-21 21:48:43 -04:00
shenleban tongying 57a5c52620 clean: remove unnecessary passing of openSearchAction to ArticleView's ctor 2024-03-21 19:09:05 -04:00
xiaoyifang be22cb22b6
fix: in portable version,the default content dir lost recursive attribute. (#1430)
* fix: allow edit the content path

* fix: portable version ,add default item

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-20 22:07:58 +08:00
shenleban tongying e8f3a94541
fix: soundDir index not updating when sounds modified (#1427) 2024-03-20 21:44:17 +08:00
xiaoyifang 52c07b9291
Merge pull request #1424 from shenlebantongying/fix/insanly-click-audio-crash
fix: crash when clicking audio insanely fast.
2024-03-20 13:20:38 +08:00
xiaoyifang 728fa4850c
Merge pull request #1425 from shenlebantongying/fix/mac-open-in-systemviewer
fix: "Open Image in System Viewer" doesn't work on macOS
2024-03-20 13:19:03 +08:00
shenleban tongying 0b61888bc7 fix: Open Image in System Viewer doesn't work on macOS 2024-03-20 00:46:40 -04:00
shenleban tongying 483381414f
clean: remove macOS unused code related to gestures (#1421)
* clean: remove macOS unused code related to gestures

We prefer native gestures and disabled gesture.cc long time ago, those are unused

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-20 11:11:35 +08:00
shenleban tongying b9e14f806c
fix: CMake problems found by the openBSD package (#1422)
* fix: CMake problems found by openBSD package

* remove unused WITH_XAPIAN option
* don't link Qt TTS if not requested

* fix: address CMake problems found by openBSD package

* remove unused WITH_XAPIAN option
* don't link Qt TTS if not requested
* Disable some code when TTS is not requested

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-20 11:08:17 +08:00
shenleban tongying 97a3824e9f
fix: crash when clicking play audio insanely fast. 2024-03-19 22:57:30 -04:00
shenleban tongying d546cafda4
fix: a crash when qrcx:// fails.
The reply here might be nullptr.
2024-03-19 03:51:10 -04:00
shenleban tongying dd95690940
clean: simplify tabbar double click detect via qt's built-in methods (#1419)
* clean: simplify tabbar double click detect via qt's built-in methods

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-03-18 17:45:06 +08:00
xiaoyifang 838ec3e037
Merge pull request #1408 from xiaoyifang/opt/css-instric-feature-remove
opt: css feature content-visibility only available in modern style
2024-02-27 19:57:55 +08:00
YiFang Xiao 171a5b78f8 opt: css feature content-visibility only available in modern style 2024-02-27 18:15:37 +08:00
shenleban tongying 32391bda43
fix: reduce darkreader mode white flash further by using QWebEnginePage::setBackgroundColor() (for Qt6.6.3+) (#1406)
* fix: reduce darkreader mode white flash further by using
QWebEnginePage::setBackgroundColor() (for Qt6.6.3+)

In previous Qt6.x versions, this function only set background once and
become invalidated if reload a page.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-27 18:07:00 +08:00
YiFang Xiao 4d58fd83db fix: lost dictionary folder after restart 2024-02-17 21:55:20 +08:00
Xu Jiyong b3778da093
Typo fix for Mediawiki language variant (#1398)
* opt: add the language variant option for wikipedia dictionaries

* fix:default value for 'lang_' parameter

* [autofix.ci] apply automated fixes

* fix: Should have been 'https' for the wikipedia queries.

* fix:typo traditional -> Traditional

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-16 09:11:16 +08:00
YiFang Xiao 85333df5c2 opt: allow add directory in portable mode 2024-02-01 13:20:51 +08:00
YiFang Xiao 28924b5953 opt:refactor code 2024-01-27 10:56:34 +08:00
xiaoyifang 69191e4387
Merge pull request #1386 from xiaoyifang/fix/addon-style
fix: possible crash on macos
2024-01-27 10:34:28 +08:00
YiFang Xiao 54808cd03f fix: ctrl+v in Welcome page will result a wrong search 2024-01-26 16:52:27 +08:00
YiFang Xiao 0596ed5e45 opt: remove debug info 2024-01-26 15:50:01 +08:00
Xu Jiyong 853130ddb7
opt: add the language variant option for wikipedia dictionaries (#1374)
* opt: add the language variant option for wikipedia dictionaries

* fix:default value for 'lang_' parameter

* [autofix.ci] apply automated fixes

* fix: Should have been 'https' for the wikipedia queries.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-26 07:56:17 +08:00
YiFang Xiao e312545204 fix: possible crash on macos 2024-01-24 22:55:34 +08:00
xiaoyifang c15cbbf607
opt: support UP/Down arrow key in headword UI (#1358)
* opt:refactor the code

* opt: headwords dialog response to the Up/Down Key

* opt: when the headword come from headword dialog ,not focus

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-22 17:04:30 +08:00
YiFang Xiao 97e495613b fix: auto audio pronunciation does not work properly 2024-01-21 13:48:07 +08:00
xiaoyifang a06a372314
Merge pull request #1371 from xiaoyifang/fix/group-crash
fix: groups widget crash on macos occasionly
2024-01-21 12:53:24 +08:00
YiFang Xiao 3e87990ec5 fix: groups widget crash on macos occasionly 2024-01-21 12:42:34 +08:00
YiFang Xiao 85ac0b0e60 opt: refactor the code 2024-01-20 11:19:35 +08:00
YiFang Xiao 11af19de3b fix: critial error throw. 2024-01-10 09:57:31 +08:00
xiaoyifang 804aa29788
Merge pull request #1356 from xiaoyifang/fix/middle-button
fix: middle button does not work
2024-01-04 20:39:56 +08:00
YiFang Xiao c2a6b9b7d9 fix: validate the dictionary when push it into the variable 2024-01-04 20:23:05 +08:00
YiFang Xiao 7420944b9d fix: middle button does not work 2024-01-04 20:17:51 +08:00
autofix-ci[bot] 6890a952b3
[autofix.ci] apply automated fixes 2023-12-30 10:15:05 +00:00
YiFang Xiao fa7b3db0bc opt: use qtcpsocket signal to implement the dictserver protocol 2023-12-30 18:13:36 +08:00
YiFang Xiao e35dc22467 opt: link style in the welcomepage 2023-12-21 11:36:58 +08:00
YiFang Xiao 2dbd713ca4 opt: remove popup html 2023-12-21 10:50:15 +08:00
YiFang Xiao 722b11517c opt: welcome page text refinement 2023-12-21 10:46:27 +08:00
YiFang Xiao b5a1192cfd opt: use link instead of button and tooltip 2023-12-20 15:04:57 +08:00
xiaoyifang 17d46fcac1
Merge pull request #1322 from shenlebantongying/mv-impl
clean: move dict implementations out of headers
2023-12-12 14:14:02 +08:00
shenleban tongying cbf5cfee7a
clean: move dict implementations out of headers
class with Q_OBJECT can be defined .cpp file by including .moc
explicitly
2023-12-11 21:21:50 -05:00
YiFang Xiao cdf1ed22ef replace highdpi_scaling with the new name 2023-12-11 17:22:05 +08:00
YiFang Xiao b207691334 opt: remove disable-web-security parameter
this parameter has not documented
2023-12-11 17:19:07 +08:00
xiaoyifang b148ed1da4
Merge pull request #1312 from xiaoyifang/opt/fts-last-pos
opt: the address maybe not ordered
2023-12-06 15:23:44 +08:00
xiaoyifang fc62d115f3
Merge pull request #1311 from xiaoyifang/opt/highlight-term
opt: mark exact word
2023-12-06 15:23:30 +08:00
YiFang Xiao df594e0108 opt: the address maybe not ordered
should not use equal( == ) comparision
2023-12-06 14:57:44 +08:00
YiFang Xiao 923a46217b opt: mark exact word 2023-12-06 14:29:59 +08:00
YiFang Xiao d15cafed49 fix: image temp path 2023-12-06 11:16:35 +08:00
xiaoyifang 9c5e25971b
opt: support to open image in system viewer (#1309)
* opt: open image in external

fix have to wait the resource downloaded

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-06 09:44:17 +08:00
xiaoyifang 64f69d2235
opt: open image in external tool (#1308)
* opt: open image in external tool

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-05 14:59:45 +08:00
xiaoyifang 46e8af5f36
opt: xapian optimize search experience (#1304)
* opt: xapian optimize search experience

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-30 09:49:09 +08:00
YiFang Xiao f03d8b5ea1 opt: do not set the default text 2023-11-29 17:14:51 +08:00
YiFang Xiao 439b780db5 opt: use a new way to handle the highlight matched terms in the fulltext search view page. 2023-11-25 17:13:33 +08:00
xiaoyifang 8c87b934d4
opt: refactor the escape(unescap)Amps (#1300)
* opt: refactor the escape(unescap)Amps

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-24 18:18:14 +08:00
xiaoyifang 1e0823147a
opt: enable xapian position on default (#1299)
* opt: enable xapian position on default

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-24 11:03:21 +08:00
xiaoyifang fb85f68b21
fix: js undefined error (#1298)
* fix: js undefined error

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-23 22:00:19 +08:00
shenleban tongying 30572321f7 fix: force wayland should work for BSD, also remove a unnecessary env check for macOS 2023-11-18 12:46:43 -05:00
xiaoyifang a211d78292
Merge pull request #1284 from xiaoyifang/fix/website-port
fix: website default port
2023-11-13 14:13:41 +08:00
YiFang Xiao d3531b6477 fix: website default port 2023-11-13 10:37:22 +08:00
YiFang Xiao 9a99b392e9 opt: skip mdx 3.0 dictionary 2023-11-12 19:21:57 +08:00
xiaoyifang b2a8eec2a5
fix: dsl encoding detection enhanced. (#1279)
* fix: detect dsl encoding

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-11 16:17:58 +08:00
YiFang Xiao 8c8f40cb53 opt: remove log 2023-11-10 17:47:04 +08:00
YiFang Xiao dd4812f086 fix: dictserver connect timeout change to 2 seconds 2023-11-07 20:54:02 +08:00
xiaoyifang 2bcf4890db opt: refactor database retrieve logic (#1272)
* opt: refactor database retrieve logic

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-07 20:53:05 +08:00
xiaoyifang 10595ab50e
fix: epwing dictionary parsing error (#1263)
* fix: epwing dictionary parsing error

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-29 12:26:58 +08:00
autofix-ci[bot] d2e45e3017
[autofix.ci] apply automated fixes 2023-10-28 05:25:10 +00:00
YiFang Xiao b9e19fdd35 opt: log message 2023-10-28 13:23:14 +08:00
YiFang Xiao 87ae7899ae fix: when path is / only ,there is no need to rearrange the parameters 2023-10-28 13:22:21 +08:00
xiaoyifang 6e7779bd80
Merge pull request #1259 from xiaoyifang/opt/wiki-request-timeout
opt: wikipedia word list optimization
2023-10-27 14:51:01 +08:00
YiFang Xiao bdf5fed904 opt: wikipedia word list optimization 2023-10-27 11:23:52 +08:00
xiaoyifang 78bd94f965
fix: mouse xbutton1(&2) back and forward event (#1258)
* fix: mouse xbutton1(&2) back and forward event

* [autofix.ci] apply automated fixes

* fix: mouse xbutton1&2 back and forward triggered twice.

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-27 07:51:34 +08:00
shenleban tongying b2b865a2cb
feat: add GOLDENDICT_FORCE_WAYLAND to force wayland 2023-10-23 01:45:08 -04:00
autofix-ci[bot] 7f9f203eb6
[autofix.ci] apply automated fixes 2023-10-21 13:40:04 +00:00
YiFang Xiao 6f86102b3a optimize the default css font 2023-10-21 21:30:35 +08:00
xiaoyifang 22f35dd7ee
opt: remove dictionary debug mode (#1249)
* opt: remove dictionary debug mode

* opt: remove dictionary debug mode
2023-10-19 07:37:42 +08:00
YiFang Xiao f0dcc362fa action: remove qt version from check action 2023-10-16 14:47:31 +08:00
xiaoyifang 564d3ddffc
opt: refactor code (#1243)
* opt: refactor code

* opt: refactor str2map method

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-16 07:37:10 +08:00
xiaoyifang 5de4690b2d
fix: audio device change handled (#1242)
* fix: audio device change handled

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-15 23:15:45 +08:00
xiaoyifang 0fbcdda72f
opt: use italic to indicate the no results (#1232)
* opt: use italic to indicate the no results

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-15 22:36:39 +08:00
xiaoyifang 7767d42d2a
Merge pull request #1239 from xiaoyifang/fix/dict-server-hang
fix: reduce wait time on socket
2023-10-13 21:53:58 +08:00
YiFang Xiao 5ec6d50167 fix: reduce wait time on socket 2023-10-13 20:18:33 +08:00
xiaoyifang 01d997a528
opt: remove SecureScheme from custom url register (#1237)
* opt: remove SecureScheme from custom url register

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-13 20:10:09 +08:00
xiaoyifang e8a2eadade
opt: indexing dictionary in status bar does not disappear (#1234)
* opt: indexing dictionary name and progress

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-13 10:43:52 +08:00
YiFang Xiao 0da578c2a3 fix: dsl dictionary crash when creating full text index.
fix #1230
2023-10-12 14:53:08 +08:00
xiaoyifang 0bf06a3099
Merge pull request #1225 from xiaoyifang/opt/refactor-code
opt: make code more readable
2023-10-10 22:57:59 +08:00
xiaoyifang 0be3afa90a
opt: history addItem logic optimization (#1224)
* opt: history addItem logic optimization

* opt: move history logic after url load

* opt: move history logic after url load

* opt: remove Item from history

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
2023-10-10 22:57:26 +08:00
YiFang Xiao f274e658ed fix: remove unused method 2023-10-10 21:37:11 +08:00
YiFang Xiao a45c95ebde opt: refactor some method 2023-10-10 21:29:14 +08:00
YiFang Xiao b4cbf24570 fix: scanpopup flash content
[autofix.ci] apply automated fixes
2023-10-10 21:29:11 +08:00
YiFang Xiao 375b599f6b opt: make code more readable 2023-10-10 10:13:34 +08:00
xiaoyifang d1d654226a
Merge pull request #1199 from xiaoyifang/opt/resource-performance
opt: experimental changes, resource performance, support gdvideo
2023-10-10 07:38:58 +08:00
狂风代码 c0f697b3ec
Add default font style for phonetic symbols (#1223)
* Add default font style for phonetic symbols

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-10 07:38:26 +08:00
YiFang Xiao 245923a084 fix: allow video to be dragged around 2023-10-09 23:13:02 +08:00
YiFang Xiao ffc4ccbb03 opt: use a different way to handle the resources 2023-10-09 23:12:57 +08:00
xiaoyifang b1781b63d6
opt: remove gdpicture & maxPictureWidth which has not been used at all. (#1220)
* opt: remove gdpicture protocol which has lost effect for a long time

* opt: remove maxPictureWidth which has no place to configure this variable value

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-09 19:58:16 +08:00
YiFang Xiao 526621a9c9 opt: remove invalid css style in the style file
[autofix.ci] apply automated fixes
2023-10-09 19:56:37 +08:00
YiFang Xiao 5e148eaea6 fix: fix image path in default article css
[autofix.ci] apply automated fixes
2023-10-09 19:56:34 +08:00
xiaoyifang 64529805ff
fix: dsl max width image (#1217)
* fix: dsl max width image

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-09 14:06:38 +08:00
autofix-ci[bot] e3f6a2849c
[autofix.ci] apply automated fixes 2023-10-08 15:36:55 +00:00
YiFang Xiao 7ec51d9453 fix: use more meaningful tag name 2023-10-08 23:35:12 +08:00
YiFang Xiao 6f9fa8eaa7 fix: mdx audio/video html5 tag src value replacement
[autofix.ci] apply automated fixes
2023-10-08 23:35:09 +08:00
YiFang Xiao 4465355502 fix: invalid url response with 206 partial content many times
[autofix.ci] apply automated fixes
2023-10-08 23:35:05 +08:00
xiaoyifang 3ab2d10e16
opt: remove the reply attribute settings which is not supported in we… (#1200)
* opt: remove the reply attribute settings which is not supported in webengine

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-08 21:50:17 +08:00
xiaoyifang 9578ca3ded
Merge pull request #1215 from xiaoyifang/opt/save-article
fix: save article , process qrc protocol link
2023-10-08 21:42:44 +08:00
YiFang Xiao 810c4b32a2 fix: save article , process qrc protocol link 2023-10-08 16:14:51 +08:00
YiFang Xiao 744b480b1b opt: in the darkmode , set image background to white in case the backgroud is transparent 2023-10-08 10:39:35 +08:00
xiaoyifang 9c3ee03ea9
Merge pull request #1207 from xiaoyifang/opt/request-stall
opt: reduce the network stall time
2023-10-07 22:08:00 +08:00
xiaoyifang 8798f04312
Merge pull request #1210 from xiaoyifang/opt/code-smell
refactor: use static class method instead of instance method
2023-10-07 21:51:26 +08:00
xiaoyifang 47293ada62
Merge pull request #1209 from xiaoyifang/fix/fontsize
fix: word zoom does not work in completer
2023-10-07 21:51:06 +08:00
YiFang Xiao b754a24c6c refactor: reduce nested loop depth 2023-10-07 21:36:40 +08:00
YiFang Xiao 8d46d38a3d refactor: use static class method instead of instance method 2023-10-07 21:29:04 +08:00
YiFang Xiao da9d90efec fix: word zoom does not work in completer 2023-10-07 21:13:12 +08:00
YiFang Xiao f2094bad6c fix: typo 2023-10-07 20:53:14 +08:00
xiaoyifang aebf85ef4a
opt: refactor the code to show untitle & welcome page (#1203)
* opt: refactor the code to show untitle & welcome page

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-07 20:49:38 +08:00
YiFang Xiao e69aabf296 opt: reduce the network stall time 2023-10-07 20:44:36 +08:00
xiaoyifang db0ca76ead
opt: convert for loop to for-range (#1201)
* opt: convert for loop to for-range

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-06 20:59:27 +08:00
xiaoyifang 649cf17595
Merge pull request #1198 from shenlebantongying/fts_crash
fix: makeFTSIndex crash at startup when indexed articleCount is zero
2023-10-06 16:24:47 +08:00
autofix-ci[bot] b3b1a532d0
[autofix.ci] apply automated fixes 2023-10-06 04:54:58 +00:00
shenleban tongying e057722bf9
fix: makeFTSIndex crash when indexed articleCount is zero 2023-10-06 00:45:46 -04:00
autofix-ci[bot] b0975f0253
[autofix.ci] apply automated fixes 2023-10-06 03:59:44 +00:00
shenleban tongying 2bd148dcba
fix: avoid QFile::readall when loading resources 2023-10-05 23:49:26 -04:00
YiFang Xiao 26b04fc9b2 i18n: fix typo in Lingua Libre Dialog
fix #1190
2023-10-03 08:02:24 +08:00
xiaoyifang 660b9fb7f9
fix: long headword cause crash (#1186)
* fix: long headword cause crash

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-30 20:42:38 +08:00
YiFang Xiao c9d7ab2c63 fix: font missing cause phonetic symbols can not displayed correctly 2023-09-30 18:32:18 +08:00
xiaoyifang 471f20f140
Merge pull request #1183 from xiaoyifang/fix/popup-min-height
fix: suggestion list set a minimum height
2023-09-30 11:53:08 +08:00
xiaoyifang ef6e878a31
opt: add translation windows when invoked from console (#1173)
* opt: add an extra console argument to specify the translation windows

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-30 11:40:40 +08:00
YiFang Xiao 3af334a093 fix: suggestion list set a minimum height 2023-09-30 11:23:29 +08:00
YiFang Xiao fa79148d4d opt: change font family 2023-09-28 14:12:42 +08:00
xiaoyifang ec2856336c
opt: add option to disable tts component (#1169)
* opt: add tts config option

* opt:[macos] disable tts by default

* [autofix.ci] apply automated fixes

* opt: add build flags to about dialog

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-26 11:09:05 +08:00
xiaoyifang 19e848ec50
fix: enter event in translate textline (#1158)
* fix: enter event in translate textline

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-21 07:44:58 +08:00
xiaoyifang dcc4b19b56
fix: popup enter does not work (#1149)
* fix: popup enter does not work

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-17 11:13:08 +08:00
xiaoyifang 5154e0061f
fix: website dictionary with port in the url (#1148)
* fix: website dictionary with port in the url

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-17 10:38:29 +08:00
YiFang Xiao 424642cb3d fix: suggestion list scroll to the top 2023-09-14 08:06:42 +08:00
xiaoyifang 6f06f083da
opt: make translateline in toolbar the same height as toolbar (#1140)
* opt: make  translateline in toolbar the same height as toolbar

* Update src/ui/mainwindow.cc

* Update src/ui/mainwindow.cc
2023-09-13 15:44:57 +08:00
xiaoyifang 0278597b56
opt: abbreviate the too long headword to maxHeadwordSize (#1137)
* opt: abbreviate the too long headword to maxHeadwordSize

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-10 22:21:11 +08:00
YiFang Xiao 05fa73128b fix: press enter event handled in translateline 2023-09-10 22:07:09 +08:00
xiaoyifang d4f19cf4cd
fix: use wait condition to rewrite datarequest (#1015)
* fix: use wait condition for datarequest

* fix: rewrite byteAvailable

* [autofix.ci] apply automated fixes

* fix: rewrite qwaitcondition

* [autofix.ci] apply automated fixes

* opt: wait condition

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-10 19:02:31 +08:00
xiaoyifang 8dd9119aec
fix: translatebox press Enter does not translate the selected item (#1134)
* fix: translatebox press Enter does not translate the selected item

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-10 17:52:18 +08:00
xiaoyifang bff9d83efa
opt: add system font configuration (#1125)
* opt: add system font configuration

* [autofix.ci] apply automated fixes

* opt: add option to change the interface font

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-07 09:53:51 +08:00
xiaoyifang 5c9beab96c
fix: search in the current page does not clear found dictionary panel (#1123)
* fix: search in the current page does not clear found dictionary panel

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-05 00:06:03 +08:00
xiaoyifang 9ca35c26a8
style: epwing dictionary css (#1121)
* style: epwing dictionary css

* [autofix.ci] apply automated fixes

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-09-04 19:01:07 +08:00
xiaoyifang 30ceebff2d
Merge pull request #1117 from xiaoyifang/fix/preference-layout
opt: preference layout rearrangement
2023-09-02 22:42:13 +08:00
YiFang Xiao 7ff0790411 opt: preference layout rearrangement 2023-09-02 22:38:47 +08:00
YiFang Xiao cb39049cb7 fix: the headwords got mixed together 2023-09-02 21:07:20 +08:00
YiFang Xiao c865896216 fix: code smells 2023-09-02 15:20:30 +08:00
xiaoyifang e1e98a3c71
Merge pull request #1112 from xiaoyifang/opt/string-compare
opt: refactor the compare logic
2023-09-02 12:45:10 +08:00
autofix-ci[bot] c273622851
[autofix.ci] apply automated fixes 2023-09-02 04:24:55 +00:00
YiFang Xiao 4226abf593 opt: refactor the compare logic 2023-09-02 12:23:13 +08:00
YiFang Xiao 1285cbf68f fix: code smells 2023-09-02 11:45:47 +08:00
YiFang Xiao 74a21e7e26 fix: epwing dictionary reference navigation restrict to certain dictionary 2023-09-02 11:33:53 +08:00
xiaoyifang 8313d93469
opt: refactor a string endswith method (#1110)
* opt: refactor a string endswith method

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-31 08:02:57 +08:00
YiFang Xiao 477f22c304 fix: code smells
[autofix.ci] apply automated fixes
2023-08-31 00:04:28 +08:00
YiFang Xiao 791da91645 fix: navigate through epwing dictionary restricted to certain dictionary 2023-08-30 23:10:19 +08:00
xiaoyifang 2dd04207d1
fix: skip invalid headword in some epwing dictionaries (#1096)
* fix: for some epwing dictionaries , skip invalid headword

fix #1095

* [autofix.ci] apply automated fixes

* fix: epwing detect next text block

* [autofix.ci] apply automated fixes

* fix: epwing getFirstHeadword do not need forwardtext

* fix: epwing ,if epwing subbook does not contain headword ,use menu instead

* [autofix.ci] apply automated fixes

* fix: if epwing subbook does not contain headword ,use menu instead

* [autofix.ci] apply automated fixes

* fix:code smells

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-30 19:12:59 +08:00
xiaoyifang ccd04e0b51
fix: epwing case sensitive (#1093)
* fix: epwing folder name is casesensitive in Linux

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-27 18:30:55 +08:00
xiaoyifang 98af55557e
fix: epwing rebuild issue (#1094)
* fix: epwing rebuild issue

* [autofix.ci] apply automated fixes

* fix: pro project file

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-27 10:15:21 +08:00
YiFang Xiao 78ef410b3b opt: ignore non-exist-files when calculate dictionaries files 2023-08-26 22:39:38 +08:00
xiaoyifang d02baad2ed
fix: epwing dictionary index twice (#1089)
* fix: epwing dictionary index twice

If epwing dictionary contain >1 subbooks, the following subbook will
overwrite the previous index which will cause a "duplicateId" warning
and the dictionary can be be queried.

fix #1082

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-26 21:41:57 +08:00
YiFang Xiao ca1554540d i18n: update translation template 2023-08-26 21:34:09 +08:00
YiFang Xiao 60e39dff89 epwing: upgrade epwing index version 2023-08-26 17:26:50 +08:00
xiaoyifang 6ba8b0c16b
feat: add an option to make debug dictionary easier (#1086)
* feat: add an option to make debug dictionary easier

* fix: code smells

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-26 13:19:21 +08:00
xiaoyifang a21feacbe3
opt: reconstruct the welcome page (#1084)
* opt: welcome page use tooltip instead of a new page

* opt: add theme to tippy

* opt: add translation entry

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-26 09:48:25 +08:00
YiFang Xiao 7576630e06 opt: jquery noConflict 2023-08-25 10:38:42 +08:00
YiFang Xiao 0683afa2b0 opt: add Ctrl+Shift+S to stop the current playing sound
[autofix.ci] apply automated fixes
2023-08-25 08:44:21 +08:00
xiaoyifang 70914ed976
Merge pull request #1076 from MicrochipQ/fix_scanpopup_translatelinetext
fix: update globalbroadcaster translatelinetext also in scanpopup
2023-08-21 21:05:25 +08:00
xiaoyifang 3359f6636a
opt: rewrite solo mode in the dictionary bar (#1073)
* action: output new syntax

* opt: dictionary bar modification,Ctrl for solo selection, Shift restore

* opt: only the first Ctrl + Click event store the existed dictionaries

* [autofix.ci] apply automated fixes

* opt: ctrl switch between single and all dictionaries

* doc: add shortcut document about solo mode

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-21 21:04:04 +08:00
MicrochipQ f8e47370f7 fix: update globalbroadcaster translatelinetext also in scanpopup 2023-08-20 01:30:41 +03:00
YiFang Xiao 3f457334b0 i18n: update translation items 2023-08-19 12:05:49 +08:00
xiaoyifang 77348c7f46
opt: remove invalid index on exit (#1071)
* opt: remove invalid index on exit

* [autofix.ci] apply automated fixes

* fix: code smells

* opt: remove invalid dictionary index

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-17 23:17:53 +08:00
YiFang Xiao c21e57664c fix: handle qcompleter signal 2023-08-12 13:49:27 +08:00
autofix-ci[bot] c56f258a8f
[autofix.ci] apply automated fixes 2023-08-12 04:41:08 +00:00
YiFang Xiao 06fc833146 fix: qcompleter lost signal when qlineedit lost focus
fix #1062
2023-08-12 12:39:23 +08:00
YiFang Xiao 2c3f22630b Revert "fix: no need to installEventFilter( this) to itself"
This reverts commit 7806a86e22.
2023-08-12 12:35:12 +08:00
YiFang Xiao 765cb91828 fix: generate icon name crash with 0 size 2023-08-11 08:41:43 +08:00
YiFang Xiao 51a050c43b fix: remove old unnecessary logic which blocks updating Windows Title 2023-08-10 23:59:29 +08:00
YiFang Xiao 7806a86e22 fix: no need to installEventFilter( this) to itself 2023-08-08 20:41:30 +08:00
YiFang Xiao 1b382fa4b4 opt: remove outline of dictionary name 2023-08-07 21:53:47 +08:00
YiFang Xiao 82bcbaa8f4 fix: fts progress large than 100 2023-08-07 21:53:13 +08:00
shenlebantongying 36ca0d0994 fix: adjust the order of Mainwindow's show() and restoreState/restoreGeometry 2023-08-06 09:37:18 -04:00
xiaoyifang 1ee42bd599
Merge pull request #1044 from xiaoyifang/fix/epwing-unused-method
fix: epwing remove unused method
2023-08-05 20:55:54 +08:00
YiFang Xiao e55027b5a0 fix: epwing remove unused method 2023-08-05 20:47:16 +08:00
YiFang Xiao 091080940f fix: fts temp folder deletion 2023-08-05 20:37:58 +08:00
YiFang Xiao a1de6ce637 opt: optimize the removeDirectory method 2023-08-05 19:36:33 +08:00
YiFang Xiao 43b070add5 fix: code smells 2023-08-05 11:32:19 +08:00
YiFang Xiao a8c3207a76 opt: full text index compact 2023-08-05 10:57:20 +08:00
xiaoyifang ac8e79358c
fix: website dictionary base tag (#1038)
* fix: website dictionary base tag

* [autofix.ci] apply automated fixes

* fix: request header origin

---------

Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-08-03 21:29:36 +08:00
xiaoyifang 217ba5318a
Merge pull request #1034 from xiaoyifang/fix/float-lose-focuse
fix: translate line in floatable toolbar will lose focus
2023-08-01 20:52:05 +08:00
YiFang Xiao 9ca8d057db fix: minor change to the label text 2023-08-01 19:29:10 +08:00
YiFang Xiao 73cbbac6f9 fix: translate line in floatable toolbar will lose focus
fix #1001
2023-08-01 19:26:11 +08:00
xiaoyifang f7e43479d6
Merge pull request #1029 from xiaoyifang/opt/load-slow
opt: optimize the startup speed
2023-07-30 16:50:23 +08:00
autofix-ci[bot] ecdd5166c2 [autofix.ci] apply automated fixes 2023-07-30 16:16:21 +08:00
YiFang Xiao 86eaf18121 opt: optimize the startup speed 2023-07-30 16:13:09 +08:00
shenleban tongying 67f5b1333b
fix: cmake version.txt generation in non-git environments
This was not well defined.
2023-07-30 01:42:41 -04:00
YiFang Xiao 840b7ec12c fix: sonar warning about uninitialized variable
fix #1025
2023-07-30 10:48:49 +08:00
YiFang Xiao 03356fdfab fix: code smells 2023-07-30 08:47:54 +08:00
autofix-ci[bot] a90a79bce2
[autofix.ci] apply automated fixes 2023-07-29 16:54:22 +00:00
YiFang Xiao 2f118da828 opt: convert for loop into modern for range 2023-07-30 00:52:31 +08:00
YiFang Xiao fe1fd14e31 opt: optimize loading splash dialog with loading/check information
[autofix.ci] apply automated fixes
2023-07-30 00:52:28 +08:00
xiaoyifang 0585f5daa4
opt: auto-generate dictionary icon with color (#1021)
* opt: auto-generate dictionary icon with color

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-29 15:08:53 +08:00
YiFang Xiao 149f2bb7de fix: add handlePath log 2023-07-29 14:06:38 +08:00