mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
Merge branch 'fix/mix-sound' into staged
This commit is contained in:
commit
ccf3bea934
|
@ -515,7 +515,7 @@ void ArticleView::showAnticipation()
|
||||||
ui.definition->setCursor( Qt::WaitCursor );
|
ui.definition->setCursor( Qt::WaitCursor );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ArticleView::loadFinished( bool )
|
void ArticleView::loadFinished( bool result )
|
||||||
{
|
{
|
||||||
setZoomFactor(cfg.preferences.zoomFactor);
|
setZoomFactor(cfg.preferences.zoomFactor);
|
||||||
QUrl url = ui.definition->url();
|
QUrl url = ui.definition->url();
|
||||||
|
@ -601,8 +601,11 @@ void ArticleView::loadFinished( bool )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//the click audio url such as gdau://xxxx ,webview also emit a pageLoaded signal but with the result is false.need future investigation.
|
||||||
|
//the audio link click ,no need to emit pageLoaded signal
|
||||||
|
if(result){
|
||||||
emit pageLoaded( this );
|
emit pageLoaded( this );
|
||||||
|
}
|
||||||
if( Utils::Url::hasQueryItem( ui.definition->url(), "regexp" ) )
|
if( Utils::Url::hasQueryItem( ui.definition->url(), "regexp" ) )
|
||||||
highlightFTSResults();
|
highlightFTSResults();
|
||||||
}
|
}
|
||||||
|
@ -1118,6 +1121,7 @@ void ArticleView::openLink( QUrl const & url, QUrl const & ref,
|
||||||
QString const & scrollTo,
|
QString const & scrollTo,
|
||||||
Contexts const & contexts_ )
|
Contexts const & contexts_ )
|
||||||
{
|
{
|
||||||
|
audioPlayer->stop();
|
||||||
qDebug() << "open link url:" << url;
|
qDebug() << "open link url:" << url;
|
||||||
|
|
||||||
Contexts contexts( contexts_ );
|
Contexts contexts( contexts_ );
|
||||||
|
|
|
@ -5,7 +5,9 @@ the technique used there is old and can not work crossplatform .
|
||||||
with the help of another great tool [Capture2Text](https://sourceforge.net/projects/capture2text/) ,GoldenDict can work with ocr seamlessly.
|
with the help of another great tool [Capture2Text](https://sourceforge.net/projects/capture2text/) ,GoldenDict can work with ocr seamlessly.
|
||||||
|
|
||||||
# Note
|
# Note
|
||||||
Capture2Text has offered Windows precompiled executable files.I think it would be easier and possible to make it work on Linux as some afforts have tried.
|
Capture2Text has offered Windows precompiled executable files.I have ported it to Linux https://github.com/xiaoyifang/Capture2Text
|
||||||
|
|
||||||
|
Thanks to:
|
||||||
- [Capture2Text Linux Port](https://github.com/GSam/Capture2Text )
|
- [Capture2Text Linux Port](https://github.com/GSam/Capture2Text )
|
||||||
- [another on nixos](https://github.com/sikmir/nur-packages/blob/7c876e3fb20160781207a8f652fb052647e6da0d/pkgs/misc/capture2text/default.nix) from [sikmir](https://github.com/goldendict/goldendict/issues/1445#issuecomment-1022972220)
|
- [another on nixos](https://github.com/sikmir/nur-packages/blob/7c876e3fb20160781207a8f652fb052647e6da0d/pkgs/misc/capture2text/default.nix) from [sikmir](https://github.com/goldendict/goldendict/issues/1445#issuecomment-1022972220)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue