BabelDOC icon indicating copy to clipboard operation
BabelDOC copied to clipboard

加粗字体不能识别格式,翻译后使用样式标签进行表示。

Open B-le-B opened this issue 8 months ago • 3 comments

Before you submit

  • [x] I have searched existing issues
  • [x] I spent at least 5 minutes investigating and preparing this report
  • [x] I confirmed this is not caused by a network issue
  • [x] I have fully read and understood the README
  • [x] I am certain that this issue is with BabelDOC itself and can be reproduced through the BabelDOC cli

Environment

- OS:windows11
- Python:3.12
- BabelDOC:0.3.30

Describe the bug

正文中,加粗字体不能识别格式,翻译后使用样式标签进行表示。

Image

Steps to Reproduce

No response

Expected Behavior

No response

Relevant Log Output or Screenshots


Original PDF File

4-EN.pdf

Additional Context

No response

B-le-B avatar Apr 30 '25 21:04 B-le-B

可以用更强的大模型重试,比如deepseek。这是你的大模型给我样式标签也翻译成中文了。

不过这块提示词确实要优化,后续做。

awwaawwa avatar May 01 '25 06:05 awwaawwa

可以用更强的大模型重试,比如deepseek。这是你的大模型给我样式标签也翻译成中文了。

不过这块提示词确实要优化,后续做。

谢谢。在PDFMathTranslate就没问题。

B-le-B avatar May 01 '25 12:05 B-le-B

翻译deepseek-r1的论文也遇到了类似的情况

  1. 开头的描述没了
  2. 多了一些html标签
  3. 公式的分号没了

Image

lastsummerx avatar May 08 '25 11:05 lastsummerx