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
shenlebantongying
1ffd729614
fix: Qt6.4/5's maximize bug https://bugreports.qt.io/browse/QTBUG-115074
2023-07-27 23:27:46 -04:00
xiaoyifang
88117306a7
Revert "fix: restore maximize geometry ( #1013 )"
...
This reverts commit cd560f85fd
.
2023-07-27 23:20:16 +08:00
YiFang Xiao
ea94673a53
opt: remove unnecessary code
2023-07-27 17:26:44 +08:00
xiaoyifang
cd560f85fd
fix: restore maximize geometry ( #1013 )
...
* fix: restore maximize geometry
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-27 17:09:06 +08:00
YiFang Xiao
3941601fbd
fix: code smells
...
[autofix.ci] apply automated fixes
2023-07-27 11:29:20 +08:00
YiFang Xiao
5db4491505
fix: simultaneous playing sound in wikipedia
...
click the audio link repeatly in wikipedia will cuase the sound to play simultaneously
[autofix.ci] apply automated fixes
2023-07-27 11:29:20 +08:00
shenleban tongying
6539775c4f
use qt header
2023-07-26 20:48:50 -04:00
autofix-ci[bot]
1502dc318a
[autofix.ci] apply automated fixes
2023-07-27 00:29:51 +00:00
YiFang Xiao
0ed2f697cd
fix: alt+down/alt+up navigation through dictionary
2023-07-27 08:27:46 +08:00
YiFang Xiao
9e5ce992ca
fix: support space and pageup/pagedown shortkey to navigate through the page
2023-07-27 08:06:48 +08:00
xiaoyifang
dbb11e293b
opt: optimize the process of audio link which start with double // ( #1008 )
...
* opt: optimize the process of audio link which start with double //
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-26 23:03:03 +08:00
xiaoyifang
17cd445607
feat: customize dictionary's fullindex option with metadata.toml ( #1000 )
...
* feat: customize dictionary's fullindex option with metadata.toml
* [autofix.ci] apply automated fixes
* feat: display fulltext status in the dictionary info dialog
* [autofix.ci] apply automated fixes
* doc: add document about how to enable dictionary's fullindex feature
* Update src/metadata.cc
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* Update src/ui/dictinfo.ui
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* Update website/mkdocs.yml
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* Update website/docs/custom_dictionary.md
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* Update website/docs/custom_dictionary.md
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* Update website/docs/custom_dictionary.md
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* Update website/docs/custom_dictionary.md
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* Update website/docs/custom_dictionary.md
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* Update website/docs/custom_dictionary.md
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
* add images
* feat: show fulltext search status in dictionary info dialog
* Update dictinfo.cc
* [autofix.ci] apply automated fixes
* ui: change layout
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
2023-07-26 10:03:20 +08:00
xiaoyifang
d3e6018401
fix: wikipedia open blank page in edge browser ( #1003 )
...
* fix: wikipedia open blank page in edge browser
* [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-07-25 23:55:41 +08:00
shenleban tongying
f9b1d3fa92
fix typo of app id
2023-07-25 08:04:49 -04:00
shenleban tongying
53d82f97ca
Another various changes required by Flatpak
2023-07-24 06:58:56 -04:00
shenleban tongying
a4542d8b6c
fix: a few build problems about zim/slob ,epwing ( #992 )
...
* fix: a few build problems
* slob should not depends on MAKE_ZIM_SUPPORT
* cmake failed to build when WITH_EPWING disabled.
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-22 13:50:57 +08:00
YiFang Xiao
d25e054a93
opt: replace program dictionary icon
2023-07-21 15:53:53 +08:00
YiFang Xiao
0b087e40f1
opt: replace lsa dictionary icon and zipsound icon
2023-07-21 14:34:09 +08:00
YiFang Xiao
46d62ebf8c
opt: replace sounddir dictionary icon
2023-07-21 14:10:40 +08:00
xiaoyifang
e5f91f6a3e
feat: use parallel thread to create the fts ( #980 )
...
* feat: use parallel thread to create the fts
* [autofix.ci] apply automated fixes
* feat: use parallel thread to create the fts
* feat: add an option to control the thread count when create the fulltext
* [autofix.ci] apply automated fixes
* feat: set default parallel thread count to half the cpu numbers
* feat: initialize the default parallel threads to 1/3 of cpu cores
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-20 22:50:32 +08:00
xiaoyifang
df4bc68248
fix: [regression]scanpopup right context menu lost dictionary list ( #989 )
...
* fix: [regression]scanpopup right context menu lost dictionary list
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-20 22:49:37 +08:00
shenleban tongying
8471029770
feat: use "Fusion" style on macOS by default and add option to switch between styles on Linux & macOS ( #986 )
...
* feat: use "Fusion" style on macOS by default and add option to switch between styles on Linux & macOS
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes
* feat: use "Fusion" style on macOS by default and add option to switch between styles on Linux & macOS
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-20 20:10:44 +08:00
autofix-ci[bot]
0450422959
[autofix.ci] apply automated fixes
2023-07-20 08:05:17 +00:00
shenleban tongying
b5349478cf
clean: reformat everything
...
The next commit will add `.git-blame-ignore-revs`
https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
2023-07-20 04:02:22 -04:00
YiFang Xiao
b39d931c08
fix: sound played twice in popup dialog
2023-07-19 13:44:26 +08:00
shenleban tongying
1180f8bc32
fix: website/program should not appears in "AutoGroupByFolder"
2023-07-17 23:27:46 -04:00
xiaoyifang
b3d9d79816
fix: pronounce the first dictionary audio if availabe ( #981 )
...
* fix: pronounce the first dictionary audio if availabe
fix #978
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-18 07:57:02 +08:00
xiaoyifang
55fef3e231
opt: use qcache to hold mdx css file ( #970 )
...
* opt: use qcache to hold mdx css file
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-07-17 21:51:56 +08:00
xiaoyifang
ec06124acb
feat: sync group widget with tab (one group per tab) ( #976 )
...
* feat: sync group widget with tab
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-17 08:24:02 +08:00
shenleban tongying
4be457ba2d
opt: rewrite release check
...
* check 1 time per day on startup and no more
* use github's release api instead of scraping the html page
2023-07-16 20:32:11 +08:00
xiaoyifang
ce8b8a60bb
feat: add font customization ( #973 )
...
* action: auto clang format changes
action: clang-format
* feat: add separator tab to configure the font family for the web engine.
feat: custom fonts
feat: add custom font
i18n: update crowdin translation files
* [autofix.ci] apply automated fixes
* feat: add notice about the font customization
* feat: adjust interface layout
* i18n: update transaltion source
* fix: code smells
* feat: custom font layout adjustment
* i18n: update translation items
* feat: adjust layout of custom fonts
* i18n: new
* feat: adjust layout
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-07-16 18:54:07 +08:00
autofix-ci[bot]
534d8c2e96
[autofix.ci] apply automated fixes (attempt 2/3)
...
[autofix.ci] apply automated fixes
2023-07-15 14:04:52 +08:00
YiFang Xiao
bfba6e1f67
action: use autofix.ci to format code
...
opt: ignore clang-format on style/js files
action: prettier ignore file
2023-07-15 14:04:52 +08:00
YiFang Xiao
119a5ccb6c
fix: treat unknown dsl tags as text
2023-07-15 13:27:12 +08:00
YiFang Xiao
7037694ebc
fix: code smell
2023-07-14 22:31:29 +08:00
YiFang Xiao
08454602c2
opt: add open index folder to dict info dialog
2023-07-14 22:31:29 +08:00
YiFang Xiao
d9bf1d1a91
fix: website dictionary disable window.location
2023-07-13 18:57:22 +08:00
YiFang Xiao
499ac3c54c
fix: forbidden window.location on website dictionary
2023-07-13 16:15:59 +08:00
xiaoyifang
2ed7990531
opt: pronounce audio rewrite ( #922 )
...
* opt: pronounce audio rewrite
* 🎨 apply clang-format changes
* fix:use javscript Map to hold the dictionary audio url
* Update mainwindow.cc
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-07-13 14:49:41 +08:00
YiFang Xiao
0dc0c015c7
opt: use seperate slob dictionary object to create the fulltext
...
🎨 apply clang-format changes
2023-07-12 21:14:57 +08:00
YiFang Xiao
40c890b5ca
opt: boost slob fulltext speed
...
and reduce the impact to normal query when create slob fulltext index
🎨 apply clang-format changes
2023-07-12 20:57:02 +08:00
YiFang Xiao
3f968027b6
fix: warning about "Release of profile requested but WebEnginePage still not deleted"
...
fix #955
2023-07-12 14:36:49 +08:00
YiFang Xiao
26e7ab6baa
Merge branch 'staged' of https://github.com/xiaoyifang/goldendict into staged
2023-07-12 10:25:18 +08:00
YiFang Xiao
ad426ae4af
fix: code smell
2023-07-12 10:23:49 +08:00
xiaoyifang
9c1413adea
Merge pull request #954 from xiaoyifang/fix/crash-restore-state
...
fix: a possible crash of restoreState() in linux with qt6.5.1
2023-07-12 10:00:49 +08:00
YiFang Xiao
80c30b3c54
style: code format
2023-07-12 09:50:55 +08:00
YiFang Xiao
0592d2060e
fix: a possible crash of restoreState() in linux with qt6.5.1
...
fix #952
2023-07-11 21:38:50 +08:00
xiaoyifang
fc7a67d788
Merge pull request #950 from xiaoyifang/fix/reg-unicode
...
fix: unicode regex option support
2023-07-10 09:45:22 +08:00
xiaoyifang
0daf6fb680
Merge pull request #946 from shenlebantongying/rm_direct_zstd
...
clean: remove zstd which is unused since the migration to libzim
2023-07-10 09:40:55 +08:00
shenleban tongying
a5be5134c8
clean: remove zstd related code which is unused since the migration to
...
libzim
2023-07-09 20:44:21 -04:00
YiFang Xiao
eb1963b170
fix: code smells
2023-07-09 18:18:40 +08:00
YiFang Xiao
568efee4c7
fix: unicode regex option support
2023-07-09 18:10:30 +08:00
xiaoyifang
86f9fa6c6d
Merge pull request #945 from xiaoyifang/fix/terminator
...
fix: terminator handler does not work as expected
2023-07-09 11:41:42 +08:00
YiFang Xiao
63f335fec6
fix: qt5 website output response as text/plain
...
fix #941
2023-07-09 11:25:49 +08:00
YiFang Xiao
e85609ce42
fix: terminator handler does not work as expected
...
fix #887
2023-07-08 21:58:45 +08:00
YiFang Xiao
9b5437b82b
fix: website encoding problem
2023-07-08 13:26:11 +08:00
xiaoyifang
aeb98e2e57
Merge pull request #935 from xiaoyifang/fix/stardict-syn
...
opt: limit the number of stardict's extra synonym (from `.syn`) searching
2023-07-08 10:44:18 +08:00
YiFang Xiao
5ec1a66d91
fix: splash windows optimization
2023-07-08 08:59:42 +08:00
YiFang Xiao
9ca02a1e23
opt: stardict's findHeadwordsForSynonym method does not seem necessary
...
🎨 apply clang-format changes
🎨 apply clang-format changes
2023-07-08 00:25:30 +08:00
YiFang Xiao
764ebdde35
fix: sounddir dictionary sound file name
...
🎨 apply clang-format changes
2023-07-07 21:40:38 +08:00
YiFang Xiao
92fa182643
fix: save audio, add opus extension
2023-07-07 20:26:40 +08:00
YiFang Xiao
5290d0ceb9
fix: code smells
...
🎨 apply clang-format changes
2023-07-06 15:25:13 +08:00
YiFang Xiao
9bbb23e5d4
fix: when search hypen alone will result too much unnecessary result.
...
fix #928
2023-07-06 15:24:01 +08:00
YiFang Xiao
cae258272f
opt: refactor folding auto-generate file
2023-07-06 07:49:48 +08:00
xiaoyifang
af9563ad56
Merge pull request #923 from shenlebantongying/staged
...
misc fts fix
2023-07-02 12:24:19 +08:00
shenleban tongying
ec566c4a3b
misc fts fixes
...
* config fts.enablePosition is not updated
* update preferences layout
2023-07-01 23:41:05 -04:00
xiaoyifang
759246a86f
Merge pull request #920 from xiaoyifang/fix/status-2
...
fix: possible crash when show()
2023-07-02 10:00:45 +08:00
YiFang Xiao
9ab59d8713
fix: possible crash when show()
2023-07-02 08:37:28 +08:00
shenleban tongying
e419962abc
doc: update fts related strings
2023-07-01 12:05:15 -04:00
xiaoyifang
2621fd694d
Merge pull request #917 from xiaoyifang/fix/statusbar
...
fix: statusbar crash at some rare conditions
2023-07-01 22:59:04 +08:00
xiaoyifang
8b88ea544e
opt: add fullindex position ( #916 )
...
* opt: enable fulltext with position info
* opt: add fulltext position support
* 🎨 apply clang-format changes
* i18n: update translation entries
* opt: default enablePosition=false
* opt: fulltext search highlight
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-07-01 22:39:43 +08:00
YiFang Xiao
ed8072d78f
fix: statusbar at some rare conditions crash
...
the stacktrace show the line is parentWidget().
avoid using this the parentWidget() method.
2023-07-01 22:33:58 +08:00
YiFang Xiao
e971d2be67
opt: dsl target url
2023-07-01 14:08:48 +08:00
YiFang Xiao
45a71d1fdf
fix: tts only enable current locale
...
too many locale tts initialization cost too much time.
2023-06-28 10:59:39 +08:00
shenleban tongying
fa27f32146
clean: unify how data added to dataRequestInstant
2023-06-24 17:36:10 -04:00
YiFang Xiao
8628a12e5f
fix:dsl language parse issue
...
fix #902
2023-06-24 20:44:29 +08:00
xiaoyifang
a878e725f2
fix: code smells in group widget ( #901 )
...
* fix: code smells in group widget
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-24 15:30:20 +08:00
xiaoyifang
5d3f1a3e3d
Merge pull request #899 from shenlebantongying/datareq_append_str
...
clean: unify DataRequest string data appends
2023-06-24 14:28:01 +08:00
xiaoyifang
6a9ed739e8
Merge pull request #900 from shenlebantongying/xdxf_fix
...
feat: XDXF: distinguish `ex_orig` and `ex_tran`
2023-06-24 09:56:19 +08:00
shenleban tongying
48f2c94d0c
feat: XDXF: distinguish ex_orig
and ex_tran
...
* this will make xdxf_ex_marked to inherit color, thus don't set it
to black.
2023-06-23 14:35:49 -04:00
shenleban tongying
e06606ba3c
clean: unify DataRequest string data appends
2023-06-23 12:23:32 -04:00
YiFang Xiao
43c2cfdd65
fix: group widget null check
2023-06-23 09:28:35 +08:00
YiFang Xiao
2359352781
fix: editDictionaries tab interaction
2023-06-23 09:28:35 +08:00
YiFang Xiao
aa94af4382
fix: fix double release pointer
2023-06-23 09:28:35 +08:00
YiFang Xiao
4d452e7a63
fix: tts null check
2023-06-23 09:28:35 +08:00
YiFang Xiao
f909413caa
fix: code smells
2023-06-23 09:28:35 +08:00
YiFang Xiao
0a9a053945
opt: enable breakpad on macos
...
action: add macos breakpad workflow
action: breakpad
action: breakpad
action: breakpad dmg
action: breakpad
action: macos breakpad action does not need to build automatically
2023-06-23 09:28:35 +08:00
YiFang Xiao
3b935e7660
fix: possible null object
...
refactor: group widget currentindex logic
2023-06-22 21:30:30 +08:00
xiaoyifang
ef594117c3
opt: group widget remove all tabs ( #892 )
...
* opt: remove all group widget tabs
* 🎨 apply clang-format changes
* opt: does not elide text on tab name
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-22 17:17:57 +08:00
xiaoyifang
04a58d6418
opt: dsl remove useless method and refactor langcodes logic ( #889 )
...
* opt: dsl remove useless method and refactor langcodes logic
* 🎨 apply clang-format changes
* opt: remove useless code
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-21 20:47:49 +08:00
xiaoyifang
93d475cc32
Merge pull request #882 from xiaoyifang/opt/unify-windows-icon
...
opt: unify windows icon
2023-06-20 13:43:25 +08:00
xiaoyifang
a0d8c50a52
Merge pull request #881 from shenlebantongying/macOS_slot
...
fix: macOS missing slot warning
2023-06-20 09:54:40 +08:00
YiFang Xiao
7f0cb26cda
opt: unify windows icon
2023-06-20 08:31:44 +08:00
shenleban tongying
ffe88499bb
fix: macOS missing slot warning
2023-06-19 20:17:58 -04:00
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
a76ef3dfdd
guard against null img for ZIM
2023-06-19 05:01:27 -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
shenleban tongying
feda879a30
feat: load and display ZIM dictionary icon
...
* Original GD never tries to load zim format's icon
* This leverage the capability provided by libzim
2023-06-18 05:25:38 -04:00
shenleban tongying
9d19ea1ebc
feat: add -v --version flag to CLI
...
* also abstract version info into a standalone namespace
2023-06-17 05:00:05 -04:00
YiFang Xiao
b815f489d2
clean: remove config old code
2023-06-16 20:34:50 +08:00
xiaoyifang
16f853b68b
fix: qtimer release memory ( #863 )
...
* fix: memory leakage
2023-06-16 08:37:33 +08:00
shenleban tongying
35f39ea7a0
clean: convert a few trivial old SIGNAL/SLOT to new syntax
2023-06-11 11:27:49 -04:00
xiaoyifang
7e93d787b5
Merge pull request #852 from shenlebantongying/no_SIGNAL_scanpopup
...
clean: convert Scanpopup edictGroupRequested to new syntax
2023-06-11 23:20:16 +08:00
shenleban tongying
b882ecb76c
clean: convert Scanpopup edictGroupRequested to new syntax
...
* old code has a SIGNAL and a SLOT both named editGroupRequested'
* rename the SIGNAL to editGroupRequest to avoid this ambiguity
2023-06-11 10:17:20 -04:00
YiFang Xiao
318e186215
fix: slob fullindex will freeze the preference dialog
2023-06-11 21:33:25 +08:00
shenleban tongying
f14d28d193
clean: convert MainWindow::addGlobalAction SLOT to new syntax
...
Historical context: `MainWindow::addGlobalAction` was invented by
https://github.com/goldendict/goldendict/pull/482/files
2023-06-11 04:47:39 -04:00
xiaoyifang
ca4664f209
fix: possible crash ( #836 )
...
* fix: possible crash when show statusbar message
* windows qt upgrade to qt6.5.1
* Update src/ui/mainstatusbar.cc
---------
Co-authored-by: YiFang Xiao <yifang.xiao@noreply.com>
2023-06-10 22:26:24 +08:00
xiaoyifang
dfd3a86c7f
fix: fulltext remove query word size check ( #845 )
...
* fix: fulltext remove query word size check
* fix: remove unused methods
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-10 21:02:22 +08:00
shenlebantongying
ab7af55696
update initializing.ui & splash img
2023-06-10 07:40:17 -04:00
xiaoyifang
a688a08eb1
Merge pull request #843 from xiaoyifang/feature/splash-2
...
feat: make initialize ui more human-friendly
2023-06-10 18:25:48 +08:00
YiFang Xiao
90b89acac0
feat: make initialize ui more human-friendly
2023-06-10 16:57:49 +08:00
YiFang Xiao
799370f5ef
fix: adjust margin around dictionary group
2023-06-10 14:45:48 +08:00
xiaoyifang
9c1a77a3f8
fix regression: select translation line text when got focused ( #841 )
...
* fix: select translation line text when got focused
* 🎨 apply clang-format changes
* fix: code smells
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-10 10:36:59 +08:00
YiFang Xiao
fc08c16479
fix: merge history items when import history items
2023-06-09 21:57:09 +08:00
YiFang Xiao
04ed15434e
fix: remove duplicate logic
2023-06-09 21:36:12 +08:00
xiaoyifang
8ecf3b6cbc
Merge pull request #837 from xiaoyifang/opt/dsl-old-logic
...
fix: dsl remove too old code logic
2023-06-09 20:11:08 +08:00
xiaoyifang
f02fc350f8
fix: keep the application name unchanged for now ( #835 )
...
fix: Windows autostart reg entry use GoldenDict as entry name
2023-06-09 19:56:51 +08:00
xiaoyifang
9d047fea61
fix: add an --reset-windows-state option to command line ( #829 )
...
* fix: add an --reset-windows-state option to command line
* add an option
2023-06-09 19:56:04 +08:00
YiFang Xiao
6a7dd65728
fix: remove too old code logic
...
reasons:
1. if the replacement is important ,then the code should not care about the length (size() < 70)
2. ' ' has been replaced with uC2A0 which is incorrect. u00A0 is expected.
2023-06-09 19:53:34 +08:00
xiaoyifang
67ed24c61c
fix: support dsl dictionary utf encoding detection ( #830 )
...
* fix: support dsl dictionary utf encoding detection
* fix: code smells
* fix: code smells
* 🎨 apply clang-format changes
* fix: adjust linefeed
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-09 08:01:45 +08:00
YiFang Xiao
c56304a2b9
fix: remove toggle main windows extra parameter
...
the parameter has no use right now
2023-06-08 08:30:23 +08:00
YiFang Xiao
70cd2f937d
fix: remove unused configuration
2023-06-07 23:49:27 +08:00
YiFang Xiao
47cc3ced1f
fix: remove the context line parameter
...
in release mode, this parameters are empty
2023-06-07 21:58:59 +08:00
xiaoyifang
f58eb43bd2
opt: use QFontCombox instead ( #781 )
...
* opt: use QFontCombox instead
* 🎨 apply clang-format changes
* remove comment code
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-07 21:53:21 +08:00
Ren Tatsumoto
e6a2c4081b
fix global translateLineText not being updated when translate line changes
2023-06-07 09:34:25 +03:00
YiFang Xiao
eccc3eaf0f
Revert "opt: mdx video url"
...
This reverts commit 2bd5194c91
.
accidently merged.
2023-06-06 23:45:04 +08:00
YiFang Xiao
c2ff1e804f
QDomDocument changed the implementation of setContent
2023-06-06 15:37:47 +08:00
xiaoyifang
e0dba5ac3b
Merge pull request #818 from shenlebantongying/expose_timer
...
feat: expose linux's selection clipboard delay timer to user
2023-06-05 22:46:08 +08:00
xiaoyifang
671427803a
fix: replace suggestion list with QCompleter ( #808 )
...
* fix: replace suggestionList with QCompleter
* 🎨 apply clang-format changes
* fix: code smells
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-05 21:22:20 +08:00
YiFang Xiao
dcfee63b22
fix: wikipedia query parameter is incorrect
2023-06-05 20:58:04 +08:00
shenleban tongying
6732f4630d
feat: expose linux's selection clipboard delay timer to user
...
* In certain programs like Chrome, the selection clipboard will update
even the user have not released mouse button.
2023-06-05 08:22:49 -04:00
shenleban tongying
b06c01beeb
fix: xdxf2html converter failed to parser xml due to
...
* xml don't have
* in Qt5, this is not a problem because QDomDocument::setContent will
somehow accept it.
* in Qt6, this will be rejected
2023-06-04 07:38:14 -04:00
shenleban tongying
41776d2b89
feat: add article-script.js
...
* like article-style.css but for javascript
2023-06-03 20:53:46 -04:00
shenleban tongying
849b1345e1
fix: define PROGRAM_DATA_DIR for cmake
...
* the PROGRAM_DATA_DIR is hardcoded path to /usr/share/goldendict
* Without it, resources cannot be loaded
2023-06-03 09:50:13 -04:00
xiaoyifang
87e2091214
fix: remove for
loop with most one iteration ( #804 )
...
* fix: remove `for` loop with most one iteration
* 🎨 apply clang-format changes
* fix: remove `for` loop with most one iteration
* fix: code smells
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-06-03 20:51:38 +08:00
YiFang Xiao
d6009f0e8e
fix: new release check ,download url is incorrect
...
fix #718
2023-06-03 17:49:37 +08:00
YiFang Xiao
29403f4263
fix: code smells
...
🎨 apply clang-format changes
fix: code smells
🎨 apply clang-format changes
🎨 apply clang-format changes
2023-06-03 14:07:41 +08:00
YiFang Xiao
1391a8fa7e
fix: invalid data access of data field
...
bgl_babylon.cc
fix #770
2023-06-03 14:07:41 +08:00
YiFang Xiao
0c7d7ada21
fix: invalid data access of data field
...
bgl_babylon.cc
fix #768
2023-06-03 14:07:41 +08:00
YiFang Xiao
49c6ae7032
opt: iconv remove unused parameter
...
In GoldenDict, the application uses utf-8 as the default encoding. There should be no other use.
2023-06-03 14:07:18 +08: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
YiFang Xiao
2bd5194c91
opt: mdx video url
2023-06-02 21:47:48 +08:00
xiaoyifang
ded97deb9a
Merge pull request #789 from xiaoyifang/fix/code-smells
...
fix: code smells
2023-06-01 21:15:43 +08:00
xiaoyifang
b7edc8ed2d
🎨 apply clang-format changes
2023-06-01 11:53:45 +00:00
YiFang Xiao
002f7a02f7
fix: code smells
...
refactor the disabledType string build
2023-06-01 19:52:16 +08:00
xiaoyifang
eefdba23ae
Merge pull request #787 from shenlebantongying/cmake_polish
...
cmake: polishments to be officially used
2023-06-01 14:07:58 +08:00
shenleban tongying
0c75d4f399
cmake: updates
...
* add USE_SYSTEM_FMT & USE_SYSTEM_TOML
* switch back to libeb
2023-06-01 01:28:45 -04:00
YiFang Xiao
978fd3ba81
opt: slob dictionary does not display goldendict headword
2023-06-01 10:55:40 +08:00
xiaoyifang
c7f773c12b
Merge pull request #776 from shenlebantongying/better_defaults
...
Tweak some defaults
2023-05-31 18:42:55 +08:00
shenleban tongying
7f994112b7
fix: send to mainwindow got empty word
...
a regression due to Input Phase change: if word is sent to
mainwindow, then definition->getWord() would be empty
2023-05-31 04:17:16 -04:00
shenleban tongying
d72a8540d4
feat: tweak some defaults
...
* enable DSL's alwaysExpandOptionalParts by default
* enable both wikipedia & wikitionary by default
* disable hotkey for macOS by default (they have troubles in new macOS)
* update default websites, remove ones that no long accessible
* add default DictD protocal server
2023-05-30 23:54:43 -04:00
shenleban tongying
b7f0e5448b
fix: modern style's .gddictname
2023-05-30 21:22:08 -04: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
6823254bac
clean: solve a TODO about translateInputFinished
2023-05-31 07:26:43 +08:00
shenleban tongying
6c7bb05f35
clean: convert SLOT translateInputFinished to new syntax
2023-05-31 07:26:43 +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
shenleban tongying
0b746ef8eb
Revise how word is getting passed ( #736 )
...
* fix: remove InputPhrase
* opt: remove unnecessary InputPhrase
* fix: assignment issue
* fix: add handleInputWord back
* fix: does not need to trim punc
---------
Co-authored-by: YiFang Xiao <yifang.xiao@foxmail.com>
2023-05-29 00:01:54 +08:00
xiaoyifang
4eb8374a35
opt: mdx fulltext lock seperated with normal search ( #759 )
...
* opt: refactor mdx fullindex creation
* opt: incremental fulltext creation logic change
* opt: incremental fulltext creation logic change
* opt: progress of fulltext creation logic
* opt: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* fix: code smell
* 🎨 apply clang-format changes
* fix: code smell
* fix: code smell
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-29 00:01:21 +08:00
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