Commit graph

136 commits

Author SHA1 Message Date
yifang a37a24671c fix: illege mdx dictionary ,css file embed font with a lead dot,such as "./font.woff"
the leading dot character will cause the file can not be found.
2022-01-19 21:01:35 +08:00
yifang 37d22bc412 improve:handle invalid tag soup improvement, related to old issue #271 2022-01-11 20:33:46 +08:00
xiaoyifang c3db39499b fix:add a protection to check memory overflow. 2022-01-09 18:12:08 +08:00
xiaoyifang c7d33f4eb9 clean code: remove old cpp feature 2022-01-09 16:35:07 +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
yifang.xiao 0365015ac6 clean code:
remove "#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )" check ,the check should always be true based on current situation.
2021-12-13 22:45:33 +08:00
xiaoyifang 402add183e clean qt_version < 5 code. 2021-12-13 22:43:46 +08:00
Abs62 b10cdf685c MDict: A little support for video 2021-11-12 21:26:46 +03:00
Abs62 d54e0ca9fd Fix some data races (issue #1218) 2019-11-19 19:20:44 +03:00
Abs62 04d9dc43f6 Fix some crashes (issue #1076) 2019-01-17 17:53:13 +03:00
Abs62 9f06afab36 Mdx: Fix some links handling for Qt5-based build after RC2-316-3bc8e0 2018-07-19 18:18:50 +03:00
Abs62 3bc8e002d1 Mdx: Fix some extra anchors for Qt5-based build 2018-07-04 18:10:22 +03:00
Abs62 d7bc012411 Add option to ignore diacritics while articles search 2018-06-13 19:00:42 +03:00
Abs62 fd00e9d156 Fix gcc 7.3 compiler warnings (#issue 978) 2018-05-21 18:32:04 +03:00
Abs62 5fa5cc123f Full-text search: Allow ignore diacritics while search 2018-04-10 17:49:52 +03:00
Abs62 2b3a8d16bc Mdx: Fix resource files indexing (issue #971) 2018-04-08 18:00:21 +03:00
Abs62 62529d8a6c Qt5: Fix compilation under early Qt5 versions (issue #990) 2018-04-08 17:48:46 +03:00
Abs62 cbdad22f2d Qt5: Some optimizations for QRegularExpression 2018-02-28 17:15:27 +03:00
Abs62 fe39fc8a05 Qt5: More QRegularExpression instead of QRegExp 2018-02-27 20:18:35 +03:00
Abs62 cdf2c0d404 Add option to ignore words order while full-text search 2017-07-25 18:28:29 +03:00
Abs62 af0a6f42cc Correct some log messages 2017-06-22 18:02:04 +03:00
Abs62 eff09c675a MDict: More optimize links handling 2016-11-15 17:39:45 +03:00
Abs62 404999c4e5 MDict: Optimize links handling 2016-11-07 20:31:37 +03:00
Abs62 f0256b2b18 MDict: Fix handling of links with '/' symbol (issue #771) 2016-11-01 19:19:08 +03:00
Abs62 249db51e86 MDict: Fix handling of external links to images (issue #761) 2016-09-25 16:05:40 +03:00
Abs62 3c7c9244c3 Fix case of unclosed <span> tags in articles 2016-05-11 18:56:37 +03:00
Abs62 4290734589 MDict: Fix handling of anchors like "<a id="xxx"> 2016-05-11 17:41:13 +03:00
Abs62 2dda3e62f7 Merge branch 'Original' into Qt4x5 2016-04-14 19:08:36 +03:00
Abs62 5cafac686e MDict: Fix handling of urls with "data" URI scheme in .css (issue #687) 2016-04-14 18:51:00 +03:00
Abs62 eee04266db Merge branch 'Original' into Qt4x5 2016-04-02 01:51:38 +03:00
Abs62 30dad341d1 MDict: Handle local url's in loaded .css 2016-04-02 01:50:19 +03:00
Abs62 8bd4e7ab48 Merge branch 'Temp' into Qt4x5 2016-03-28 21:21:01 +03:00
Abs62 2221beb249 MDict: One more fix for script handling 2016-03-28 21:14:38 +03:00
Abs62 40244f6c1c Merge branch 'Original' into Qt4x5 2016-03-10 00:00:23 +03:00
Abs62 8388cd8ee6 MDict: Fix some scripts handling 2016-03-09 23:06:53 +03:00
Abs62 2ab4eeaf60 Merge branch 'Original' into Qt4x5 2015-10-30 22:24:44 +03:00
Abs62 81d56b73f9 MDict: Fix links handling 2015-10-30 22:21:35 +03:00
Abs62 b2b60fc2e1 Merge branch 'Original' into Qt4x5 2015-10-30 16:34:08 +03:00
Abs62 c2eb4a0ef2 MDict: Handle inter-article anchors 2015-10-28 23:24:10 +03:00
Abs62 4b8de48e5c Merge branch 'Original' into Qt4x5 2014-11-27 18:53:52 +03:00
Abs62 83397ce8d5 DSL: Exclude tags [s], [url], [video], [preview] from indexing for full-text search 2014-11-22 17:22:04 +03:00
Purling Nayuki a9a18e7e26 Fix javascripts paths in mdict format aren't replaced, which leads to .js files won't be loaded 2014-10-21 14:55:40 +08: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 9c319da834 Merge branch 'Original' into Qt4x5
Conflicts:
	dictserver.cc
2014-05-10 00:05:07 +04:00
Abs62 055ae55abd Full-text search: Special handling for CJK chars 2014-05-08 16:38:00 +04:00
Abs62 273b1b5757 Merge branch 'Original' into Qt4x5
Conflicts:
	articleview.cc
	btreeidx.cc
2014-05-05 21:31:16 +04:00
Abs62 616babe60e Full-text search: Skip some replacements while load article from MDict dictionary 2014-04-29 17:55:48 +04:00
Abs62 10532279b1 Merge branch 'Original' into Qt4x5
Conflicts:
	article_netmgr.cc
	mainwindow.cc
2014-04-23 18:16:06 +04:00
Abs62 df94e2ee80 Fix some crashes 2014-04-21 00:02:41 +04:00
Abs62 fd1d035c01 Add full-text search tuning tab to preferences dialog 2014-04-17 18:31:51 +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
Timon Wong ee0fc80001 Merge branch 'master' into qt4x5
Conflicts:
	articleview.cc
	btreeidx.cc
	goldendict.pro
	mediawiki.cc
2013-08-02 17:00:16 +08:00
Timon Wong dd6b54a534 MDict: Fixed truncation for ASCII characters(0x20~0x30) in image urls. 2013-07-25 09:22:33 +08:00
Timon Wong f5a43e22d4 Merge branch 'master' into qt4x5
Conflicts:
	goldendict.pro
2013-06-18 11:22:07 +08:00
Tvangeste 6d4843e79b Fix compilation failure on older Linux/GCC versions 2013-06-17 17:30:20 +02:00
Timon Wong 6f2ab430ec Merge branch 'master' into qt4x5
Conflicts:
	article_maker.cc
	dsl.cc
	mainwindow.cc
2013-06-08 12:27:18 +08:00
Timon Wong a830e5fd4d MDict: Fix compatibility between 32/64 bit indices (Fix #340). 2013-06-05 00:17:55 +08:00
Timon Wong 1d85f1b359 #212: Scratch, currently works under windows, for both Qt4 and Qt5 2013-05-30 21:24:21 +08:00
Timon Wong 8b2efc062f MDict: Narrow selector scope for better CSS isolation (probably) 2013-05-28 15:00:36 +08:00
Timon Wong 07113d0bf6 Fix unexpected result using QString::toStdWString() (fix #107 again, QTBUG-25536)
* QString::toStdWString() and QString::toUCS4() will have wrong size when
  QString instances contain non-BMP characters.

Close #320
2013-05-27 14:56:16 +08:00
Timon Wong 427c0df90e Merge branch 'mdict'
Conflicts:
	mdx.cc
2013-05-27 14:12:46 +08:00
Abs62 f4734c076c Stardict: Isolate resources stylesheets 2013-05-23 18:01:50 +04:00
Abs62 604112fb2d Mdx: Isolate resources stylesheets (issie #290) 2013-05-22 21:42:41 +04:00
Timon Wong 50c3140296 MDict: fix missing localizable string in 51ab9b0 2013-05-22 19:56:28 +08:00
Timon Wong 51ab9b0673 MDict: User friendly error reporting for article request 2013-05-22 11:15:47 +08:00
Timon Wong 4c4feb2c52 MDict: minor parser refactor, fix inappropriate use of sptr 2013-05-11 13:41:26 +08:00
Timon Wong 76b5b55ff0 MDict: Add volumes support for mdd files 2013-05-08 21:51:02 +08:00
Timon Wong e45bcfc9ce MDict: Fix anchor name/id marshalling without quotes. 2013-05-07 11:20:40 +08:00
Timon Wong 341e5a7ebf MDict: Use reluctant matching for anchor processing 2013-05-05 19:09:25 +08:00
Timon Wong 00a1ed5ddc MDict: Support audio links in <area> tag 2013-04-30 09:30:04 +08:00
Timon Wong 4568c41ab1 MDict: Fix anchor name/id enclosed with single quotes 2013-04-30 09:29:30 +08:00
Timon Wong 1505bf990d MDict: localizable article loading error string. 2013-04-28 17:18:34 +08:00
Timon Wong 6f0a47fe53 MDict: handle malformed resource link without quotes 2013-04-28 16:49:15 +08:00
Timon Wong 0101f52abd Support large dictionary files; indexing speed improvement 2013-04-28 16:26:04 +08:00
Tvangeste 1c7a226810 Clean-up stray <a> tags in some broken MDX dictionaries. 2013-04-27 15:10:43 +02:00
Timon Wong 58654a7423 MDict: ltrim unprintable characters from filename 2013-04-26 13:29:52 +02:00
Tvangeste 56a53087ad Fixed #271: MDict: A mechanism to clean-up invalid HTML cards
Thanks to Abs62 for the hint :)
2013-04-25 22:42:16 +02:00
Abs62 5277f58852 mdx.cc: fix compilation under Linux and Mac OS X 2013-04-25 17:52:23 +04:00
Timon Wong e2ebb4af3c MDict: add unique id prefix for anchors 2013-04-24 19:35:03 +08:00
Timon Wong 5f959614ac MDict: support file URI scheme in image/css links. 2013-04-24 09:58:35 +08:00
Timon Wong cdab08a1ef MDict (.mdx/.mdd) format support
summary

* mdd is complementary resource archive for mdx (dictionary file)
* lzo2 library for (old) MDict version 1 file format
* try Load bass_spx.dll under windows for speex decoding
* internal redirection "@@@LINK=" for both mdx and mdd
2013-04-23 20:07:05 +08:00