FooSoft / yomichan

Japanese pop-up dictionary extension for Chrome and Firefox.
https://foosoft.net/projects/yomichan
Other
1.07k stars 226 forks source link

Remove Timestamp from Subtitles #2026

Closed AsuraAce closed 2 years ago

AsuraAce commented 2 years ago

would be nice if you could add the option to remove timestamps from subtitles. I've read that Yomichan does that automatically but it doesn't work with asbplayer.

I use Yomichan for sentence mining and have the problem that Yomichan always adds the timestamp at the end, even though it is not visible in the video itself.

image

would be nice if we could use the "Text Replacement Patterns" on strings before they are copied to Anki as well.

toasted-nutbread commented 2 years ago

You can use the regexReplace template helper in your Anki field templates. https://github.com/FooSoft/yomichan/blob/master/docs/templates.md#regexreplace

You could also try enabling Layout-aware scanning on the settings page (enable Advanced) to see if that fixes the issue.

AsuraAce commented 2 years ago

Thank you, regexReplace is pretty much what I was looking for, this will help with other things I don't want in my subs as well.

(already had Layout-Aware Scanning enabled, it helps to some degree.)