From 1a5e792d38009c463788fcee0a5ed43b96026f92 Mon Sep 17 00:00:00 2001 From: cdhigh Date: Sun, 9 Jun 2024 22:00:45 -0300 Subject: [PATCH] improve online dict --- .../lib/calibre/ebooks/mobi/writer8/toc.py | 2 +- application/lib/calibre/web/feeds/news.py | 4 +- application/lib/dictionary/__init__.py | 14 +- application/lib/dictionary/dict_cc.py | 10 +- application/lib/dictionary/dict_cn.py | 4 + application/lib/dictionary/dict_org.py | 12 +- application/lib/dictionary/merriam_webster.py | 54 +++ application/lib/dictionary/pystardict.py | 442 ++++++++++++++++++ application/lib/dictionary/stardict.py | 42 ++ application/static/base.js | 4 +- application/static/reader.css | 52 ++- application/static/reader.js | 191 +++++--- application/templates/adv_dict.html | 6 +- application/templates/my.html | 2 +- application/templates/reader.html | 22 +- application/templates/reader_404.html | 10 + application/translations/messages.pot | 379 +++++++++------ .../tr_TR/LC_MESSAGES/messages.mo | Bin 28836 -> 29594 bytes .../tr_TR/LC_MESSAGES/messages.po | 389 ++++++++------- .../translations/zh/LC_MESSAGES/messages.mo | Bin 27039 -> 27850 bytes .../translations/zh/LC_MESSAGES/messages.po | 389 ++++++++------- application/view/adv.py | 25 +- application/view/reader.py | 66 ++- application/view/settings.py | 22 +- docker/Dockerfile | 3 +- docs/Chinese/README.md | 1 + docs/Chinese/deployment.md | 14 + docs/Chinese/reader.md | 33 +- docs/English/README.md | 1 + docs/English/deployment.md | 12 + docs/English/reader.md | 25 +- tools/run_flask.bat | 1 + tools/update_req.py | 27 +- 33 files changed, 1650 insertions(+), 608 deletions(-) create mode 100644 application/lib/dictionary/merriam_webster.py create mode 100644 application/lib/dictionary/pystardict.py create mode 100644 application/lib/dictionary/stardict.py diff --git a/application/lib/calibre/ebooks/mobi/writer8/toc.py b/application/lib/calibre/ebooks/mobi/writer8/toc.py index 3ec2e57c..bd7f5eae 100644 --- a/application/lib/calibre/ebooks/mobi/writer8/toc.py +++ b/application/lib/calibre/ebooks/mobi/writer8/toc.py @@ -18,7 +18,7 @@ {title}