shenleban tongying
7feb883408
refactor: move all dictionary parsers to /src/dict/
...
If a file contains `makeDictionaries` then it belongs to there
2023-04-17 16:55:34 -04:00
shenleban tongying
2f9f09bb9f
refactor: unify source extensions to .cc and .hh
2023-04-17 16:17:03 -04:00
Xiao YiFang
a840a99e5c
clean: replace the string with rawstring
...
replace some html make section with rawstring to achieve a more clear readability
2023-04-16 00:24:11 +08:00
shenleban tongying
223e67e503
feat(stardict): Display images from img:
in resource file list
...
See Type identifiers -> 'r' at http://www.huzheng
.org/stardict/StarDictFileFormat
2023-04-15 19:23:27 +08:00
shenleban tongying
0cb3bb9142
refactor: abstract FsEncoding::dirname(getDictionaryFilenames()[0])
...
* FsEncoding::dirname is mostly used with getDictionaryFilenames()[0] to obtain the containing folder of a dict
* Abstract them into Dictionary::Class::getContainingDir()
* FsEncoding::dirname is removed
2023-04-14 12:53:53 +08:00
shenleban tongying
e66f97f7db
refactor: remove FsEncoding::encode/decode
...
They never serve any purpose other than converting between std::string <> QString <> char*.
2023-04-14 07:27:59 +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
540dda26ed
cleanup: Replace all usages of qrcx://localhost with qrc://
...
The replacement command:
git grep -l 'qrcx://localhost' | xargs sed -i 's/qrcx:\/\/localhost/qrc:\/\//g'
The qrcx:// URL scheme was introduced in 2009 or earlier - it is present
in the first commit in GoldenDict's git history. Back then GoldenDict
supported Qt versions earlier than 4.6, in which
QWebSecurityOrigin::addLocalScheme() was introduced. Adding the qrc URL
scheme as local obsoletes the qrcx URL scheme. GoldenDict does not
compile against Qt versions earlier than 4.6, so there is no reason to
use this custom URL scheme anymore.
Co-authored-by: Igor Kushnir <igorkuo@gmail.com>
2023-03-05 15:20:05 -05:00
shenleban tongying
2aeed5e705
clang-tidy: apply modernize-use-override
2022-12-29 02:14:53 -05:00
shenleban tongying
fcfa4e43e2
refactor: replace escaped strings with raw strings via clang-tidy
2022-12-24 17:01:50 -05: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
shenlebantongying
b7e4afbd5b
Add alternative build method "CMakeLists.txt" ( #218 )
...
* Add "CMakeLists.txt"
* cmake: initial macOS support
* cmake: initial windows support
* cmake: improve styles
* cmake: add FFmpeg for Linux and macOS
* cmake: add FFmpeg to macOS
* cmake: Carbon typo
* cmake: add epwing to macOS
* cmake: correctly install all files on linux
* cmake: Abolish vcpkg and use winlibs/
* cmake: set version.txt timestamp
* cmake: revert config.cc change
* cmake: remove outdated comment
2022-11-26 11:23:08 +08:00
Xiao YiFang
83b36a7316
xapian ,fullindex file name different in normal mode and xapian mode
2022-10-06 11:04:48 +08:00
Xiao YiFang
ba10f68c1c
clean code: replace throw() with noexcept
2022-06-03 21:29:06 +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
xiaoyifang
67c74136e8
optimize: tiff method refactor
2022-04-05 21:36:06 +08:00
yifang
fb2eac9b5e
upgrade to 6.2,linux compile
2022-03-11 22:14:40 +08:00
xiaoyifang
7b5511a7bd
upgrade to qt6.2
2022-03-11 22:00:45 +08:00
xiaoyifang
c2b466ce19
Merge branch 'feature/cpp-refactor-code' into staged
2022-02-03 17:51:40 +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
37d22bc412
improve:handle invalid tag soup improvement, related to old issue #271
2022-01-11 20:33:46 +08:00
xiaoyifang
c7d33f4eb9
clean code: remove old cpp feature
2022-01-09 16:35:07 +08:00
yifang
09063ecc5a
clean code:
...
QString::SkipEmptyParts=>Qt::SkipEmptyParts
2021-12-29 22:29:06 +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
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
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
b002fece6d
Fix some more warnings (issue #978 again)
2018-05-22 17:48:14 +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
cbdd6bfe5a
Qt5: Fix some potential issues after using QRegularExpression instead of QRegExp
2018-03-12 00:06:09 +03:00
Abs62
6d03661b70
Stardict: Add class for "h3" headwords tags
2018-03-07 17:01:16 +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
0b6f36479d
Add config file parameter to limit headwords number to expand multi-word headwords while indexing (issie #914 )
2017-10-25 17:37:39 +03:00
Abs62
9ae92bf251
Stardict(html): Add partial support for "audio" tag
2017-10-17 17:51:27 +03:00
zarelaky
5988fa8652
format output of Powerword dicts
2017-08-29 12:50:42 +08:00
Abs62
cdf2c0d404
Add option to ignore words order while full-text search
2017-07-25 18:28:29 +03:00
Abs62
71ddc5c323
Use <div> tag instead of <span> to enclose articles
2017-06-09 15:38:23 +03:00
Abs62
971e7176ca
Stardict: Fix handling of some HTML attributes in the upper case (issue #846 )
2017-06-01 22:49:56 +03:00
Abs62
eb78238f25
Add support for split zip files
2017-04-24 17:42:01 +03:00
Abs62
94583da9a3
GLS, Stardict: Fix some links handling
2017-03-20 17:36:28 +03:00
Abs62
069be03271
Make headers in dictionary info translatable
2017-03-16 18:20:36 +03:00
Nikolay Korotkiy
e26f212096
Make options translatable
2017-03-15 00:35:59 +03:00
Nikolay Korotkiy
3a2703b564
Add missing options
2017-03-15 00:35:59 +03:00
Abs62
d1147dc4f0
GLS, Stardict: A little optimization for regular expressions
2017-03-13 17:36:23 +03:00
Abs62
5b80f75637
GLS, Stardict: Fix some links handling
2017-03-12 14:40:45 +03:00