Anton Bershanskiy
68908c1d39
Add DarkReader.setFetchMethod()
2023-03-02 11:29:12 +00:00
shenlebantongying
a674a5cab7
fix: set initial background as black for dark reader mode
2023-02-28 13:31:58 -05:00
shenleban tongying
91bb527c6e
fix: reset background to white when darkreader mode is used
...
A few theme's yellow background is ugly when inverted
2023-02-12 02:18:56 -05:00
shenleban tongying
ce037dbfda
doc: update urls
...
Replace old goldendict.org
2023-01-05 20:34:53 -05:00
shenleban tongying
9828ef9dc8
perfect_dark: add toggle option to enable Dark Reader mode
2022-12-26 12:29:30 -05:00
shenleban tongying
07e92e8ac1
refactor: upgrade most of macro based Signal/Slot to new syntax
2022-12-25 21:08:17 -05:00
shenleban tongying
fcfa4e43e2
refactor: replace escaped strings with raw strings via clang-tidy
2022-12-24 17:01:50 -05:00
Xiao YiFang
5fe3cc5028
fix: darkmode extended to html webpage
...
fix #269
2022-12-24 09:00:25 +08:00
shenleban tongying
4452c06c3e
Replace sptr with std::shared_ptr
...
* Make sptr an alias of std::shared_ptr
* Make old sptr's implicit conversion explict through std::make_shared
2022-11-28 22:54:31 -05:00
Xiao YiFang
208cd50979
fix: when history forward/back ,the founded dictionary does not change
...
fixed #184
2022-11-04 21:23:42 +08:00
Xiao YiFang
7adfc523a2
clear dictionary outside of the loop
2022-10-22 19:12:55 +08:00
Xiao YiFang
df1906d4f2
opt: move jquery js from resources to scripts folder
2022-09-04 10:47:29 +08:00
Xiao YiFang
349ac86d47
opt: use iframe resizer plugin to resize the iframe height.
2022-09-04 10:47:29 +08:00
Xiao YiFang
f00bf25d55
Revert "opt: customized about:blank page"
...
This reverts commit cee57d69ce
.
2022-08-23 18:47:58 +08:00
Xiao YiFang
cee57d69ce
opt: customized about:blank page
2022-08-22 20:22:14 +08:00
Xiao YiFang
dd244e0336
opt: update dictionaries when disable certain dictionary
2022-07-17 18:23:21 +08:00
Xiao YiFang
7910209ae1
clean code: remove dsl runnable ,remove comment endline carriage
2022-05-29 16:00:28 +08:00
Xiao YiFang
eda434f38e
opt: rename emitDicts signal to dictionaryChanges
2022-05-15 22:48:22 +08:00
xiaoyifang
f6c588ee7e
fix: collapse function does not work expectedly.
...
the website dictionaries do not collapse as it will always treated as 0 .
the normal dictionaries html size is not correct calculated due to a qt bug https://bugreports.qt.io/browse/QTBUG-102757
2022-04-21 23:14:19 +08:00
xiaoyifang
70b2f8f7d5
fix:unclosed tag caused the following dictionaries can not render correctly
...
<div/> was deemed as a start div tag ,same as <div>,which cause the following dictionaries can not rendered correctly
2022-04-10 20:40:09 +08:00
xiaoyifang
30ce781e6a
Revert "improve:handle invalid tag soup improvement, related to old issue #271 "
...
This reverts commit 37d22bc412
.
2022-04-10 20:07:00 +08:00
YiFang Xiao
b771f0e340
optimize the utf8::encoding method invocation.
2022-04-01 20:09:15 +08:00
yifang
8b2d6316ac
jquery: noconflict compatibility
2022-02-08 07:56:48 +08:00
yifang
70254fe6e0
imp. : rename js/css file from gd_ to gd-*
2022-01-19 20:26:45 +08:00
yifang
5c76bc746c
fix:right context menu ,select current article
2022-01-19 20:16:45 +08:00
xiaoyifang
a562975661
fix:right context menu , "select current article".
2022-01-18 23:06:17 +08:00
yifang
0ba2cacc29
improvement:remove gdCurrentArticle js variable
2022-01-17 21:50:54 +08:00
yifang
262e650779
fix: DPRINTF=>GD_DPRINTF ,DDPRINT does not exist now.
...
do not affect functionality.only existed in comments.
2022-01-15 15:29:20 +08:00
yifang
d8f5e4a374
improvement:seperate javascript file from cpp code.
2022-01-12 22:30:43 +08:00
yifang
f725018053
improvement:stylesheet css file.use external link instead of embed.
...
by using external file syntax.the browser can cache the file.improve web performance in a way.
2022-01-12 21:48:03 +08:00
yifang
37d22bc412
improve:handle invalid tag soup improvement, related to old issue #271
2022-01-11 20:33:46 +08:00
yifang
ccc0f275ba
jquery noconflict()
2022-01-11 20:18:46 +08:00
yifang
70c972ddc2
fix: js variable error,revert to beginning version
2022-01-11 19:52:27 +08:00
yifang
f16107e072
fix:right context menu not display correctly when select wikiweb dictionary
2022-01-08 21:45:10 +08:00
yifang
e8f0202a49
clean code:remove useless code
2022-01-08 18:40:17 +08:00
yifang
0f1c0d4204
improve:right context menu active dictionaries
2022-01-08 14:51:24 +08:00
yifang
0a54477435
play sound ,javascript refactor
2022-01-03 12:00:50 +08:00
yifang
77e770c176
fix: url inside page ,hashtag and relative url redirect.
2021-12-31 23:41:45 +08:00
yifang
e090716a2e
fix javascript error
2021-12-26 18:01:24 +08:00
yifang
d90c528819
onJsActiveArticleChanged was remove unintentionaly
2021-12-19 18:58:48 +08:00
yifang
f292e0c251
add javascript qt object to html(used to communicate between html and c++)
...
add jquery framework .
2021-12-19 18:37:27 +08:00
xiaoyifang
5eac08c97a
rename qt4x5.hh to utils.hh
...
the filename qt4x5 is not proper now,for the qt4 version can never meet.and the qt5 is actually mean qt>5 .
2021-12-13 22:45:35 +08:00
xiaoyifang
e7779e5302
fix todo
2021-12-13 22:43:46 +08:00
yifang
3b120ee765
1 remove useless code
...
2 define js variable to avoid js error
2021-09-24 21:42:55 +08:00
yifang
bf2640bb25
play sound in the dictionary html
2021-09-23 13:05:05 +08:00
xiaoyifang
17afc21478
1.js undefined error
...
2,disable chrome auto play feature
2021-09-22 11:20:42 +08:00
xiaoyifang
3aadf52344
webkit to webengine
2021-07-15 22:58:32 +08:00
Igor Kushnir
60bc05218f
Add input phrase's punctuation suffix to alts
...
Preferences::sanitizeInputPhrase() transforms an input phrase by
removing its whitespace/punctuation prefix and suffix. Translating a
phrase from X11 primary selection or from clipboard, via mouse-over or
from the command line results in such sanitization. This is useful when
a punctuation mark or a space is selected accidentally alongside a word.
This sanitization can be undesirable, however, when an abbreviated word
is selected. For example: "etc.", "e.g.", "i.e.".
This commit implements searching for the input word with the punctuation
suffix preserved as an alternative form of the sanitized word to show
articles for both. For example, when the word "etc." is translated from
the clipboard, both "ETC" and "etc." articles are displayed.
The punctuation suffix is preserved when the word is passed from the
scan popup to the main window and when the translate line text is
refreshed (e.g. when the current group is changed). The suffix is not
stored in history and favorites (doing so would require file format
changes and possibly substantial code changes, this can be implemented
later if need be).
Trim the input phrase once in ArticleNetworkAccessManager::getResource()
instead of verbose trimming in multiple places in
ArticleMaker::makeDefinitionFor().
Closes #1350 .
2021-06-17 12:06:36 +03:00
JingMatrix
63aeb0ef6d
quote possible apostrophe
...
The French translation of "Collapse article" contains an apostrophe.
2020-11-02 23:09:22 +01:00
Boyuan Yang
5d5432dbad
Fix typos found by codespell
2018-07-07 17:33:15 +08:00