emk/subtitles-rs

Option to include an extra line of dialog before or after

Closed this issue · 4 comments

The automatic splitting seems pretty decent, but sometimes it chops a sentence awkwardly. It would be nice if I could ask substudy to include one line of dialog before or after the "target" line for context.

Ideally, as separate "columns" in the csv output, so I can style them differently in Anki. :)

emk commented

Thank you for the suggestion!

I'm always reluctant to add flags and options. If you can convincingly argue that the current default behavior is wrong, we can definitely change the defaults! :-) But adding a flag is a bigger deal than changing a default as far as I'm concerned.

(Also, if your subtitles are very messy, I do encourage the use of a tool like Subtitle Edit or the Mac equivalent to clean them up. substudy is not really a great tool for that job. And it's anticipated that a certain small percentage of cards may be useless.)

My subs in this case aren't messy, I just want a little context on my cards. :)

I hear you on the drawbacks of "just add an option!" for every little thing. It definitely is a balance.

If I were to argue for always including the context lines, I'd say that they can be easily ignored when importing the csv, but they can't be easily recreated if they don't already exist.

Wait a minute... I somehow imported the csv into Anki thinking that there weren't context lines... but they totally already exist! 😊

emk commented

Ah, OK! I figured that one context line on either side and (IIRC) 1.5 seconds of audio on either side worked out well across a wide range of cards, but that I didn't want to add any more.