Commit graph

90 commits

Author SHA1 Message Date
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
Abs62 d7bc012411 Add option to ignore diacritics while articles search 2018-06-13 19:00:42 +03:00
Abs62 a31dcd6141 Fix displaying of some interface styles 2017-06-18 13:39:01 +03:00
Abs62 71ddc5c323 Use <div> tag instead of <span> to enclose articles 2017-06-09 15:38:23 +03:00
Abs62 72a8a09513 Insert all GD css files to article page in separate <style> tags 2016-08-02 17:56:35 +03:00
Abs62 9b44890a01 Merge branch 'Original' into Qt4x5 2015-02-26 18:06:49 +03:00
Abs62 67db58b4fe Refactor of expressions search via morphology suggestion 2015-02-25 20:44:00 +03:00
Abs62 b9666f7f9f Merge branch 'Original' into Qt4x5
Conflicts:
	bgl_babylon.cc
2014-05-12 18:10:26 +04:00
Abs62 4120213ee8 Rename "DPRINTF" and "FDPRINTF" debug macro 2014-05-11 01:02:31 +04:00
Abs62 10532279b1 Merge branch 'Original' into Qt4x5
Conflicts:
	article_netmgr.cc
	mainwindow.cc
2014-04-23 18:16:06 +04:00
Abs62 c2cdf9b177 Full-text search: Highlight of the search results 2014-04-22 22:29:58 +04:00
Abs62 9ad0d5f985 Implement full-text search 2014-04-16 20:18:28 +04:00
Abs62 34271ecc1d Merge branch 'Temp' into Qt4x5
Conflicts:
	article_maker.cc
	article_netmgr.cc
	articleview.cc
	forvo.cc
	goldendict.pro
	hotkeywrapper.cc
	hunspell.cc
	mainwindow.cc
2013-12-18 19:09:48 +04:00
Abs62 444938a330 Fix logging to file UTF-8 encoded messages 2013-11-16 22:34:09 +04:00
Abs62 1f87d8a911 Merge branch 'master' into Qt4x5
Conflicts:
	btreeidx.cc
	goldendict.pro
	lsa.cc
	mouseover.cc
	sounddir.cc
	xdxf2html.cc
2013-09-27 17:03:27 +04:00
Abs62 c7b04526d2 Possibility to log GD console messages into file "gd_log.txt" in GD config directory. Activated by "--log-to-file" key in command line. 2013-09-20 18:25:44 +04:00