muzuiget / dualsub-support

Dualsub - Dual Subtitles for YouTube
https://www.dualsub.xyz/
272 stars 23 forks source link

I can't double-click words in native mode, standard mode doesn't have the correct subtitle files #588

Closed zlylupaf closed 2 months ago

zlylupaf commented 4 months ago

If I use standard mode, the subtitle file doesn't exist.(If it did, I would be able to double-click to select it) If I use native mode, The file exists but, I can't double-click to select it The reason I need to double-click it: so I can translate it. this is the video: https://www.youtube.com/watch?v=u6ztdG1A7rg

muzuiget commented 4 months ago

Standard mode speech recognition subtitles (with + suffix), using Dualsub's server for recognition, based on OpenAI Whisper, currently only supports recognition of English.

Your video is in Russian, so it will be displayed as { no-speech } because no English sentences are recognized.

You can only use native mode for this kind of video, which uses subtitles provided by the YouTube server.

zlylupaf commented 4 months ago

Can you add support for double-clicking to select text in native mode? Also, this video seems to have subtitle files https://www.youtube.com/watch?v=2IUiJcKhO2s

zlylupaf commented 4 months ago

中文版:我想要双击选择字幕中的词,这样方便我翻译,在standard mode这很容易可以完成,但是在native mode实现不了这一点,有的视频standard mode有我想要的字幕(俄语+英文),比如这个 https://www.youtube.com/watch?v=2IUiJcKhO2s ,没问题。但是有的视频,比如这个,没有(只有自动生成,结尾带+的字幕): https://www.youtube.com/watch?v=u6ztdG1A7rg ,只有在native mode有我想要的字幕(俄语+英文)。 可不可以1.把native mode的字幕(俄语+英文)放到standard mode 或者2.支持native mode双击选择

muzuiget commented 4 months ago

What's "double-clicking", you mean "text selection"?

Screenshot_20240310_211725

zlylupaf commented 4 months ago

muzuiget commented 4 months ago

So all you need is to enable YouTube's native subtitles to select text, rather than the default behavior of dragging to move the position?

zlylupaf commented 4 months ago

sure

muzuiget commented 2 months ago

The default mouse behavior of YouTube's native subtitle renderer is to move the subtitle position.

Its HTML structure is not suitable for customization, and even implementing text selection is difficult.

Other extensions may already implement this function, and it is recommended to use other extensions.