xiaoyifang
81e1b5d9a6
fix: the implementation of unescapeutf8 is wrong
...
fix the bug found in ref #579
2023-04-27 13:26:32 +08:00
YiFang Xiao
617589d09c
fix:unified the cache/directory
...
supplement to a82ce2a86f
2023-04-27 13:25:57 +08:00
shenleban tongying
07d9c63c79
clean(html): satisfy w3c html validator
...
* use <meta charset="utf-8">
* remove useless script type=text/javascript
* remove a trailing slash on <link>
2023-04-27 13:18:05 +08:00
xiaoyifang
12d9ae3ddb
fix:stardict bword dictionary compatiblity
...
fix #567 , some word is html encoded
2023-04-27 07:06:42 +08:00
shenleban tongying
dfc5d701ea
fix(autoGroupByFolder): prepend upper level folder name when two
...
groups share same name but in different folder
2023-04-26 20:46:07 +08:00
xiaoyifang
a82ce2a86f
opt: use unified cache dir
...
seperate the persistentstoragepath with cachepath
2023-04-26 07:45:48 +08:00
xiaoyifang
04260c1fbe
fix: can not remove favorite word in popup
...
this bug was existed for a long time
2023-04-25 23:07:22 +08:00
xiaoyifang
7261151eb6
Merge branch 'staged' into fix/issue-502-wstring
2023-04-25 22:33:47 +08:00
xiaoyifang
19889bfa9b
opt:add a statusbar notification when finshed save article
...
fix #554
2023-04-25 22:22:30 +08:00
xiaoyifang
3a52323f29
remove unnecessary string conversion
2023-04-25 08:28:40 +08:00
xiaoyifang
130044b092
fix:clang-tidy warning
2023-04-24 15:55:32 +08:00
Xiao YiFang
b68a70caa6
refactor wstring toWString
...
ref #506
2023-04-24 15:55:24 +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
cb67c465a3
opt: use QTextStream to generate the BOM
...
when export headwords to file
2023-04-23 21:20:40 +08:00
xiaoyifang
084175f56f
fix: code smell
2023-04-23 21:20: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
34652421be
fix: refactor language.cc implementation
...
fix #535
2023-04-23 13:45:11 +08:00
xiaoyifang
8c415cb9a6
fix: code smell and format
2023-04-23 13:45:11 +08:00
xiaoyifang
a810a56d0c
opt: performance improve headword filter
2023-04-23 13:38:43 +08:00
xiaoyifang
21bab62263
fix : code smell
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
d0ae253c27
docs: various updates
...
* isolate Help related code into help.hh
* update website & README.md
2023-04-22 18:21:14 +08:00
YiFang Xiao
d61dfaa8f3
fix: change contain-intrinsic-size to contain-intrinsic-height with auto value
2023-04-21 21:28:36 +08:00
shenleban tongying
a8c898192f
feat(group): Auto Grouping by Dict' Containning Folder
2023-04-21 15:38:09 +08:00
Xiao YiFang
1798025d0b
opt: when in darkmode ,make the current article more significant
...
fix #493
2023-04-21 12:09:12 +08:00
xiaoyifang
a5d6505765
fix: rename qt_*.ts in locale to distinguish between normal locale la… ( #543 )
...
* fix: rename qt_*.ts in locale to distinguish between normal locale language files.
also put qtwebengine_zh_CN.ts here to avoid windows script copying.
fix #533
* Update Readme.md
2023-04-21 09:36:26 +08:00
shenleban tongying
1a3bae3329
cleanup(css): remove 1x1 pixel <img> hack
...
When the code was written, there is no way to specify img's src, so
the 1x1 blank.png is a dummy img to be replaced.
2023-04-20 19:53:34 +08:00
shenleban tongying
3f3ba6eee1
refactor: reduce dependency on mainwindow.hh
...
* editdictionaries.cc and dictheadwords.cc doesn't actually need it
* fulltextsearch has a useless static_cast
2023-04-20 19:53:17 +08:00
Xiao YiFang
11e8a1b67d
fix: ui resource file location has changed
2023-04-20 16:22:10 +08:00
Xiao YiFang
3cca0fa651
fix: interface language display in elide mode
...
fix #534
2023-04-20 16:22:10 +08:00
xiaoyifang
664d6b1483
opt: give a min-height to the last dictionary
...
fix #536
2023-04-20 12:43:35 +08:00
Xiao YiFang
92cb1c1157
clean: remove unused options.ui file
...
fix #541
2023-04-19 22:02:17 +08:00
shenleban tongying
747ebf3a82
feat(cmake): various updates
...
* recursive file including
* with xapian
* use iconv
* feature summary
2023-04-18 17:38:48 +08:00
shenleban tongying
5c5db459b5
feat(cli): implement --toggle-scan-popup command line option
2023-04-18 17:36:42 +08:00
shenleban tongying
30fcaae433
feat(cli): skip commandline parsing when no args
2023-04-18 17:36:42 +08:00
Xiao YiFang
14c4366839
fix: when input word in translateline and press Enter
...
can not type word directly again.
fix:#185
2023-04-18 16:08:32 +08:00
Xiao YiFang
75b0a92be7
fix: remove unused windowsstyle.cc(.hh)
...
fix #512
2023-04-18 16:04:54 +08:00
Xiao YiFang
e6cd18e1b3
clean: remove gdappstyle file
...
fix #516
2023-04-18 10:31:39 +08:00
shenleban tongying
9589a67789
refactor: move more files into /src/common/
2023-04-17 21:35:15 -04:00
shenleban tongying
088e34a763
refactor: move scripts.qrc into /src/scripts
2023-04-17 21:26:05 -04:00
shenleban tongying
bb566013b6
fix: qmake build
2023-04-17 21:06:59 -04:00
shenleban tongying
7127539f29
refactor: move remaining C files into /src/
2023-04-17 20:52:05 -04:00
shenleban tongying
491fbbfd87
refactor: move flags into /icons/
2023-04-17 20:44:50 -04:00
shenleban tongying
03af31c6fc
refactor: move common/base/utils into /src/common/
2023-04-17 20:41:47 -04:00
shenleban tongying
b602bc0e9f
fix(qmake): macOS build
2023-04-17 20:00:36 -04:00
shenleban tongying
0fbfb1f36c
refactor: move runtime scripts and flags into /src/
2023-04-17 19:49:52 -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
129345613e
refactor: Move all .cc/.hh files to src/
2023-04-17 17:17:36 -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
20230542d6
refactor: move none c++ source files into src/
2023-04-17 13:40:05 -04:00
Xiao YiFang
9fe2e136da
clean: remove code smell
2023-04-16 00:23:51 +08:00
Xiao YiFang
2a7892836e
feat: session collapsable feature support
...
when enabled , user's manual collapsed dictionary will remain collapsed in the successive search until user expand the dictionary again.
2023-04-16 00:23:51 +08:00
Xiao YiFang
e2e0b4e362
fix: remove the webplugin option
...
this plugin is used mainly for flash plugins, which has been disabled in modern browser.
There is no need to configure this option.
2023-04-15 13:13:47 +08:00
Xiao YiFang
2f4db6c34f
fix:favorite panel arrow up/down does not work
2023-04-13 07:13:41 +08:00
Xiao YiFang
c472b2cb71
fix:code smell
2023-04-09 12:42:32 +08:00
Xiao YiFang
1996af61a6
fix: mdx dictionary entry://#hashtag navigation
2023-04-09 12:42:32 +08:00
GenjiFujimoto
16943ccab1
Add ankicard link and button
...
make selectedText const
add a new keyboard shortcut: ctrl+shift+n to make a card
if word is empty, warn and exit
rename
return after ankisearch
remove temp vars
change the anki action's text depending on selected text
reformat article maker
the anki button is shown under the heading
revert to the previous way of constructing gddictname
to reduce size of the diff
2023-04-06 09:06:57 +08:00
Xiao YiFang
2407cf2a88
use QTextToSpeech module to play tts.
...
fix code smells
2023-03-29 23:16:01 +08:00
Ren Tatsumoto
01c661b575
Allow adding "ankisearch:" links in external programs. ( #412 )
...
* Add ankisearch link
* auto indent
* use raw string
* refuse to run if ankiconnect is not enabled
---------
Co-authored-by: GenjiFujimoto <dratschuk.d@gmail.com>
2023-03-22 10:04:54 +08:00
xiaoyifang
a234bb0e43
remove qt-style.css content totally ( #407 )
...
* remove all qt-style
* remove all related #translationLine #GroupCombox qt style
2023-03-22 09:01:22 +08:00
shenleban tongying
0731253489
cleanup: simplify DSL's expand mode
...
Related code was related to DSL's [*][/*] tag.
One of the feature removed is Ctrl+8 to toggle current articleview's AlwaysExpand mode, because DSL is the only format that has this feature and User can turn on AlwaysExpand Mode on Preferences. There is no need to assign a shortcut for it.
2023-03-21 15:34:55 +08:00
shenleban tongying
3a93f8b959
Revert "fix: white flash when WebEngine page is loading in dark reader mode"
...
This reverts commit f7d6328f40
.
2023-03-20 13:42:39 +08:00
shenleban tongying
f7d6328f40
fix: white flash when WebEngine page is loading in dark reader mode
2023-03-18 19:53:08 +08:00
shenleban tongying
fac1247c10
refactor: properly modularize articleview's ui
2023-03-18 11:00:06 +08:00
shenleban tongying
4f2c8d55aa
refactor: port away from extlineedit
...
* the main feature of extlineedit.cc was having icons on left and right side which is already provided by QLineEdit::addAction after Qt5.2
2023-03-06 09:46:32 +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
b1802e254e
fix: ensure #translateLine always have left border
2023-02-22 21:09:46 -05:00
shenleban tongying
497ecf3719
fix: use alternative clipboard change monitor on macOS
...
QClipboard cannot monitor data changes on mac unless an application is focused
2023-02-17 22:02:52 -05:00
shenlebantongying
f8e2e3c021
feat: bring back custom qt style sheets for Windows
2023-02-12 11:01:36 -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
Konstantin Isakov
ab88fa4867
Drop the src/ directory. It's superfluous.
2010-05-15 16:42:18 +04:00
Konstantin Isakov
285e3d39b5
Remove the 'move to gitorious' notice now that we've moved.
2010-05-15 16:36:56 +04:00
Konstantin Isakov
4fa567e3bf
Move to Gitorious. Mark this transition in the .pro file.
2010-05-15 16:27:47 +04:00
Konstantin Isakov
88ef3213e0
In BGL articles, only add displayed headword if the normal headword contains
...
at least one digit.
This is reduce headword pollution -- some dictionaries has meaningless
headwords, but to make those unique they typically add digits in them.
2010-05-15 16:22:43 +04:00
Konstantin Isakov
ceab951fe9
Update year in copyright notices.
2010-05-08 22:59:59 +04:00
Konstantin Isakov
706b156938
Allow editing dictionary groups right from the dictionary bar (Right Click->
...
Edit this group).
2010-05-08 18:02:51 +04:00
Konstantin Isakov
42463992c3
Prevent program from quitting spontaneously when it works with scan popup
...
and the main window is closed.
2010-05-08 17:57:41 +04:00
Konstantin Isakov
69f0d0c4cf
Handle requests to read zero bytes from dictzipped files correctly. Handle any
...
exceptions when reading articles in StarDict file format gracefully.
2010-05-02 01:51:57 +04:00
Konstantin Isakov
6728671c7d
Populate list of matches in scan popup with results only from enabled
...
dictionaries.
Previously it was listing results from all dictionaries in the current group,
regardless of the dictionary bar.
2010-04-30 13:56:40 +04:00
Konstantin Isakov
964dd0d5bd
Toggling main window gives focus to the translation line.
...
Additionally, any opened search is now closed once a new definition is
shown in the article view.
2010-04-27 11:49:37 +04:00
Konstantin Isakov
b63a032218
Make sure empty headwords don't end reading BGL files early.
2010-04-22 22:24:21 +04:00
Konstantin Isakov
3e08acbeac
Double-clicking the words in an article translates them right away. This
...
feature may be turned off in preferences, but it is on by default.
2010-04-09 00:37:59 +04:00
Konstantin Isakov
72a6ea1292
Probable fix for scanpopup problems in Ubuntu 9.10.
2010-04-03 14:31:50 +04:00
Konstantin Isakov
dcfd87397d
Add support for lang(xx) and gdlangfrom-xx language attributes to articles.
2010-04-03 13:43:39 +04:00
Konstantin Isakov
80e2b7b35e
Chinese translation update by Zhangjinsong. Other translations lupdated.
2010-04-02 16:38:57 +04:00
Konstantin Isakov
1a13abcc41
Show individual words after compound expressions, not before them.
...
This feels a bit better, since compound expressions are more useful than
the basic word split.
2010-04-01 13:08:51 +04:00
Konstantin Isakov
a0fda4383a
Implement dictionary bar for scan popup.
...
This dictionary bar operates completely separately from the dictionary bar in
the main window, and has its own set of muted dictionaries. The bar is on the
right of the window by default, but can be moved once the window is pinned
down.
Windows users, please test, this may have some Windows-specific problems.
2010-03-31 00:16:27 +04:00
Konstantin Isakov
6ea73fdf85
Don't perform excessively large queries (words with more than 80 symbols) to
...
mediawiki sites, they can't succeed anyway.
2010-03-30 20:52:44 +04:00
Konstantin Isakov
c6b9cc0434
When an unsuccessful attempt to look up a phrase or whole sentence is made, the query is splitted into individual words and presented to user as links. Then all the compound expressions (expressions consisting of two or more words) are attempted to be found, and the results are also presented to the user.
2010-03-30 17:41:14 +04:00
Konstantin Isakov
240bff7e63
Update case folding table to the latest one. Add diacritic folding to the Russian letter Yo.
2010-03-29 23:01:48 +04:00
Konstantin Isakov
eaebf218eb
Use "phonon/mediaobject.h"-style includes for Phonon, as the older ones don't work under Debian sid anymore.
...
If you know how to make this actually work everywhere, please send in a patch.
2010-03-29 17:13:29 +04:00