Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
-- This file: -- http://anggtwu.net/SUBTITLES/2021-workshop-5.lua.html -- http://anggtwu.net/SUBTITLES/2021-workshop-5.lua -- (find-angg "SUBTITLES/2021-workshop-5.lua") -- Author: Eduardo Ochs <eduardoochs@gmail.com> -- -- (defun st () (interactive) (find-angg "SUBTITLES/2021-workshop-5.lua")) -- Skel: (find-editeevsubtitles-links-1 "2021workshop5") -- (find-efunction 'find-editeevsubtitles-links-1) -- Yttr: (find-yttranscript-links "2021workshop5" "VzRsterVSXs") -- Info: (find-1stclassvideo-links "2021workshop5") -- Play: (find-2021workshop5video "0:00") -- -- I use the code below to generate the subtitles in .vtt. -- ee_dofile "~/LUA/Subtitles.lua" -- (find-angg "LUA/Subtitles.lua") --[[ -- (find-angg "LUA/Subtitles.lua") ** Run the .lua and tell it to ** write the .vtt - by default in /tmp/ * * (eepitch-lua51) * (eepitch-kill) * (eepitch-lua51) dofile "2021-workshop-5.lua" sts = Subtitles.fromsexps(subs_bigstr):addtime("8:50") -- sts.lang = "pt-BR" = sts outfname = "$S/http/anggtwu.net/eev-videos/2021-workshop-5.vtt" outfname = "/tmp/2021-workshop-5.vtt" out = sts:vtt().."\n\n" ee_writefile(outfname, out) -- (find-fline "/tmp/2021-workshop-5.vtt") ** Test the .vtt ** (find-2021workshop5video "0:00") ** (find-2021workshop5video "2:23") ** Select /tmp/ or ee-eevvideosdir ** (find-eevvideosfile "") ** (find-eevvideosfile "" "2021-workshop-5.mp4") ** (find-eevvideossh0 "cp -v 2021-workshop-5.mp4 /tmp/") ** (code-video "2021workshop5video" "/tmp/2021-workshop-5.mp4") ** (code-video "2021workshop5video" "$S/http/anggtwu.net/eev-videos/2021-workshop-5.mp4") ** (find-2021workshop5video "0:00") ** Upload the 2021-workshop-5.vtt ** to http://anggtwu.net/eev-videos/ * (eepitch-shell) * (eepitch-kill) * (eepitch-shell) cd /tmp/ Scp-np 2021-workshop-5.vtt $TWUP/eev-videos/ Scp-np 2021-workshop-5.vtt $TWUS/eev-videos/ ** Upload the subtitles to youtube ** http://www.youtube.com/watch?v=VzRsterVSXs ** Check that the "psne subtitles" thing works ** (find-1stclassvideo-links "2021workshop5") --]] subs_bigstr = [==[ 1. Introduction See: (find-saving-links-intro "2. Copy from left to right") % (find-2021workshop5video "00:00" "Hi! My name is Eduardo Ochs, and this is") % (find-2021workshop5video "00:02" "another very short video that I'm") % (find-2021workshop5video "00:04" "recording for the workshop that is going") % (find-2021workshop5video "00:06" "to happen in a few hours.") % (find-2021workshop5video "00:08" "The title of this video is") % (find-2021workshop5video "00:10" "\"Copy from left to right\",") % (find-2021workshop5video "00:11" "and this is the title of this section") % (find-2021workshop5video "00:14" "here from the exercises. Note that we are") % (find-2021workshop5video "00:17" "in the \"intro\" with the exercises,") % (find-2021workshop5video "00:20" "(find-eev-exercises-intro) is the intro") % (find-2021workshop5video "00:22" "with the exercises that we're going") % (find-2021workshop5video "00:24" "to use in the workshop...") % (find-2021workshop5video "00:27" "and this video is very basic. I'm") % (find-2021workshop5video "00:29" "probably going to ask people to start by") % (find-2021workshop5video "00:31" "this video.") % (find-2021workshop5video "00:33" "In this video I'm going to explain a") % (find-2021workshop5video "00:36" "series of abbreviations and how to") % (find-2021workshop5video "00:37" "interpret these diagrams.") 2. Names of buffers % (find-2021workshop5video "00:40" "These abbreviations between square") % (find-2021workshop5video "00:42" "brackets are names of buffers in a very") % (find-2021workshop5video "00:46" "abbreviated form...") % (find-2021workshop5video "00:47" "[EX] means exercises, and here we have an") % (find-2021workshop5video "00:51" "explanation of what this means... it's:") % (find-2021workshop5video "00:53" "[EX] is the target of this hyperlink") % (find-2021workshop5video "00:56" "here...") % (find-2021workshop5video "01:00" "[J] is (find-eejumps), which is the target") % (find-2021workshop5video "01:04" "this hyperlink here, or the target of") % (find-2021workshop5video "01:06" "typing `M-j"...") % (find-2021workshop5video "01:11" "[N] is \"notes\"... it's the target of") % (find-2021workshop5video "01:13" "running this or running `M-1 M-j',") % (find-2021workshop5video "01:17" "is our buffer with notes,") % (find-2021workshop5video "01:22" "and [EK], that only appears here in the") % (find-2021workshop5video "01:25" "second diagram, is the target of this") % (find-2021workshop5video "01:27" "link here: it's the fake intro that is") % (find-2021workshop5video "01:30" "not a real intro, it's just an index of") % (find-2021workshop5video "01:33" "the basic keys of eev and Emacs.") 3. Frames % (find-2021workshop5video "01:38" "These boxes here...") % (find-2021workshop5video "01:40" "Note that this box here is a single") % (find-2021workshop5video "01:42" "box and this one is divided in two...") % (find-2021workshop5video "01:45" "these boxes represent Emacs frames...") % (find-2021workshop5video "01:48" "and this one means that the frame") % (find-2021workshop5video "01:51" "only has one window, this one too...") % (find-2021workshop5video "01:55" "this one also means a single window, and") % (find-2021workshop5video "01:58" "this one means that the frame is divided") % (find-2021workshop5video "02:01" "in two windows, with one at the left") % (find-2021workshop5video "02:04" "and one at the right...") % (find-2021workshop5video "02:06" "and here the one at the left displays") % (find-2021workshop5video "02:08" "the jumps buffer and the one at the") % (find-2021workshop5video "02:11" "right displays the notes buffer.") 4. Notation for copy and paste % (find-2021workshop5video "02:16" "These arrows here mean that we go from") % (find-2021workshop5video "02:19" "this window configuration to this one by") % (find-2021workshop5video "02:21" "typing these keys...") % (find-2021workshop5video "02:24" "and this dotted double arrow here, ::>,") % (find-2021workshop5video "02:28" "means copy and paste...") % (find-2021workshop5video "02:30" "no, sorry, it means that something") % (find-2021workshop5video "02:32" "is being transported from the left side") % (find-2021workshop5video "02:35" "to the right side...") 5. M-21j % (find-2021workshop5video "02:39" "and this `M-21j' is a shorthand") % (find-2021workshop5video "02:41" "for this thing here, `M-2 M-1 M-j'...") % (find-2021workshop5video "02:47" "and the idea behind the shorthand is") % (find-2021workshop5video "02:49" "that we hold the meta key,") % (find-2021workshop5video "02:51" "then we type 2, 1, j, and then we lift") % (find-2021workshop5video "02:54" "the meta key...") 6. M-K* % (find-2021workshop5video "02:57" "and this `*' here means") % (find-2021workshop5video "03:01" "\"as many as we need to\"...") % (find-2021workshop5video "03:02" "so this `M-K*' here means \"type `M-K'") % (find-2021workshop5video "03:04" "as many times as we need to\"...") % (find-2021workshop5video "03:07" "and \"needs to\" in this case means") % (find-2021workshop5video "03:08" "\"...to go to this window configuration") % (find-2021workshop5video "03:14" "which the exercise buffer is shown\".") Part 7 % (find-2021workshop5video "03:18" "So, let's copy this thing to our notes") % (find-2021workshop5video "03:21" "to make things a bit easier...") % (find-2021workshop5video "03:24" "here they are, and...") % (find-2021workshop5video "03:30" "now we are going to try to follow these") % (find-2021workshop5video "03:31" "instructions.") % (find-2021workshop5video "03:33" "Treat this thing as a score sheet -") % (find-2021workshop5video "03:36" "in the beginning we take hours to read") % (find-2021workshop5video "03:38" "the score sheet because we have to count") % (find-2021workshop5video "03:39" "the lines to discover which position") % (find-2021workshop5video "03:43" "is which note, and") % (find-2021workshop5video "03:45" "we have to think a lot to") % (find-2021workshop5video "03:48" "remember the duration of the notes,") % (find-2021workshop5video "03:50" "and such things...") % (find-2021workshop5video "03:51" "so... the main intent of this exercise") % (find-2021workshop5video "03:54" "is to make people familiar") % (find-2021workshop5video "03:56" "with these notations, and to make") % (find-2021workshop5video "03:58" "them spend, say, 5 or 10 minutes") % (find-2021workshop5video "04:02" "deciphering the instructions here.") % (find-2021workshop5video "04:06" "These are two different exercises, we") % (find-2021workshop5video "04:09" "are going to do the first one first, and") % (find-2021workshop5video "04:11" "the second one second...") Exercise 1 % (find-2021workshop5video "04:13" "and the first one says that we start") % (find-2021workshop5video "04:15" "here in the buffer with exercises, then") % (find-2021workshop5video "04:18" "we type `M-j' and we go to the buffer") % (find-2021workshop5video "04:20" "with the jumps...") % (find-2021workshop5video "04:23" "and then we type this thing here, and") % (find-2021workshop5video "04:25" "when we type this we're going to see the") % (find-2021workshop5video "04:27" "notes at the right...") % (find-2021workshop5video "04:29" "and we've just cheated and copied these") % (find-2021workshop5video "04:31" "things to the notes, so then we're going") % (find-2021workshop5video "04:33" "to be able to follow the instructions") % (find-2021workshop5video "04:34" "that we have just copied to our notes.") % (find-2021workshop5video "04:39" "And then... then we'll discuss this later.") % (find-2021workshop5video "04:44" "Some things are omitted here - I'm going") % (find-2021workshop5video "04:47" "to show which ones...") % (find-2021workshop5video "04:50" "Let me use a smaller font here and let") % (find-2021workshop5video "04:53" "me show what i want people to do in this") % (find-2021workshop5video "04:55" "exercise.") % (find-2021workshop5video "04:57" "We are starting here, we are in the") % (find-2021workshop5video "04:58" "buffer with exercises...") % (find-2021workshop5video "05:00" "and then we type `M-j' to go to this") % (find-2021workshop5video "05:03" "situation and `M-21j' to go to this") % (find-2021workshop5video "05:06" "situation here. So: `M-j', and `M-21j'...") % (find-2021workshop5video "05:08" "now we have our notes at the") % (find-2021workshop5video "05:12" "right - we are in this window") % (find-2021workshop5video "05:14" "configuration, with the notes at the") % (find-2021workshop5video "05:16" "right... and then these instructions here") % (find-2021workshop5video "05:18" "mean that we have to type `M-w',") % (find-2021workshop5video "05:23" "which is \"copy to the kill ring\", and") % (find-2021workshop5video "05:26" "then `C-y', which is yank, or copy from") % (find-2021workshop5video "05:29" "the kill ring...") % (find-2021workshop5video "05:32" "the diagram doesn't say, but what I want") % (find-2021workshop5video "05:35" "to copy from the") % (find-2021workshop5video "05:37" "left window to the right window is all") % (find-2021workshop5video "05:40" "this header here...") % (find-2021workshop5video "05:42" "so let me type `M-w' here...") % (find-2021workshop5video "05:46" "now I'm going to go to the window at the") % (find-2021workshop5video "05:48" "right and type `C-y' here.") % (find-2021workshop5video "05:52" "So, that's it: I've copied all this") % (find-2021workshop5video "05:54" "material to this buffer -") % (find-2021workshop5video "05:57" "to this file with notes...") % (find-2021workshop5video "05:59" "and then I have to type `C-x 1',") % (find-2021workshop5video "06:03" "and `C-x 1' will put me back in a") % (find-2021workshop5video "06:06" "setting with a single window...") % (find-2021workshop5video "06:09" "and then as many `M-K's as we need") % (find-2021workshop5video "06:12" "to go to this situation, in which") % (find-2021workshop5video "06:14" "we only see the buffer with exercises.") % (find-2021workshop5video "06:19" "So, let's see how many we need...") % (find-2021workshop5video "06:21" "one, two... ha! Just two.") Exercise 2 % (find-2021workshop5video "06:25" "Ok, so we are in this situation and now") % (find-2021workshop5video "06:28" "I'm going to to to explain what I expect") % (find-2021workshop5video "06:31" "people to do in the second exercise.") % (find-2021workshop5video "06:35" "The second is very similar,") % (find-2021workshop5video "06:37" "but instead of going to the jumps buffer") % (find-2021workshop5video "06:42" " we will type `M-2 M-j', to go to") % (find-2021workshop5video "06:46" "somewhere else...") % (find-2021workshop5video "06:47" "remember that when we type just `M-j'") % (find-2021workshop5video "06:51" "we see some instructions here - some") % (find-2021workshop5video "06:53" "hints here of some things that are very") % (find-2021workshop5video "06:55" "important...") % (find-2021workshop5video "06:56" "and one of them is this one, that says") % (find-2021workshop5video "06:59" "that `M-2 M-j'") % (find-2021workshop5video "07:01" "goes to this fake tutorial here...") % (find-2021workshop5video "07:05" "this one - the list of the basic keys.") % (find-2021workshop5video "07:08" "So, we are in this first situation,") % (find-2021workshop5video "07:11" "with the buffer of exercises in the") % (find-2021workshop5video "07:14" "only window...") % (find-2021workshop5video "07:16" "we are going to type `M-2j' and") % (find-2021workshop5video "07:19" "then `M-21j'. Let me do that...") % (find-2021workshop5video "07:28" "so now we have here the buffer with") % (find-2021workshop5video "07:31" "Emacs keys - the intro with the") % (find-2021workshop5video "07:32" "Emacs keys, the [EK] here...") % (find-2021workshop5video "07:35" "and then... uh, sorry -") % (find-2021workshop5video "07:38" "we are in this situation, with") % (find-2021workshop5video "07:41" "the buffer with the Emacs keys") % (find-2021workshop5video "07:44" "at the left and the notes at the right,") % (find-2021workshop5video "07:45" "and this notation here indicates that") % (find-2021workshop5video "07:50" "something has to be...") % (find-2021workshop5video "07:52" "something has to go from the left side") % (find-2021workshop5video "07:54" "to the to the right side, and this is by") % (find-2021workshop5video "07:58" "copying and pasting...") % (find-2021workshop5video "08:01" "and what I want people to do in this") % (find-2021workshop5video "08:04" "exercise is: I want them to copy") % (find-2021workshop5video "08:07" "all this block here, from") % (find-2021workshop5video "08:10" "\"The beginner's way\" to these") % (find-2021workshop5video "08:13" "blank lines here...") % (find-2021workshop5video "08:15" "and then copy that to the notes.") % (find-2021workshop5video "08:20" "and that's it. Now the rest of the") % (find-2021workshop5video "08:22" "instructions say that we need to") % (find-2021workshop5video "08:25" "type `C-x 1' to") % (find-2021workshop5video "08:30" "go back to a situation with just one") % (find-2021workshop5video "08:32" "window,") % (find-2021workshop5video "08:34" "and then `M-K' as many times as we") % (find-2021workshop5video "08:37" "need to go back to the buffer with") % (find-2021workshop5video "08:39" "exercises...") % (find-2021workshop5video "08:40" "one time, two times... ha.") % (find-2021workshop5video "08:42" "We're at the exercises now.") % (find-2021workshop5video "08:45" "So, that's it.") % (find-2021workshop5video "08:47" "Ok, end of this video.") ]==] unrevised_bigstr = [==[ (find-2021workshop5video "00:00" " ") ]==] -- Local Variables: -- coding: utf-8-unix -- End: