Commit graph

4402 commits

Author SHA1 Message Date
Xiao YiFang bcca3e7ec2 fix: findEndOfCloseDiv does not work as always
if the start div is <div> ,the actual result will has an extra html closed tags .
2023-04-16 11:46:26 +08:00
Xiao YiFang ec1ba5b0f0 action: change windows-latest to windows-2022 to have a more meaningful name 2023-04-16 09:14:59 +08:00
Xiao YiFang a840a99e5c clean: replace the string with rawstring
replace some html make section with rawstring to achieve a more clear readability
2023-04-16 00:24:11 +08:00
Xiao YiFang 9fe2e136da clean: remove code smell 2023-04-16 00:23:51 +08:00
Xiao YiFang 2a7892836e feat: session collapsable feature support
when enabled , user's manual collapsed dictionary will remain collapsed in the successive search until user expand the dictionary again.
2023-04-16 00:23:51 +08:00
shenleban tongying 223e67e503 feat(stardict): Display images from img: in resource file list
See Type identifiers -> 'r' at http://www.huzheng
.org/stardict/StarDictFileFormat
2023-04-15 19:23:27 +08:00
Xiao YiFang fbb1c09f6f opt: remove js interval when not detect parentIframe 2023-04-15 15:18:02 +08:00
shenleban tongying 5c158e5c70 fix: remove the WriteBuffer from File::Class
* This buffer was originally deisgned with FILE in mind
* After migrating from FILE to QFile, the buffer is duplicated with QFile's buffer
2023-04-15 15:01:15 +08:00
Xiao YiFang e2e0b4e362 fix: remove the webplugin option
this plugin is used mainly for flash plugins, which has been disabled in modern browser.
There is no need to configure this option.
2023-04-15 13:13:47 +08:00
YiFang Xiao 3d448cf570 action:issue translator 2023-04-14 15:55:13 +08:00
shenleban tongying 0cb3bb9142 refactor: abstract FsEncoding::dirname(getDictionaryFilenames()[0])
* FsEncoding::dirname is mostly used with getDictionaryFilenames()[0] to obtain the containing folder of a dict
* Abstract them into Dictionary::Class::getContainingDir()
* FsEncoding::dirname is removed
2023-04-14 12:53:53 +08:00
shenleban tongying e66f97f7db refactor: remove FsEncoding::encode/decode
They never serve any purpose other than converting between std::string <> QString <> char*.
2023-04-14 07:27:59 +08:00
Igor Kushnir 6865cb02c3 Avoid copying a QVector
Calling append() on a copy of a QVector detaches and makes a deep copy
of the container. Modify the QVector in-place to prevent copying and
thus improve performance.
2023-04-13 16:55:17 +08:00
shenleban tongying 948e76d132 fix: add __WIN32 to cmake definitions 2023-04-13 15:54:48 +08:00
xiaoyifang 034c878e91 fix: code smell
unused stored value `owner`
2023-04-13 12:17:59 +08:00
xiaoyifang 84151878f6 action: windows single goldendict.exe filename 2023-04-13 10:24:03 +08:00
shenleban tongying 86f1aeceb6 refactor: simplify MainWindow::showDictionaryHeadwords
* merge two methods into one
2023-04-13 10:17:59 +08:00
Xiao YiFang 2f4db6c34f fix:favorite panel arrow up/down does not work 2023-04-13 07:13:41 +08:00
Xiao YiFang e32a7a2c94 fix:remove custom treeview class 2023-04-12 22:48:31 +08:00
shenleban tongying ddb9655938 refactor: move MRU ctrl handling code from mainwindow.cc to mruqmenu.cc 2023-04-12 20:16:29 +08:00
Xiao YiFang 54a4a052a5 fix:code smell 2023-04-10 22:41:33 +08:00
Xiao YiFang 6dee7cf1e9 remove resize event code
this part of changes is from https://github.com/xiaoyifang/goldendict/pull/415#discussion_r1145639728
2023-04-10 22:41:33 +08:00
YiFang Xiao bb1e0de74a update CaseFolding.txt and generate inc_case_folding.hh 2023-04-10 22:40:57 +08:00
Xiao YiFang 7402dcdd6a clean:remove std::wstring
std::wstring is not a proper implemention on Windows, will face cross platform issues
2023-04-10 22:02:43 +08:00
shenleban tongying 880bf4813b feat: display exception name when unhandled exception got thrown 2023-04-10 14:10:57 +08:00
Xiao YiFang 21fa719c03 style: minor css changes 2023-04-09 19:41:41 +08:00
Xiao YiFang 8ca51e95c7 style:lingoes style dictionary name minor change
remove dictionary name's css border
2023-04-09 18:58:08 +08:00
Xiao YiFang c472b2cb71 fix:code smell 2023-04-09 12:42:32 +08:00
Xiao YiFang 1996af61a6 fix: mdx dictionary entry://#hashtag navigation 2023-04-09 12:42:32 +08:00
Xiao YiFang c2e2b3a849 fix:display dictionary info in the dictionary tab as html 2023-04-09 12:10:17 +08:00
xiaoyifang 15219eeb72 add repository notes in the Readme.md 2023-04-08 14:52:41 +08:00
Xiao YiFang 4ffff72698 epwing:replace qthreadpool with qtconcurrent 2023-04-08 14:25:57 +08:00
Xiao YiFang f69f248c00 fix: code smell 2023-04-08 14:25:57 +08:00
Xiao YiFang c527588209 epwing: add Synonym search 2023-04-08 14:25:57 +08:00
xiaoyifang 7ef4a5dc64 clean code:remove useless code in js 2023-04-07 22:23:51 +08:00
xiaoyifang 16cc44c552 action:windows add more arch support 2023-04-07 22:23:50 +08:00
shenleban tongying b4ea2ef3db feat: reimplement command line with QCommandLineParser 2023-04-06 13:43:02 +08:00
xiaoyifang c8003b5408 action:add windows latest action 2023-04-06 10:21:25 +08:00
GenjiFujimoto 16943ccab1 Add ankicard link and button
make selectedText const

add a new keyboard shortcut: ctrl+shift+n to make a card

if word is empty, warn and exit

rename

return after ankisearch

remove temp vars

change the anki action's text depending on selected text

reformat article maker

the anki button is shown under the heading

revert to the previous way of constructing gddictname

to reduce size of the diff
2023-04-06 09:06:57 +08:00
Xiao YiFang 25daf37f65 action:on linux ,the xapian package name may need to change accordingly 2023-04-04 09:30:38 +08:00
xiaoyifang 58a1f9b17f fix: iframe encoding error on certain website dictionaries 2023-04-03 17:49:34 +08:00
xiaoyifang 51b46ca057 action:macos xapian support 2023-04-03 11:47:53 +08:00
Xiao YiFang c59a29b747 bump alpha version 2023-04-03 07:33:54 +08:00
Xiao YiFang 25f101f112 action:add ubuntu xapian release 2023-04-03 07:33:54 +08:00
xiaoyifang 96c7a1285f
Update formats.html
update document for formats
2023-04-01 13:57:26 +08:00
xiaoyifang e6e9fe19d1
Update README.md 2023-04-01 13:53:12 +08:00
Xiao YiFang 6e984feb38 set Origin header 2023-04-01 09:15:07 +08:00
xiaoyifang cf26b33bde
Update issue-translator.yml 2023-03-31 18:16:06 +08:00
shenleban tongying eeff42581d cleanup: compress all svg files
for name in (fd --extension svg --max-depth 1)
    scour -i $name -o (pwd)/out/$name --strip-xml-prolog --enable-id-stripping --enable-comment-stripping --shorten-ids --remove-metadata  --remove-descriptions --remove-titles --indent=none
end
2023-03-31 09:21:58 +08:00
Xiao YiFang 5ea4e8dce7 action:ubuntu can not found speechd
action:ubuntu can not found speechd
2023-03-30 14:41:40 +08:00