YiFang Xiao
fe29fdddc1
opt: add command line option --no-tts
...
when specified, the speech tab in the sources dialog will be disabled.
close #747
2023-05-27 12:11:37 +08:00
xiaoyifang
defc2447cf
opt: convert escape string to rawstring ( #749 )
...
* opt: convert escape string to rawstring
* 🎨 apply clang-format changes
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-27 00:27:50 +08:00
YiFang Xiao
d3cf46e469
clean code
2023-05-23 19:40:37 +08:00
YiFang Xiao
8b1b2a1628
fix: possible dsl languageForId issue
...
🎨 apply clang-format changes
action: restrict to current repositroy
other people's repository has no permission to commit fix
fix: refactor langcoder method
🎨 apply clang-format changes
🎨 apply clang-format changes
🎨 apply clang-format changes
fix: code smell
🎨 apply clang-format changes
fix: adjust zlib link on Windows
fix: refactor langcoder structure
2023-05-23 19:03:25 +08:00
xiaoyifang
f562b9bb5f
fix: lingua request error will lost a finish signal ( #734 )
...
* fix: lingua request error will lost a finish signal
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-21 16:31:05 +08:00
shenleban tongying
23be164bbe
fix: access optional without checking the existence
2023-05-21 16:30:19 +08:00
xiaoyifang
715512eda3
feat: allow to customize dictionary name ( #722 )
...
* feat: allow to customize dictionary name
* 🎨 apply clang-format changes
* fix: code smell
* feat: allow to set custom dictionary name
* 🎨 apply clang-format changes
* feat: add doc for customizing dictionary name
* 🎨 apply clang-format changes
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-20 22:33:20 +08:00
xiaoyifang
39992d8284
fix: open epwing dictionary folder ( #724 )
...
* fix: open epwing dictionary folder
check whether the current path is dir already
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-20 22:26:33 +08:00
xiaoyifang
d174dc16ba
opt:remove non-xapian fulltext creation logic ( #643 )
...
* opt!:remove non-xapian fulltext creation logic
BREAKING CHANGE: after this PR, xapian package will have to installed
before the compilation. on Linux, this should be libxapian-dev package.
For common users: all created fulltext which is not created by xapian
before will be recreated using the new
engine.
* fix: remove old fulltext search ui
* 🎨 apply clang-format changes
---------
Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
2023-05-17 22:29:56 +08:00
YiFang Xiao
5fdf672d53
fix: rename customtransliteration from .cpp to .cc
2023-05-15 04:52:09 -08:00
YiFang Xiao
c40d04ec5e
feat: add custom transliteration support
...
fix #661
i18n: add new translation entries
2023-05-14 06:32:13 -08:00
YiFang Xiao
9c22e7bb21
clean: remove useless comment
2023-05-09 06:16:41 +08:00
xiaoyifang
f25bee96e5
fix:startdict parse html incorrect
...
stardict/xdxf use QDomDocument to parse the html. which result with incorrect html structure.
2023-05-09 06:16:41 +08:00
xiaoyifang
c11cff46f0
opt:style changes
2023-05-09 06:16:41 +08:00
xiaoyifang
eee71f6cdf
opt: remove unneccessary translation and QString conversion
2023-05-08 00:31:21 +08:00
xiaoyifang
bbec4685f8
fix:epwing navigation reference to invalid position
2023-05-05 08:24:00 +08:00
xiaoyifang
cce633b2cc
opt:refactor an implict string conversion to a purposeful name
...
fix #586
2023-04-30 13:45:11 +08:00
xiaoyifang
94759ffb58
opt: add group by metadata
...
close #612
2023-04-29 20:43:27 +08:00
xiaoyifang
50cf0a948e
fix:epwing narrow font display incorrectly
...
fix goldendict/goldendict#1244
2023-04-29 20:28:06 +08:00
xiaoyifang
cfe1a1c8c0
opt: simple case folding
2023-04-29 18:21:42 +08:00
xiaoyifang
b0f35b4f14
opt: replace Folding::normalizeWhitespace with QString::simplified
2023-04-29 18:21:42 +08:00
xiaoyifang
b8d4d49f54
opt: Folding::trimWhiteSpace refactor
...
add a new method which accept QString .
modern c++ style format
2023-04-29 18:21:42 +08:00
xiaoyifang
325c3fb0bb
opt: replace qthreadpool with qfuture
...
relate #515
2023-04-29 18:08:39 +08:00
xiaoyifang
dbe04db7f5
opt: move fsencoding to utils.hh(.cc)
...
after multi refactor ,the fsencoding only left two methods and has nothing to do with encoding . Base on this condition ,move the method to utils
2023-04-29 00:56:22 +08:00
xiaoyifang
ed4273e540
opt:refactor html:unescape method
...
close #579
2023-04-28 21:21:38 +08:00
xiaoyifang
12d9ae3ddb
fix:stardict bword dictionary compatiblity
...
fix #567 , some word is html encoded
2023-04-27 07:06:42 +08:00
xiaoyifang
3a52323f29
remove unnecessary string conversion
2023-04-25 08:28:40 +08:00
Xiao YiFang
c2f856c074
opt: Sorting through the use of strings
...
there are many string conversion in the system .some of them can be avoided .
2023-04-24 15:11:40 +08:00
xiaoyifang
11ea4bc799
opt: remove country.cc(.hh)
...
this file is only used in forvo functionality. As country flag is about to removed in future PR.
remove these two files first
2023-04-23 13:45:11 +08:00
xiaoyifang
a810a56d0c
opt: performance improve headword filter
2023-04-23 13:38:43 +08:00
xiaoyifang
72fca59a92
fix: headword dialog filter and export
...
the wildcard and regex filter does not work as expected.
fix #556
2023-04-23 13:38:43 +08:00
shenleban tongying
a8c898192f
feat(group): Auto Grouping by Dict' Containning Folder
2023-04-21 15:38:09 +08:00
shenleban tongying
bb566013b6
fix: qmake build
2023-04-17 21:06:59 -04:00
shenleban tongying
03af31c6fc
refactor: move common/base/utils into /src/common/
2023-04-17 20:41:47 -04:00
shenleban tongying
8b8ad5d23d
refactor: move all ui related files to /src/ui/
2023-04-17 19:11:58 -04:00
shenleban tongying
94293f1ccc
refactor: move DICT dictd and mdict parser to /src/dict/
2023-04-17 18:51:08 -04:00
shenleban tongying
b1828a4f9b
refactor: move epwing files to src/dict
2023-04-17 18:36:29 -04:00
shenleban tongying
49d852087d
fix: linux qmake build
2023-04-17 18:18:28 -04:00
shenleban tongying
697b2f9cd1
refactor: move left over .cc/.hh files to src/
2023-04-17 17:56:55 -04:00
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
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
xiaoyifang
954d6ffe06
fix:lingualibre cancel the request
2023-01-03 14:03:40 +08:00
shenlebantongying
43859df431
lingua: add " " to links
2022-12-29 04:11:34 -05:00
shenlebantongying
0d149337ca
lingua: add " " to <a href= >
2022-12-29 04:02:57 -05:00
shenleban tongying
f277af1a2e
lingua: handle network errors
...
* set timeout to 3s
* get rid of reply with errors
2022-12-28 01:06:01 -05:00
shenlebantongying
6fc3684b0a
Add Lingua Libre support ( #268 )
...
* lingua: add a dummy dict
* lingua: working but output plain json as article
* lingua: add html audio plays
* lingua: fix qmake build
* fix: qmake on mac INCLUDEPATH
* lingua: add config ui to dict sources edit dialog
* lingua: add config logics
* lingua: use the configured iso language code to do query
* lingua: style polish
2022-12-24 22:42:40 +08:00