Commit graph

1240 commits

Author SHA1 Message Date
Xiao Yi Fang d998563709 opt: before invoke,the parameters have already called reserved() 2024-07-17 14:43:37 +08:00
xiaoyifang 5fb4526158
opt: treat invisible character as whitespace (#1696)
* opt: remove invisible character

* opt: remove invisible character

* opt: whitespace and punct character

* [autofix.ci] apply automated fixes

* opt: whitespace and punct character

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-17 10:44:50 +08:00
xiaoyifang 521c359b24
opt: do not need to reload webview when initialize dictionaries (#1690)
* opt: do not need to reload webview when initialize dictionaries

During this phase ,the webview has not existed yet
2024-07-17 00:38:27 +00:00
xiaoyifang 99ce0a7bbb
fix: SplitFile thread-safe guard (#1688)
* fix: SplitFile thread-safe guard
* add friendly log message

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-16 08:00:17 +00:00
Xiao Yi Fang 7de7a14d66 opt: change the svg to png to suppress qt.svg warning 2024-07-15 15:55:31 +08:00
YiFang Xiao 323395c755 fix:mdx dictionary make issue compatibility 2024-07-10 23:59:34 +08:00
xiaoyifang 029c09633b
Merge pull request #1667 from xiaoyifang/opt/zoomfactor-range
opt: valid zoomfactor range from 0.25 to 5
2024-07-10 18:02:59 +08:00
xiaoyifang dfbdb7cb5f
Merge pull request #1668 from xiaoyifang/opt/remove-xapian-enable-position-option
opt: remove unused option
2024-07-10 18:02:08 +08:00
Xiao Yi Fang 3a0311ad7d opt: remove unused option 2024-07-10 17:27:29 +08:00
Xiao Yi Fang d2f82e9350 opt: valid zoomfactor range from 0.25 to 5 2024-07-10 17:13:12 +08:00
xiaoyifang 0c4483ae02
Revert "opt: remove wasMaximized logic of mainwindow" (#1664)
* Revert "opt: remove wasMaximized logic of mainwindow"

This reverts commit 99c221c854.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-10 16:28:28 +08:00
xiaoyifang 93ca284bad
opt: refactor code (#1657)
* opt: refactor code

* [autofix.ci] apply automated fixes

* opt: refactor code

* opt: refactor code

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-10 13:47:53 +08:00
xiaoyifang dcf4ff3dea
Merge pull request #1653 from xiaoyifang/opt/remove-unused
opt: remove unused code
2024-07-09 08:20:12 +08:00
xiaoyifang 7669316bcd
opt: do not show dictionary menu when set the dictionary count=0 (#1652)
* opt: do not show dictionary menu when set the dictionary count=0

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-08 17:51:51 +08:00
Xiao Yi Fang 9eece8db28 opt: remove unused code 2024-07-08 17:51:10 +08:00
xiaoyifang 6486e7b57c
opt: unicode direction (#1646)
* opt: unicode direction

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-06 21:57:40 +08:00
xiaoyifang c4fa9b44e5
fix: set shortcut context (#1644)
* fix: work around to fix ctrl+F in macos popup
2024-07-06 21:57:18 +08:00
xiaoyifang 6cb7be70ec
Merge pull request #1645 from xiaoyifang/opt/rtl-layout
opt: layout according to the language
2024-07-06 17:56:53 +08:00
xiaoyifang 5780bdbbb1
fix: status bar position (#1643)
* fix: statusbar rarely will be blocked by the webview.
---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-06 13:23:22 +08:00
YiFang Xiao 0721a58c01 opt: layout according to the language 2024-07-06 10:51:40 +08:00
xiaoyifang 297795a654
fix: refresh webview when changed darkreader mode (#1641)
* fix: refresh webview when changed darkreader mode

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-05 10:55:08 +08:00
xiaoyifang 922b7c39c6
opt: popup focus (#1635)
* opt: windows title

* opt: popup focus

* opt: windows title

* [autofix.ci] apply automated fixes

* opt: popup articleview setting

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-05 08:44:36 +08:00
xiaoyifang 7252e7b86e
fix: darkreader mode refresh (#1638)
* fix: refresh webview when changed darkreader mode
2024-07-05 08:44:03 +08:00
Xiao Yi Fang ca4d59b306 fix: mdx title should be respected 2024-07-04 16:27:42 +08:00
Xiao Yi Fang 2053511856 opt: remove explict RTL elide mode settings of text layout 2024-07-03 20:21:47 +08:00
xiaoyifang 932b88f743
opt: dictionarygroup refactor in articleview (#1625)
* opt: refactor dictionary logic to seperate class


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-03 15:16:53 +08:00
Xiao Yi Fang b0fb5d2f87 remove debug log 2024-07-03 11:29:29 +08:00
Xiao Yi Fang 89daa70b6b Revert "clean: remove useless code and refactor"
This reverts commit 3a46dd290b.

the changes is not exactly the same.
close the last tab will cause the windows to create a new blank tab which will fall into infinite loop
2024-07-03 11:29:29 +08:00
xiaoyifang ddb9203e34
fix: full text search navigation panel (#1623)
* fix: full text search navigation panel

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-01 22:51:57 +08:00
xiaoyifang d30de48fa8
opt: suppress url title (#1619)
* opt: suppress url title

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-27 18:01:15 +08:00
xiaoyifang 08a952205c
opt: remove address sort function as fts indexing does not need this anymore (#1620) 2024-06-27 18:00:31 +08:00
xiaoyifang 585866f92a
fix: fts search ,highlight mark (#1621)
* fix:mark the searched terms

* fix:mark the searched terms

* fix:mark the searched terms
2024-06-27 18:00:06 +08:00
xiaoyifang 15cb327bbd
opt: rewrite keymodifier (#1614)
* opt: rewrite keyboardstate.cc


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-26 15:58:42 +08:00
xiaoyifang c4caec7d68
opt: headwords dialog (#1600)
* opt: headword dialog optimization

Changes:

- when the headword count < 500000(arbitrary number) ,load all at once.
- opt: remove unused signal
-  headword dialog ui add max filter results


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-25 15:24:33 +08:00
xiaoyifang fba8fd2263
Merge pull request #1613 from xiaoyifang/opt/remove-too-old
remove Q_WS_QWS macro
2024-06-24 21:18:47 +08:00
Xiao Yi Fang 9db7b04dd0 remove Q_WS_QWS macro 2024-06-24 16:05:41 +08:00
xiaoyifang c82db14ea7
opt: respect maxResult parameter (#1611)
* opt: respect maxResult parameter

* opt: respect maxResult parameter

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-24 13:33:47 +08:00
YiFang Xiao 2b9d17251b fix: articleview mainwindow ,fulltextsearch remove QRegExp 2024-06-23 12:47:41 +08:00
YiFang Xiao 76f9e82a31 fix: dictheadword remove QRegExp 2024-06-23 12:47:41 +08:00
Xiao Yi Fang 6d863d9770 opt: stardict replace QRegExp with QRegularExpression 2024-06-23 12:47:41 +08:00
autofix-ci[bot] fd94f31209 [autofix.ci] apply automated fixes 2024-06-23 12:47:41 +08:00
Xiao Yi Fang a3d7c89563 opt: hunspell replace QRegExp with QRegularExpression 2024-06-23 12:47:41 +08:00
Xiao Yi Fang ff6424a291 opt: xdxf replace QRegExp with QRegularExpression 2024-06-23 12:47:41 +08:00
Xiao Yi Fang f87156d265 opt: stardict replace QRegExp with QRegularExpression 2024-06-23 12:47:41 +08:00
Xiao Yi Fang 2b8e46a03a opt: remove unused qregexp 2024-06-23 12:47:41 +08:00
Xiao Yi Fang 0bd6a6083c opt: remove unused qregexp 2024-06-23 12:47:41 +08:00
autofix-ci[bot] 0f39f076cc
[autofix.ci] apply automated fixes 2024-06-22 09:08:08 +00:00
fixes 280f8a4f52
Update xdxf.cc 2024-06-22 12:27:02 +04:00
xiaoyifang aa8f553b32
Update globalregex.cc 2024-06-22 08:48:17 +08:00
xiaoyifang 21aeb27c15
fix: [mdx]object data html (#1602)
* fix: mdx object data subsitition

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-21 21:05:13 +08:00
Xiao Yi Fang a33dbc422e opt: remove webkit specific code 2024-06-21 10:00:52 +08:00
YiFang Xiao 0a8ff8b27b fix: Ctrl+F does not work in scanpopup dialog 2024-06-20 21:27:03 +08:00
shenleban tongying 51ecf09c1d
clean: rename code to code2 in langcoder 2024-06-19 02:20:40 -04:00
shenleban tongying 5c9f67b09c
opt: port away QRegExp in langcoder.cc 2024-06-19 02:10:17 -04:00
shenleban tongying 3a0880fa81 clean: rename LangCoder::findIdsForFilename/findIdsForName/exists 2024-06-18 21:19:18 -04:00
YiFang Xiao 99c221c854 opt: remove wasMaximized logic of mainwindow 2024-06-15 23:09:35 +08:00
xiaoyifang 296251afad
fix: links in webview got focused on default. (#1589)
* fix: links in webview got focused on default.

fix #1581

* fix: links in webview got focused on default.

fix #1581
2024-06-15 21:20:23 +08:00
xiaoyifang ed680f54b3
Merge pull request #1578 from xiaoyifang/opt/page-search-remove-highlight
opt: Ctrl+F page search remove highlight checkbox
2024-06-15 21:19:48 +08:00
xiaoyifang 96f5686173
Merge pull request #1582 from xiaoyifang/opt/activate-windows
opt: remove deprecated method setActiveWindow()
2024-06-15 21:19:30 +08:00
xiaoyifang 47b397276e
Merge pull request #1587 from xiaoyifang/opt/remove-regex-invertedgreedy
opt: remove all the inverted greedy option
2024-06-15 17:55:44 +08:00
xiaoyifang 1195d7e307
Merge pull request #1588 from xiaoyifang/fix/css-global-var
opt: css isolation
2024-06-15 17:55:26 +08:00
autofix-ci[bot] f68f9eb691
[autofix.ci] apply automated fixes 2024-06-15 09:23:13 +00:00
Xiao Yi Fang 5d56515cf6 opt: css isolation 2024-06-15 17:21:44 +08:00
autofix-ci[bot] f15a3ad6a7
[autofix.ci] apply automated fixes 2024-06-15 06:05:23 +00:00
Xiao Yi Fang 422bf9fb74 opt: remove all the inverted greedy option 2024-06-15 14:03:45 +08:00
Xiao Yi Fang 6f6391e5b8 fix: stardict regex invertedgreedy match 2024-06-15 13:45:20 +08:00
YiFang Xiao 5712f63b8e fix: slob truncated file check.
fix #1541
2024-06-14 22:53:45 +08:00
YiFang Xiao 1e37d760e2 fix: slob truncated file check.
fix #1541
2024-06-14 22:53:45 +08:00
xiaoyifang ac8c459e01
Merge pull request #1583 from xiaoyifang/opt/clang-tidy-issues
opt: clean clang tidy issues
2024-06-14 22:53:26 +08:00
YiFang Xiao fb0023abfc opt: clean clang tidy issues 2024-06-14 22:05:14 +08:00
YiFang Xiao 6848ebfe45 opt: remove deprecated method setActivateWindow() 2024-06-14 21:48:29 +08:00
YiFang Xiao 710c07f05f fix: auto pronounce audio does not play 2024-06-14 21:38:51 +08:00
YiFang Xiao 1374905b30 opt: searchPanel hide at start 2024-06-14 20:20:02 +08:00
Xiao Yi Fang 3478c2fe1f opt: fts search dialog does not use caseSensitive option currently 2024-06-14 17:38:46 +08:00
Xiao Yi Fang 585d547d28 opt: erase the need to use extra variable to hold the ftsSearchPanel state 2024-06-14 17:36:05 +08:00
Xiao Yi Fang 39b207fa78 opt: erase the need to use extra variable to hold the searchPanel state 2024-06-14 17:32:16 +08:00
Xiao Yi Fang 3b2de95ff7 opt: remove Control property [noResult] 2024-06-14 17:12:43 +08:00
Xiao Yi Fang 642f3c6ac8 opt: string empty check 2024-06-14 17:03:24 +08:00
Xiao Yi Fang d9b9493b2f opt: remove useless paramater [restart] 2024-06-14 16:52:13 +08:00
Xiao Yi Fang 0f3ce0ec4d opt: remove fts search related selected text 2024-06-14 16:44:51 +08:00
Xiao Yi Fang 4bb4ff38c9 opt: Ctrl+F page search remove highlight checkbox 2024-06-14 16:33:39 +08:00
autofix-ci[bot] caf6424ec8
[autofix.ci] apply automated fixes 2024-06-14 08:17:05 +00:00
Xiao Yi Fang 1dd44405cb fix: auto pronounce audio does not play 2024-06-14 15:47:47 +08:00
xiaoyifang a767f3f030
Merge pull request #1573 from shenlebantongying/clean/del-pack
delete useless MSVC pack pragma in config.hh
2024-06-14 11:29:39 +08:00
Xiao Yi Fang 9141a8f780 opt: remove currentGroup qt style property 2024-06-14 08:31:02 +08:00
shenleban tongying 49f0d16080 delete useless MSVC pack pragma in config.hh 2024-06-13 19:46:20 -04:00
YiFang Xiao 70d31a8f4b opt: tab icon change logic rewrite
fix #1554
2024-06-13 16:51:03 +08:00
Xiao Yi Fang 3a46dd290b clean: remove useless code and refactor 2024-06-13 08:53:02 +08:00
YiFang Xiao 14e2f8661d fix: Scrollbar does not remember position
fix #1555
2024-06-12 22:20:41 +08:00
xiaoyifang 9f09b55327
Merge pull request #1558 from xiaoyifang/opt/tab-position
fix: when tab changes ,the tab page position reset to the start
2024-06-12 20:12:24 +08:00
xiaoyifang 234dc07371
Merge pull request #1562 from xiaoyifang/fix/stardict-unquoted-link
fix: stardict unquoted attribute value
2024-06-12 20:12:02 +08:00
xiaoyifang 7bbab2a759
Merge pull request #1559 from xiaoyifang/opt/articleview-group
opt: remove the argument which pass the GroupComboBox to the ArticleV…
2024-06-12 20:11:45 +08:00
Xiao Yi Fang 65e51b2313 fix: stardict unquoted attribute value 2024-06-12 20:09:15 +08:00
xiaoyifang d16fb0bb83
Merge pull request #1564 from xiaoyifang/opt/darkreader-js-version
deps: upgrade darkreader.js from 4.9.58 to 4.9.86
2024-06-12 17:36:07 +08:00
autofix-ci[bot] aa3b260c96
[autofix.ci] apply automated fixes 2024-06-12 07:55:57 +00:00
Xiao Yi Fang 5aa3eb13cf opt: remove mimetex.cgi logic 2024-06-12 15:54:04 +08:00
Xiao Yi Fang fc5ce3e941 deps: upgrade darkreader.js from 4.9.58 to 4.9.86 2024-06-12 14:21:50 +08:00
xiaoyifang 26bdf52c5e
Update src/ui/articleview.cc
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2024-06-12 13:35:19 +08:00
xiaoyifang 998a97a031
Update src/ui/articleview.cc
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2024-06-12 13:35:02 +08:00
Xiao Yi Fang 0b5e2f140d code smell: remove warning 2024-06-12 10:13:29 +08:00
autofix-ci[bot] 5cdd5f6e2a
[autofix.ci] apply automated fixes 2024-06-12 01:34:42 +00:00
Xiao Yi Fang 93b0da83fc opt: remove the argument which pass the GroupComboBox to the ArticleView class 2024-06-12 09:32:04 +08:00
YiFang Xiao 0c6d6f6c25 fix: when tab changes ,the tab page position reset to the start 2024-06-12 08:28:25 +08:00
shenleban tongying e21d4c60a2 fix: convert DSL description line ends to <br> for HTML display. 2024-06-10 09:30:34 -04:00
shenleban tongying e6a2be83ae
fix: srcset of <img> in mdx format won't show image (#1536)
Co-authored-by: xiaoyifang <105986+xiaoyifang@users.noreply.github.com>
2024-05-29 09:07:23 -04:00
shenleban tongying 05d9a398a0
fix: tray icon <-> toggleMainWindow connected twice (#1535) 2024-05-27 23:06:58 -04:00
shenleban tongying e2e1ca2d49 fix: FFmpeg backend 7.0 compile 2024-05-23 07:29:26 -04:00
shenlebantongying 3856e1e8e8 feat: initial Vcpkg + CMake build for Windows. It don't need prebuilt binaries 2024-05-14 10:55:37 -04:00
shenleban tongying e7c59679ce
fix: disable Qt6.7's dark mode and force Fusion style no matter what (#1512) 2024-05-13 09:22:57 -04:00
shenleban tongying 2cd6ed0756 fix: add timeout for sounddir modification scanning for super large
sound dir and/or slow filesystem
2024-05-09 21:04:22 -04:00
Dmitry Atamanov 8fcefdaf57 Update libraries: fmt to 10.2.1 and toml++ to 3.4.0 2024-04-04 17:44:26 +05:00
xiaoyifang 5e60a6b6df opt: the xapian fts does not concern about the address order 2024-03-27 10:32:45 +08:00
xiaoyifang c1c120e20e
Merge pull request #1441 from shenlebantongying/clean/qsavefile
clean: utilize QSaveFile and improve config/favorite/history file saving
2024-03-26 11:55:05 +08:00
shenleban tongying 3187fdeb64 clean: utilize QSaveFile and improve config/favorite/history file saving 2024-03-25 21:46:17 -04:00
shenleban tongying f8c0e8cd17
clean: rename File::Class to what it is really used. 2024-03-23 00:29:51 -04:00
xiaoyifang e0d09302d2
Merge pull request #1434 from shenlebantongying/fix/punycode-ace-url-handler
fix: url handler and encoded ACE / Punycode / percent encoded URLs
2024-03-22 16:57:37 +08:00
xiaoyifang 2ed43febbf
Merge pull request #1433 from shenlebantongying/clean/dep-qt5
clean: deprecations that won't break Qt5 compatibility
2024-03-22 16:56:12 +08:00
shenleban tongying 8ad68d96df
fix: url handler and encoded ACE / Punycode / percent encoded URLs 2024-03-22 01:39:39 -04:00
autofix-ci[bot] 1724b4f32b
[autofix.ci] apply automated fixes 2024-03-22 01:50:46 +00:00
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