# This sed script creates a *.lrc file, containing subtitles # in the second language only, # using a source file with two languages, formatted (with no blank lines): # mm:ss # original language # second language (translation of the original one) # A source text formatted # mm:ss # original language subtitle # is easy to copy from youtube, # provided the manually-written subtitles are there # - use the transcript icon, the 4th option below the video. # (by Jenik Hollan, CzechGlobe, May 2014) sed -r "{N; N; s/\n[^\n]+\n/.00] /; s/^/[/}" en_cz.txt >cz.lrc