tisfeng/Easydict

🚀 功能建议:建议新增类似生词本的功能

hongzzz opened this issue · 19 comments

请先确认以下事项

  • 已仔细阅读了 README
  • issues 页面搜索过,未发现类似功能建议
  • Easydict 已升级到最新版本

功能描述

在查词界面上加一个收藏按钮,类似有道词典;可以在统一的地方查看生词详情列表;

使用场景(可选)

No response

实现方案(可选)

No response

Hello hongzzz, Thank you for your first issue contribution 🎉

可以,感谢反馈,稍后会添加这个功能的。

Nat30 commented

同需要,感谢

收到,记下了。

any roadmap on this issue?

暂时没有,要等设置页重构 #227 (comment) 完成后,再来看这个。

I just found something that can be a temporary solution if we haven't figured out the long-term plan. Eudic itself has a not-so-bad vocabulary system.

https://my.eudic.net/OpenAPI/doc_api_study#-studylistapi-addwords

Currently, the new settings page is almost completed, and some related features can be done.

We can add a favorites button in the top right corner, and add a favorites and history Tab to the settings.

If you are interested in this feature, you can try to push this issue, PR is always welcome 🤗

@tisfeng Do you support the Eudic's solution or plan to do the app's history? Favorite and history Tabs are two features or the same one? Can you elaborate more?

For now, we can start by only supporting the Favorite/History feature, and Eudic can be put into another issue.

Favorite and History are very similar, we can use a simple way to do it, only record the information of the query word, such as word, queryFromLanguage, timestamp, etc., and don't record the result of the query for the time being.

Each time we perform a query word action, we record the word, which is the History list.
If the user clicks on the New Favorite button in the upper right corner, we add the word to the Favorite list.

I previously added Realm package, you can use it to store favorite words.

Of course, if you have other better solutions, that's fine too.

记单词能否提供一个配置选项,是否开启 翻译后一定会记录的功能

单词本:手动添加才会记录。
历史记录:每个查询都会被记录。

@yam-liu 你好,请问有在做这个功能吗

@tisfeng 暂时没有。

单词本:手动添加才会记录。 历史记录:每个查询都会被记录。

@yam-liu 你好,请问有在做这个功能吗

这里也有这个需求(就是搜词历史和单词收藏的功能)!!(search 了一下就不开新页面来建议了)

@ellya00 没有,不好意思最近开始忙起来了。而且 repo owner 貌似是想自己做一个数据库,我的想法是存到 eudic。这块想法不一样,因为时间不多所以没有深入讨论。

我也在使用 eudic,对于支持 eudic,将收藏的单词同步到 eudic 这部分没问题。

但考虑到不是所有用户都使用欧路词典,所以 Easydict 本身还是应该实现一个自己的单词记录模块(单词本和历史记录),将单词本同步到 eudic 可以是一个额外功能。

最近计划使用 SwiftUI 重写查询窗口 #551 ,考虑到 SwiftUI 可能会改动许多数据存储结构,因此单词本功能需要等重写完成后。

嗯嗯是的,所以一共是有3个需求,Easydict 自己的单词记录模块里的(1单词本和 2历史记录),和3将单词本导出,应该可以设置特定的格式,导入很多词典吧。不着急更新,就是一些提议~