Skip to content

优化百度文档翻译后的格式 #6473

Description

@LeoB0y

📝 问题描述

使用百度翻译时会出现格式丢失,只保留基础的换行格式。html格式以及文档注释标签格式皆失效

🏷 插件版本

3.9.1

🔁 翻译引擎

百度翻译

💻 IDE及运行环境

IntelliJ IDEA 2025.3.6
Build #IU-253.33813.25, built on June 2, 2026
Source revision: 2443a389b35be
Runtime version: 21.0.11+1-b1163.116 amd64 (JCEF 137.0.17)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
  debugger.watches.in.variables=false
  ide.experimental.ui=true
  maven.packagesearch.enabled=false
Kotlin: 253.33813.25-IJ

📋 堆栈跟踪


Activity

  1. YiiGuxing commented on Aug 27, 2026

    @YiiGuxing
    Owner

    百度翻译不支持文档翻译

  2. changed the title [-]格式错误[/-] [+]优化百度文档翻译后的格式[/+] on Aug 28, 2026
  3. YiiGuxing commented on Aug 28, 2026

    @YiiGuxing
    Owner

    TranslationPlugin-3.9.2-SNAPSHOT.260828

    优化了一下,保留了基础的格式。由于百度翻译不支持HTML文档翻译,像语言符号链接这些元素和样式就没办法保留了:

    Image

    其他支持HTML文档翻译的效果:

    Image

    也算不错的了。

  4. added this to the v3.9.2 milestone on Aug 28, 2026
  5. LeoB0y commented on Aug 31, 2026

    @LeoB0y
    Author

    可以的,至少比之前格式错乱好很多。现在微软翻译修复后就可以不使用百度翻译了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions