Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有关中文释义 #43

Closed
Hodwe opened this issue May 9, 2024 · 6 comments
Closed

有关中文释义 #43

Hodwe opened this issue May 9, 2024 · 6 comments

Comments

@Hodwe
Copy link

Hodwe commented May 9, 2024

如果想用中文释义的功能,必须得另外弄一个英文方案和码表是吗?

@boomker
Copy link
Owner

boomker commented May 9, 2024

目前来说,只能这样实现。英文词典和反查词典还不能合二为一
之前看到未来 Squirrel 版本会支持合二为一的这种词典格式。

@Hodwe
Copy link
Author

Hodwe commented May 9, 2024

好的,谢谢

@Hodwe
Copy link
Author

Hodwe commented May 14, 2024

在这问一个其他的问题:
我看lua新增了最近时间的输入
["/wqt"] = { -2, "前天" },
["/wzt"] = { -1, "昨天" },
["/now"] = { 0, "此刻" },
["/wjt"] = { 0, "今天" },
["/wmt"] = { 1, "明天" },
["/wht"] = { 2, "后天" },
["/wuz"] = { -7, "上周" },
["/wxz"] = { 7, "下周" },
["/wlk"] = { -7, "上周" },
["/wnk"] = { 7, "下周" },
["/wuy"] = { get_month_sameday("before"), "上个月今天" },
["/wxy"] = { get_month_sameday("after"), "下个月今天" },
["/wlm"] = { get_month_sameday("before"), "上个月今天" },
["/wnm"] = { get_month_sameday("after"), "下个月今天" },

我之前有个旧的时间lua,尝试借助ChatGPT融合没有成功,大佬能给一些思路或者帮我融合一下吗?感谢😂
time_translator.txt

@boomker
Copy link
Owner

boomker commented May 15, 2024

融合什么功能,我看这个文件包含了很多功能, 我的建议是拆出一部分功能到单独文件里比较好,维护起来比较容易。
看到几千行的代码,有种如临大敌的感觉。比如可以拆成这几块:时间日期; 农历; 节气。

@Hodwe
Copy link
Author

Hodwe commented May 15, 2024

我需要的是:
你的关于时间的lua中的最近时间的相关功能,例如今天、昨天的日期等等,想加进我自己的时间lua中,不行的话我就再弄一个新lua吧

@boomker
Copy link
Owner

boomker commented May 16, 2024

你还是弄一个新的吧,或者直接用我的呗,也不用折腾了。

@boomker boomker closed this as completed May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants