01: Label code lines

This commit is contained in:
FichteFoll 2018-07-30 17:54:44 +02:00
parent 80b3500922
commit 6e791f9d65

View File

@ -33,8 +33,8 @@ Comment: 0,0:02:06.56,0:02:08.56,Characters,,0,0,0,LOTS OF NAMES,
Comment: 0,0:00:00.00,0:00:00.00,Characters,char counter var,0,0,0,code line all,ci = 0; cin = _G.unicode.len((line.text_stripped:gsub("%s",""))); clen = 0; sci = 0; scin = 0; lastsyl = nil;
Comment: 0,0:00:00.00,0:00:00.00,Characters,ci_inc(),0,0,0,code once all,function ci_inc() ci = ci + clen; if (lastsyl ~= basesyl) then sci = 0; scin = _G.unicode.len((basesyl.text_stripped:gsub("%s",""))); lastsyl = basesyl; end; if (sci == scin) then sci = 0; ci = ci - scin; end; clen = _G.unicode.len((syl.text_stripped:gsub("%s",""))); sci = sci + clen; return ""; end;
Comment: 0,0:00:00.00,0:00:00.00,Characters,_temp,0,0,0,code line all,_temp = {}; function _temp.set(field, val) _temp[field] = val; return val; end;
Comment: 0,0:00:00.00,0:00:00.00,Characters,_temp,0,0,0,code syl all,function findpos () for x, y in line.text:gmatch("\\pos%(([%d.]+),([%d.]+)%)") do return x, y; end; return 0, 0; end;
Comment: 0,0:00:00.00,0:00:00.00,Characters,_temp,0,0,0,code syl all,line_left, line_y = findpos(); line_left = line_left - line.width + syl.center;
Comment: 0,0:00:00.00,0:00:00.00,Characters,findpos(),0,0,0,code syl all,function findpos () for x, y in line.text:gmatch("\\pos%(([%d.]+),([%d.]+)%)") do return x, y; end; return 0, 0; end;
Comment: 0,0:00:00.00,0:00:00.00,Characters,positioning,0,0,0,code syl all,line_left, line_y = findpos(); line_left = line_left - line.width + syl.center;
Comment: 0,0:02:25.75,0:02:30.33,Characters,,0,0,0,template char all,!ci_inc()!{\an5\pos(!line_left + syl.center!,!line_y!)}{\alpha&HFF&\blur5\frx!math.random(-45,45)!\fry!math.random(-45,45)!\frz!math.random(-45,45)!}{\t(!_temp.set('start', ci * (550 / #line.text_stripped) + math.random(-50,50))!,!_temp.start + 150!,1.2,\alpha&H00&\blur1\frx0\fry0\frz0)}{!line.actor ~= "" and ([[\t(%d,%d,\alpha&HFF&\blur5)]]):format(line.duration - _G.tonumber(line.actor), line.duration) or ""!}
Comment: 0,0:02:25.75,0:02:30.33,Characters,,0,0,0,karaoke,{\an5\fnGentium Basic\alpha&HFF&\blur5\t(0,700,1.5,\alpha&H00&\blur0.6)}{\pos(960,804)}Schüler Nummer 1
Comment: 0,0:02:25.75,0:02:30.33,Characters_Name,,0,0,0,karaoke,{\an5\fnGentium Basic\alpha&HFF&\blur5\t(0,700,1.5,\alpha&H00&\blur0.6)}{\pos(960,884)}Aijou Karen