Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe workflow for converting a series of lines like "2:34 foo bar" to subtitles? #40

Open
edrx opened this issue Jun 4, 2021 · 1 comment

Comments

@edrx
Copy link

edrx commented Jun 4, 2021

Hi subed people,

this is similar to Issue 15, but different enough to deserve a new thread...

So, question: I am learning subed now. I have subtitles for parts of some videos in an improvised format - in which each line is just a timestamp followed by text, like this: "14:01 So I took a look at the man page for xpdf" - and I would like to use subed to convert that to the SRT format. I can try to write a Lua script to do that conversion for me, but is there a more subed-ish way to do that? Here is a VERY rough idea to start with: we would use a keyboard macro that supposes that we are in a two-window setting with .srt at the left and the improvised subtitles at the right; each time that we run the keyboard macro it would run `subed-insert-subtitle' in the .srt window, copy one line from the right window to the left window, and it would somehow use my timestamp - the "14:01" in the sample line above - to set up the start and the stop time of the subtitle...

My problem is with the step "and it would somehow use my timestamp" above, of course. Besides that I was mind-blown by how easy it was to set up subed here... really, really, really good job, Random User, Sacha, and others! =)

Btw, here is an example of these improvised subtitles: http://angg.twu.net/emacsconf2019.html

@rndusr
Copy link
Collaborator

rndusr commented Jun 4, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants