Commit graph

2654 commits

Author SHA1 Message Date
Abs62 b10cdf685c MDict: A little support for video 2021-11-12 21:26:46 +03:00
xiaoyifang f397a8f68d
Merge branch 'goldendict:master' into branch-qt-5.15 2021-11-11 18:18:36 +08:00
fenuks b9b7067b5b Linux-specific: Optionally store history in XDG_DATA_HOME in Qt5 build
Separate data directory is only used if history file isn't already
present in the configuration directory.

This commit together with two previous ones allows to switch to
layout described in XDG Base Directory specification. Data is not
migrated automatically and old ~/.goldendict home dir has precedence.
If you wish to use standards-compliant locations, move files and
directories manually:

```
CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/goldendict"
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/goldendict"
DATA="${XDG_DATA_HOME:-$HOME/.local/share}/goldendict"
mkdir -p "${CACHE}"
mkdir -p "${DATA}"
mv ~/.goldendict/index "${CACHE}"
mv ~/.goldendict/history "${DATA}"
mv ~/.goldendict/ "${CONFIG}"
```
2021-11-10 18:52:15 +03:00
fenuks ae4eea3513 Linux-specific: Optionally store index in XDG_CACHE_HOME in Qt5 build 2021-11-10 18:52:15 +03:00
fenuks f6742d8fb4 Linux-specific: Optionally use XDG_CONFIG_HOME for config in Qt5 build 2021-11-10 18:52:15 +03:00
fenuks 5de5f18f48 Linux-specific: Use lowercase cache directory name in Qt5 build
Please note that this effectively discards network cache stored in
"${XDG_CACHE_HOME:-$HOME/.cache}/GoldenDict/network". You can safely
delete the obsolete cache directory. If you wish to preserve and
keep using the existing network cache, move it into the new location
manually:

```
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}"
mkdir -p "${CACHE}/goldendict"
mv "${CACHE}/GoldenDict/network" "${CACHE}/goldendict"
rmdir "${CACHE}/GoldenDict"
```

If GoldenDict with this change has been already used, new cache dir
will already have "${CACHE}/goldendict/network", and mv will refuse to
merge directories. In such case, you will need to manually remove it
before moving directory with old cache.
2021-11-10 18:52:15 +03:00
xiaoyifang 8405035d2f refract encoding method 2021-11-06 16:55:51 +08:00
xiaoyifang f0a3df3d6f refract encoding method 2021-11-06 16:26:30 +08:00
xiaoyifang 02a88c98ad load dsl dictionary performance improved 2021-11-06 15:45:36 +08:00
xiaoyifang 2633b32458 load dsl dictionary performance improved 2021-11-06 12:41:26 +08:00
xiaoyifang fb2b667cc5 refract code 2021-10-23 17:37:29 +08:00
yifang cc9fa33733 fix linux compile error 2021-10-23 12:05:16 +08:00
xiaoyifang c9652bbb74 qstream peformance 2021-10-21 22:20:07 +08:00
xiaoyifang 66ed1c0507 optimize javascript scrollIntoView 2021-10-20 23:44:24 +08:00
子湑 e92797a98a fix cmd+C+C not working under Japanese Input 2021-10-20 18:33:58 +03:00
xiaoyifang 9857ed0559 use char32_t as the inner string unit. 2021-10-20 23:02:37 +08:00
xiaoyifang 728a5b9651 destroy object ,when request the same url multi times ,the previous request was canceled. 2021-10-19 22:16:44 +08:00
xiaoyifang ded545ecf3 fix dictionary parse error:
1,mdx dictionary load error in windows.
2,dsl dictionary load error in windows.
2021-10-19 00:19:25 +08:00
Abs62 519670ad18 Full text search: Fix search in "Wildcards" and "RegExp" modes 2021-10-13 21:15:01 +03:00
yifang c1eef3a228 remove inspector -- useless code 2021-10-05 09:51:51 +08:00
yifang f13c713265 right panel founded dictionaries 2021-10-05 09:23:30 +08:00
xiaoyifang c10d8654bc Merge branch 'fix/foundictionaries' of github.com:xiaoyifang/goldendict into fix/foundictionaries
# Conflicts:
#	articleview.cc
2021-10-04 15:30:37 +08:00
xiaoyifang 09441a8b72 found in dictionaries list widgets 2021-10-04 15:27:49 +08:00
xiaoyifang bbd7fa8716 found in dictionaries list widgets 2021-10-03 19:28:26 +08:00
xiaoyifang bdb9561ec9 rename scheme handler 2021-10-02 20:48:49 +08:00
yifang 3bdb1aabb5 minor changes 2021-10-02 11:15:39 +08:00
xiaoyifang fa39e972ce remove useless code 2021-09-25 10:23:03 +08:00
xiaoyifang 5b3cce412b Merge branch 'branch-qt-5.15' of github.com:xiaoyifang/goldendict into branch-qt-5.15 2021-09-25 10:17:20 +08:00
xiaoyifang 20c3a7241d fix: js unexpected error. 2021-09-25 10:17:05 +08:00
xiaoyifang 952c7b2086
Update README.md 2021-09-24 22:47:23 +08:00
xiaoyifang 81f8680fba
Update README.md 2021-09-24 22:44:54 +08:00
xiaoyifang d2257ce061 Merge remote-tracking branch 'remotes/origin/master' into branch-qt-5.15
# Conflicts:
#	articleview.cc
2021-09-24 14:08:26 +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 d840326717 change link gdlookup://localhost/[word] to gdlookup://localhost?word=[word] 2021-09-24 21:08:54 +08:00
yifang a23409c875 fix:loaded url twice 2021-09-24 20:29:13 +08:00
yifang bf2640bb25 play sound in the dictionary html 2021-09-23 13:05:05 +08:00
xiaoyifang bec982c51e remove dead code 2021-09-22 12:01:17 +08:00
xiaoyifang 17afc21478 1.js undefined error
2,disable chrome auto play feature
2021-09-22 11:20:42 +08:00
yifang 4a5af10277 add local scheme ,such as qrcx,gadu,etc. 2021-09-21 18:22:08 +08:00
xiaoyifang 0279273369 add gico scheme handler 2021-08-28 10:35:23 +08:00
yifang e5c72f8ecc change to setcontent 2021-08-21 09:41:40 +08:00
yifang b1c4159a3d change function declarition 2021-08-15 11:05:38 +08:00
xiaoyifang eddfa075bd connect reply content to article view 2021-08-14 15:25:10 +08:00
xiaoyifang 5967f70c4b remove useless code 2021-08-06 23:10:15 +08:00
xiaoyifang 939a96b7a6 register local scheme gdlookup:// 2021-08-05 14:57:22 +08:00
yifang 54bdf12d8d network manager change 2021-07-24 15:18:46 +08:00
xiaoyifang 4b7af3cf6c webkit to webengine 2021-07-15 23:07:45 +08:00
xiaoyifang 3aadf52344 webkit to webengine 2021-07-15 22:58:32 +08:00
Igor Kushnir baff02a14b Make MainWindow::setTranslateBoxTextAnd*() harder to misuse
Most callers of these member functions should escape wildcard symbols in
the `text` argument. Yet nothing in the functions' signatures suggested
such escaping. With the added enum WildcardPolicy argument, the callers
are forced to decide whether or not the wildcards should be escaped.
2021-06-30 20:01:40 +03:00
Igor Kushnir 9ff28e226f Translate box: add missing wildcard symbol (un)escaping
When not-escaped wildcard symbols are placed in the translate box/line,
word completion can occupy the CPU for seconds. So it is safer to err on
the side of escaping than the other way around.

The missed unescaping in ScanPopup::translateInputFinished() was
inconsistent with the main window. It made escaping in the scan popup's
translate box unusable by attempting to translate e.g. "\*" verbatim.
2021-06-30 20:01:40 +03:00