Skip to content

[FEATURE] 翻译 YouTube 字幕时保留原有高级字幕样式 #1894

Description

@qaq1919810

Before you begin

  • I have searched existing issues to avoid duplicates
  • I am willing to contribute a PR for this feature

Is your feature request related to a problem? Please describe.

部分 YouTube 视频使用了高级字幕,包含特殊位置、颜色、换行、动画或逐字显示等效果。
目前开启 Read Frog 视频字幕后,YouTube 原生字幕会被隐藏,并由插件使用统一样式重新显示。即使字幕不需要翻译,或者只是进入同语言跳过模式,原有的高级字幕效果仍会丢失。

Describe the solution you'd like

想请问翻译字幕时,是否可以尽量继承或模仿 YouTube 原字幕的样式?

建议按字幕类型处理:

  • 高级字幕:翻译后尽量保留原有的位置、颜色、换行和动画等样式;
  • 普通无样式字幕:继续使用 Read Frog 中设置的字幕样式;
  • 字幕语言与目标语言相同、无需翻译时:直接保留 YouTube 原生字幕,不再由 Read Frog 重新渲染。

如果自动判断和保留原样式比较困难,也可以增加一个选项:

翻译后的字幕样式:

  • 使用 Read Frog 字幕样式;
  • 尽量继承 YouTube 原字幕样式;
  • 自动选择:高级字幕保留原样式,普通字幕使用 Read Frog 样式。

Which area(s) would this feature affect? (Select all that apply)

Browser Extension

Additional context

Image Image 视频链接 https://youtu.be/X8z23t428kU

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions