Commit graph

138 commits

Author SHA1 Message Date
Abs62 71ddc5c323 Use <div> tag instead of <span> to enclose articles 2017-06-09 15:38:23 +03:00
Abs62 eb78238f25 Add support for split zip files 2017-04-24 17:42:01 +03:00
Abs62 ae767ab06f DSL: Handle "id" and "name" attributes in "lang" tag 2016-12-22 22:58:01 +03:00
Abs62 010b4dc974 Fix display of abbreviations contained '-' character 2016-08-03 17:29:15 +03:00
Abs62 b2366124ef DSL: Handle relative links to local file in [url] tag 2016-06-30 20:20:55 +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
Abs62 450130cd97 DSL: Handle [video] and [br] tags 2014-10-29 17:46:42 +03:00
Abs62 35433d9ea6 Merge branch 'Original' into Qt4x5 2014-05-27 17:59:50 +04:00
Abs62 d9169bd45b Add support for Epwing dictionaries 2014-05-20 17:59:56 +04: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 c32c610665 Full-text search: A little faster search in DSL dictionaries 2014-04-28 17:58:38 +04:00
Abs62 9754f5f479 DSL: Fix headwords normalizing 2014-04-24 22:56:47 +04:00
Abs62 fbcaf7c2cb Some more error handling 2014-04-24 22:50:47 +04:00
Abs62 01b8ae5e17 DSL: Fix case of several headwords per one insided card 2014-04-24 17:56:38 +04:00
Abs62 10532279b1 Merge branch 'Original' into Qt4x5
Conflicts:
	article_netmgr.cc
	mainwindow.cc
2014-04-23 18:16:06 +04:00
Abs62 e7477cfd24 Full-text search: Fix handling of some DSL headwords 2014-04-21 20:20:24 +04:00
Abs62 362acce554 Dsl: A little improve of unmatched tags diagnostic 2014-04-18 16:34:44 +04:00
Abs62 4572b2bc77 Full-text search: Fix case of inside cards in DSL 2014-04-17 21:13:31 +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 0fa4087b38 Merge branch 'Original' into Qt4x5
Conflicts:
	goldendict.pro
	mainwindow.cc
	zim.cc
	zipsounds.cc
2014-02-11 23:39:31 +04:00
Abs62 ac84a73a6d Dsl: Fix some pictures resizing 2014-02-11 21:27:24 +04:00
Abs62 0c2b182647 Handle 1-bit black/white TIFF images without photometric interpretation tag
(QImage don't handle such images)
2014-02-11 18:02:00 +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 bdba6e7bb0 DSL: Some more formatting fixes 2013-10-06 21:40:06 +04:00
Abs62 c507def22a DSL: Fix formatting in multiline tags 2013-10-06 19:24:19 +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 4a414adfdc Some more unhandled exceptions 2013-09-24 17:56:47 +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 e09ca5402d Merge branch 'master' into qt4x5
Conflicts:
	goldendict.pro
2013-08-19 10:54:38 +08:00
Tvangeste 148fd1f275 Fix compilation failures with Visual C++ 2012 (issue #375) 2013-08-07 20:29:36 +02: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
Abs62 66c309557d DSL: Add "http://" to link in [url] tag if it scheme not found 2013-07-27 22:35:10 +04:00
Abs62 c1cfbae60e Enhanced support for RTL languages in articles 2013-07-10 17:48:09 +04:00
Abs62 4af2d43dd2 DSL: Strip comments "{{...}}" when reading file 2013-07-07 14:48:37 +04:00
Tvangeste 27c4bf7d30 Properly handle non-normalized unicode headwords
With that change users should be able to search headwords in
any form. For example:

U+03B5 GREEK SMALL LETTER EPSILON and U+0301 COMBINING ACUTE ACCENT

is considered equal to

U+03AD GREEK SMALL LETTER EPSILON WITH TONOS

And no matter in what form the headword is provided in the dictionary, users will be able to find it,
even using the different form.
2013-07-06 20:18:43 +02:00
Timon Wong 91f994950d Qt 5.1 support (Windows MinGW 4.8) 2013-07-05 18:10:11 +08:00
Timon Wong 01ef08a709 Merge branch 'master' into qt4x5 2013-07-05 17:03:57 +08:00
Tvangeste d9bcb2ea43 Follow-up to the previous fix: span->div 2013-07-03 16:45:23 +02:00
Tvangeste f0a122e740 DSL: properly handle [m] tag
In short, [m] = [m0].
2013-07-03 16:00:56 +02:00
Timon Wong 555b51260a Merge branch 'master' into qt4x5 2013-06-26 21:07:46 +08:00
Tvangeste 0cf8ccb259 DSL: Support video resources 2013-06-22 18:36:25 +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
Abs62 92db6d2d3e DSL: expand subcard links in card 2013-06-07 16:58:10 +04:00
Tvangeste 7734973a84 DSL: properly handle unsorted parts in subcard's headwords 2013-06-07 10:48:32 +02:00
Abs62 217dc57e6c DSL: Expand headwords in subcards 2013-06-06 20:37:33 +04:00
Timon Wong f30c41dbf6 Remove Url::Class, add Qt4x5::Url::ensureLeadingSlash() and fix all related 2013-05-31 12:20:25 +08:00
Timon Wong ad4394d02b #212: Workaround for Qt5 changed behavior in QUrl::setPath() 2013-05-30 23:05:41 +08:00
Timon Wong 1d85f1b359 #212: Scratch, currently works under windows, for both Qt4 and Qt5 2013-05-30 21:24:21 +08:00
Abs62 7669d4f788 Dsl: Handle SVG images 2013-05-25 16:07:49 +04:00
Abs62 2d76ced4d3 Handle dictzip errors without program termination (Fix issue #207) 2013-03-15 16:27:32 +04:00
Tvangeste 9faf843ab7 Part of work for #212: Make GD source to be ready for Qt5.
Replaced deprecated to/fromAscii with to/fromLatin1
2013-02-03 21:19:55 +01:00
Julian Depetris Chauvin 25be9b074a Check if icon is loaded before trying to load it again 2013-01-31 19:30:11 -03:00
Tvangeste 7496f5f80c Configurable parameter for DSL headwords' maximum size.
By default, it is unchanged, still 256.

In those rare cases when users really need more lengthy
headwords, they could adjust the config file,
maxHeadwordSize parameter.
2013-01-11 11:00:30 +01:00
Abs62 0408201f37 Limit size of images in root folder of dsl dictionary 2012-12-07 21:29:10 +04:00
Abs62 00cb5c8d20 Fix commit faad6d2 (lost quotes) 2012-12-07 20:08:09 +04:00
Abs62 faad6d2581 Images size limit for dsl dictionaries 2012-12-07 15:59:29 +04:00
Abs62 dacc4779db Rework custom dictionary icons handling 2012-12-03 16:47:43 +04:00
Abs62 af7947f163 Fix commit e6457a1e (enable edit only dsl and xdxf dictionaries) 2012-11-29 21:12:54 +04:00
Abs62 b5ac0ccf78 Take insided card header from card if possible for dsl dictionaries 2012-11-27 16:50:27 +04:00
Abs62 9367be34dc Handle tags in insided card header after "~" expanding for dsl dictionaries 2012-11-26 23:17:58 +04:00
Abs62 af1403da2d Handle "^~" combination in dsl dictionaries 2012-11-26 23:16:10 +04:00
Abs62 a76f7780e7 Handle "dict" attribute in "ref" tag for dsl dictionaries 2012-11-25 00:30:32 +04:00
Abs62 07cbdb3b02 Handle insided cards in dsl dictionaries 2012-11-22 17:03:07 +04:00
Abs62 2a215927ce Fix some warnings 2012-10-31 17:58:35 +04:00
Abs62 bc7a8b39c8 Icons instead of text markers to show/hide articles optional parts 2012-09-16 19:54:00 +04:00
Abs62 305c9ed1b8 Show/hide optional parts of articles (DSL dictionaries only) 2012-09-16 14:19:47 +04:00
Abs62 0da4b83dd7 Fix keywords per one article limitation for DSL dictionaries 2012-09-08 01:32:49 +04:00
Abs62 f8025f1854 Show decription for DSL dictionaries 2012-09-07 20:17:44 +04:00
Abs62 535fe0d3e0 Update year in copyright notices. 2012-02-21 01:47:14 +04:00
Abs62 25956a7b46 Move zip resource file indexing into IndexedZip class 2012-01-30 17:13:58 +04:00
Abs62 99fe9474ac Move tryPossibleName and loadFromFile functions into File namespace 2012-01-30 17:11:41 +04:00
Konstantin Isakov fa60062fa4 Ignore empty lines between the list of headwords in Dsl files, as that's what Lingvo does as well. 2012-01-23 21:01:02 -08:00
Konstantin Isakov 0ab5ae44a7 Fix a problem with zip archive indexing where files with similar names could clash. 2012-01-23 20:59:16 -08:00
Abs62 2763b74635 Use file names in UTF-8. Fix issue #30. 2011-09-09 16:05:28 +04:00
Abs62 7de7fcc8df Replace fprintf(stderr,...) in code by a macro FDPRINTF 2011-06-20 00:29:11 +04:00
Abs62 36e509a2ab Replace printf in code by a macro DPRINTF 2011-06-19 22:50:11 +04:00
Tvangeste c11c3c25fe Additional way of showing the stress in DSL dicts: via font styles instead of accents.
The default is the same: Stress is shown by adding accent sign.

With this change it is now possible to configure GoldenDict
in such a way that stress could be shown with font styles
(e.g., color, boldness, etc).

Add the following to your article-style.css:

.dsl_stress_without_accent {
  color: red;
  display:inline;
}

.dsl_stress_with_accent {
  display: none;
}
2011-06-02 13:30:38 +02:00
Konstantin Isakov 92eceb8cad Change email from @users.berlios.de to @goldendict.org. 2010-12-09 15:31:50 +03:00
Konstantin Isakov 953d9237a3 Update copyright to span to 2011.
Better early than late, this year is ending anyway.
2010-11-14 18:47:03 +03:00
Konstantin Isakov 68b1e5f262 Don't output abbreviations to console when indexing Dsl files. 2010-05-28 19:04:12 +04:00
Konstantin Isakov ab88fa4867 Drop the src/ directory. It's superfluous. 2010-05-15 16:42:18 +04:00
Renamed from src/dsl.cc (Browse further)