Commit graph

4464 commits

Author SHA1 Message Date
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
xiaoyifang 8349295b00 fix: rewrite atEnd function
take the code from vedgy's webengine port
2023-03-30 14:41:39 +08:00
Xiao YiFang 9437579d24 use nonblock datarequest 2023-03-29 23:16:17 +08:00
Xiao YiFang c91cd84bb7 when add the tts engine,disable it in the availabe engine list 2023-03-29 23:16:01 +08:00
Xiao YiFang 2407cf2a88 use QTextToSpeech module to play tts.
fix code smells
2023-03-29 23:16:01 +08:00
Xiao YiFang e0831bf36c action:add texttospeech module 2023-03-29 23:16:01 +08:00
Ren Tatsumoto 7f36e89a1b update translations 2023-03-29 22:37:42 +08:00
xiaoyifang 6e73c8e4e8 Update README.md 2023-03-29 08:59:13 +08:00
xiaoyifang 16bdf2ac6c fix: when in dark reader mode, the transparent image has a very bad display 2023-03-28 17:18:08 +08:00
shenleban tongying f9cd4eb9e8 fix: adjust clang-format to reflect the reality 2023-03-27 18:36:04 +08:00
xiaoyifang 83f299bbc3 fix: a possible bug
at rare conditions ,  the for loop will continue to run until the request is canceled.
2023-03-27 13:14:47 +08:00
Xiao YiFang e84b5aa861 feature:webengineprofile use non off record profile 2023-03-27 12:29:13 +08:00
Xiao YiFang da406e1e02 fix:remove code smell 2023-03-27 12:23:48 +08:00
Xiao YiFang 6abdaab5d3 fix: mdx file not found exception 2023-03-27 12:23:48 +08:00
xiaoyifang 91d539b105
Update issue-translator.yml 2023-03-26 08:17:41 +08:00
Xiao YiFang 0ae8caefac add help documents
taken from https://github.com/Abs62/goldendict-help
2023-03-26 00:13:19 +08:00
xiaoyifang e2e2b10b0f
Update issue templates 2023-03-25 15:04:46 +08:00
Ren Tatsumoto 7fc2d64cd8
give external programs access to translateLine via %GDSEARCH% (#417)
* give external programs access to translateLine via %GDSEARCH%

* remove code smell

* reformat with clang-format

* update translations

* don't write to stdin of an external program if GDSEARCH is set

* update ui docs
2023-03-24 19:52:38 +08:00
xiaoyifang 75593e4487
Update issue-translator.yml 2023-03-24 16:36:35 +08:00
Ren Tatsumoto 3173a13493 replace magic number 2023-03-23 07:58:48 +08:00
Ren Tatsumoto 94fefe8ce9 use raw string in post template 2023-03-23 07:58:48 +08:00
Ren Tatsumoto 06946e559a fix typo 2023-03-23 07:58:48 +08:00
Xiao YiFang 0536b75761 clean: remove useless code 2023-03-22 23:17:05 +08:00
Xiao YiFang ad087b1031 epwing: ignore reference link processing when parse the dictionary 2023-03-22 23:17:05 +08:00
Xiao YiFang 22f9d5d832 fix:additional epwing ref link headword 2023-03-22 23:17:05 +08:00
Xiao YiFang e9459c1066 fix: replace reference link
the call eb_backward_text , the <R1> tags is arranged backward
the original replace method with position does not work
2023-03-22 23:17:05 +08:00
Xiao YiFang f8f3ce966e fix:statusbar background 2023-03-22 23:17:05 +08:00
Ren Tatsumoto 01c661b575
Allow adding "ankisearch:" links in external programs. (#412)
* Add ankisearch link

* auto indent

* use raw string

* refuse to run if ankiconnect is not enabled

---------

Co-authored-by: GenjiFujimoto <dratschuk.d@gmail.com>
2023-03-22 10:04:54 +08:00
xiaoyifang da57d82b47
Update how to use .clang-format to format the code.md 2023-03-22 09:13:52 +08:00
xiaoyifang a234bb0e43
remove qt-style.css content totally (#407)
* remove all qt-style

* remove all related #translationLine #GroupCombox qt style
2023-03-22 09:01:22 +08:00
shenleban tongying 32304d4b15 cleanup: remove all useless #include <QDebug>
All Qt Headers already implicitly included it.
2023-03-21 21:15:14 +08:00
shenleban tongying 13add70db2 cleanup: remove unnecessary variables in ArticleMaker
4 variables are removed because they are always read-only and always the same as global config. There is no reason to keep or update a separate copy.
2023-03-21 17:42:52 +08:00
shenleban tongying 0731253489 cleanup: simplify DSL's expand mode
Related code was related to DSL's [*][/*] tag.

One of the feature removed is Ctrl+8 to toggle current articleview's AlwaysExpand mode, because DSL is the only format that has this feature and User can turn on AlwaysExpand Mode on Preferences. There is no need to assign a shortcut for it.
2023-03-21 15:34:55 +08:00
Xiao YiFang 7ac1877544 replace qt6.3.2 with 6.4.3 2023-03-21 09:20:28 +08:00
xiaoyifang e2e26bc7bc
Merge pull request #405 from xiaoyifang/fix/epwing-tr
epwing:translation does not work
2023-03-21 07:31:48 +08:00
xiaoyifang b3a1d27c2f
Merge pull request #401 from xiaoyifang/fix/epwing-load-article
fix: epwing load article protection when load invalid address
2023-03-21 00:56:48 +08:00
Xiao YiFang fe6808d07a epwing:translation does not work 2023-03-21 00:56:01 +08:00
Xiao YiFang 8cc5c54b78 refactor: remove unneccessary macro condition 2023-03-21 00:01:02 +08:00
Xiao YiFang d4c285226c fix: sonarcloud analysis
if,switch, and range-based for loop initializer should be used to reduce scope of variables cpp:S6004
2023-03-20 23:47:23 +08:00