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

[Feature] 翻译窗口如何显示公式 #1076

Open
1 task done
leeeezx opened this issue Feb 1, 2025 · 2 comments
Open
1 task done

[Feature] 翻译窗口如何显示公式 #1076

leeeezx opened this issue Feb 1, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@leeeezx
Copy link

leeeezx commented Feb 1, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Environment

  • OS: Windows11 23H2
  • Zotero Version: 7.0.11 (64-bit)
  • Plugin Version: 2.1.2
    使用情况:使用Chatgpt接口配置了qwen2.5max模型进行翻译

Describe the feature request

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
前提:能够输出正确的latex格式。
我尝试在插件prompt中,命令ai将latex公式用$$包裹,再输出,但是无效。我得到的一个输出结果:$F_p(z)$。
Why do you need this feature?
A clear and concise description of why you need this feature.

Describe the solution you'd like

The solution you'd like
A clear and concise description of what you want to happen.
正确显示公式。当前显示公式的结果并不是很标准。基于ai能够识别为latex格式,能够针对这种情况改进显示方式
Alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Anything else?

No response

@leeeezx leeeezx added the enhancement New feature or request label Feb 1, 2025
@heriec
Copy link

heriec commented Feb 10, 2025

在框选文字时候,实际上框选的文字公式就不是latex格式的,能够显示还是由于大模型推理出来的,我用过好几个大模型翻译,有些是不会识别出公式带$,有的偶尔能够识别出来,但也是占小部分,大部分时间还是直接是字符而不是带$。
以上是我对使用场景的个人体验,我也觉得能够预览比较好,但是基于框选文字就不是latex,所以翻译出的结果是latex格式的情况不够稳定吧。
在回到实现这个问题上,能够展示正确的latex格式就是类似于markdown的渲染,那么需要添加功能按钮公式渲染,需要渲染才对翻译部分渲染为markdown格式,这样子实现不知道行不行

@leeeezx
Copy link
Author

leeeezx commented Feb 10, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants