kelciour / movies2anki

Convert movies with subtitles to watch them with Anki. Inspired by subs2srs
GNU Affero General Public License v3.0
302 stars 28 forks source link

add tags based on fields in .ass/.ssa subtitles #36

Open aleksejrs opened 3 months ago

aleksejrs commented 3 months ago

This is only a suggestion, because I've seen only a couple sources of .ass subtitles with any names specified, and I don't even know of a good way to replace/update the movies2anki cards I already have.

https://thedoctorteam.ru/project/mlp/season-1/friendship-is-magic-part-1/original https://media.thedoctor.team/videos/season1/1x01_EngSubtitles.ass

In this example, the Style column contains the name of the character to color the text a character-specific color. "Somepony" is not a specific character, but "Default" is a narrator in that context.

Tags like "subtitlecharacter::Twilight" or "SubtitleStyle::Twilight" could be used for https://github.com/Rct567/FrequencyMan to put them in different targets and learn some voices separately.


[V4+ Styles] Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding Style: Default,Arial,30,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,20,1 Style: Twilight,Arial,30,&H00FFFFFF,&H000000FF,&H009C1B9F,&H00000000,0,0,0,0,100,100,0,0,1,1,2,2,10,10,20,1 Style: Somepony,Arial,30,&H00FFFFFF,&H000000FF,&H007D7E80,&H00000000,0,0,0,0,100,100,0,0,1,1,2,2,10,10,20,1

[Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text

Dialogue: 0,0:00:08.08,0:00:11.57,Default,Default,0,0,0,,Once upon a time, in a magical land of Equestria...

Dialogue: 0,0:01:23.58,0:01:27.64,Default,Default,0,0,0,,The elder sister took on responsibility for both sun and moon.... Dialogue: 0,0:01:27.84,0:01:31.30,Twilight,Default,0,0,0,,...and harmony has been maintained in Equestria for generations since. Dialogue: 0,0:01:34.65,0:01:39.14,Twilight,Default,0,0,0,,Hm... Elements of Harmony. I know I've heard of those before. Dialogue: 0,0:01:39.94,0:01:41.06,Twilight,Default,0,0,0,,But where? Dialogue: 0,0:02:21.88,0:02:23.97,Somepony,Default,0,0,0,,There you are, Twilight! Dialogue: 0,0:02:23.97,0:02:27.47,Somepony,Default,0,0,0,,Moondancer is having a little get-together in the west castle courtyard. Dialogue: 0,0:02:27.66,0:02:28.78,Somepony,Default,0,0,0,,You wanna come? Dialogue: 0,0:02:28.89,0:02:33.16,Twilight,Default,0,0,0,,Oh, sorry girls. I gotta lot of studying to catch up on. Dialogue: 0,0:02:35.86,0:02:38.30,Somepony,Default,0,0,0,,Does that pony do anything except study? Dialogue: 0,0:02:39.32,0:02:42.07,Somepony,Default,0,0,0,,I think she's more interested in books than friends.