forked from bayramyoldas/Magnum-s-Aegisub-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
t_calc(v11).ass
78 lines (75 loc) · 9.97 KB
/
t_calc(v11).ass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[Script Info]
; Script generated by Aegisub 3.2.0
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None
PlayResX: 1280
PlayResY: 720
[Aegisub Project Garbage]
Last Style Storage: Default
Video File: ?dummy:23.976000:40000:1280:720:255:0:203:
Video AR Value: 1.777778
Video Zoom Percent: 0.375000
Scroll Position: 36
Active Line: 4
Video Position: 1151
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: df3-furigana,Arial,25,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,0,5,10,10,10,1
Style: df2-furigana,Arial,25,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,0,5,10,10,10,1
Style: df1-furigana,Arial,25,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,0,5,10,10,10,1
Style: df1,Arial,50,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,5,10,10,10,1
Style: df2,Arial,50,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,5,10,10,10,1
Style: df3,Arial,50,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,5,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Comment: 0,0:00:44.89,0:01:16.63,df1,,0,0,0,,t_calc("modu[start2syl,syl2end,syl]",frame'i[2850],geçişi[1],etiketleri[\\bord2\\1c&HFFFFFF&])
Comment: 0,0:00:44.89,0:01:16.63,df1,,0,0,0,code line,local fr_convert; l_start = line.start_time; function t_calc(mode,framev,interval,tags) local collect = 0; for i=0, #line.kara do collect = collect + line.kara[i].duration if(_G.aegisub.ms_from_frame(framev) - l_start <= collect) then break end end local sresult = collect - (_G.aegisub.ms_from_frame(framev) - l_start) if(interval <= 0 ) then interval = 1 end; if(_G.aegisub.ms_from_frame(framev) - l_start <= syl.start_time and mode == "start2syl") then fr_convert = (l_start - line.start_time) + (_G.aegisub.ms_from_frame(framev) - l_start); elseif(mode == "syl2end" and _G.aegisub.ms_from_frame(framev) - line.start_time >= 0) then fr_convert = _G.aegisub.ms_from_frame(framev) - line.start_time; elseif(mode == "syl2end" and _G.aegisub.ms_from_frame(framev) - line.start_time < 0) then fr_convert = 0 interval = 1; elseif(_G.aegisub.ms_from_frame(framev) - l_start <= syl.start_time and mode == "syl") then fr_convert = 0 elseif(collect == syl.end_time and mode == "syl") then fr_convert = line.duration - sresult else return "" end; return string.format("\\t(%s,%s,%s)",fr_convert,fr_convert+interval,tags) end;
Comment: 0,0:00:44.89,0:01:16.63,df1,,0,0,0,template syl noblank,!retime("start2syl",-2000+syl.i*70,0)!{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos($scenter,$smiddle)}{!t_calc("start2syl",1110,100,"\\c&H000000&\\3c&HFFFFFF\\blur10\\bord3")!}{!t_calc("start2syl",1150,1,"\\c&H000000&\\3c&HFFFFFF\\blur1\\bord3")!}
Comment: 0,0:00:44.89,0:01:16.63,df2,,0,0,0,template syl noblank,!retime("syl2end",0,0)!{\an5\pos($scenter,$smiddle)\c&H0000F7&}{!t_calc("syl2end",1110,100,"\\c&H000000&\\3c&HFFFFFF\\blur10\\bord3")!}{!t_calc("syl2end",1150,1,"\\c&H000000&\\3c&HFFFFFF\\blur1\\bord3")!}
Comment: 0,0:00:44.89,0:01:16.63,df3,,0,0,0,template syl noblank,!retime("syl",0,0)!{\fscy150\an5\pos($scenter,$smiddle)\c&H0BFF00&}{!t_calc("syl",1110,1,"\\bord10")!}{!t_calc("syl",1150,1,"\\bord1")!}
Comment: 0,0:00:44.89,0:00:51.50,df1,,0,0,0,karaoke,{\k39}Gen{\kf34}ka{\kf10}i {\kf25}na{\kf39}n{\kf85}te {\kf42}ko{\kf32}e{\kf73}te {\kf62}ku {\kf47}yo {\kf30}{\kf43}ki{\kf100}tto
Comment: 0,0:00:44.89,0:00:51.50,df2,,0,0,0,karaoke,{\k39}Gen{\kf34}ka{\kf10}i {\kf25}na{\kf39}n{\kf85}te {\kf42}ko{\kf32}e{\kf73}te {\kf62}ku {\kf47}yo {\kf30}{\kf43}ki{\kf100}tto
Comment: 0,0:00:44.89,0:00:51.50,df3,,0,0,0,karaoke,{\k39}Gen{\kf34}ka{\kf10}i {\kf25}na{\kf39}n{\kf85}te {\kf42}ko{\kf32}e{\kf73}te {\kf62}ku {\kf47}yo {\kf30}{\kf43}ki{\kf100}tto
Dialogue: 0,0:00:42.96,0:00:44.89,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(381,360)}{}{}Gen
Dialogue: 0,0:00:43.03,0:00:45.28,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(447,360)}{}{}ka
Dialogue: 0,0:00:43.10,0:00:45.62,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(476,360)}{}{}i
Dialogue: 0,0:00:43.17,0:00:45.72,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(518,360)}{}{}na
Dialogue: 0,0:00:43.24,0:00:45.97,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(555,360)}{}{}n
Dialogue: 0,0:00:43.31,0:00:46.36,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(587,360)}{\t(2966,3066,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{}te
Dialogue: 0,0:00:43.38,0:00:47.21,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(641,360)}{\t(2896,2996,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{}ko
Dialogue: 0,0:00:43.45,0:00:47.63,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(677,360)}{\t(2826,2926,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{}e
Dialogue: 0,0:00:43.52,0:00:47.95,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(708,360)}{\t(2756,2856,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(4424,4425,\c&H000000&\3c&HFFFFFF\blur1\bord3)}te
Dialogue: 0,0:00:43.59,0:00:48.68,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(763,360)}{\t(2686,2786,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(4354,4355,\c&H000000&\3c&HFFFFFF\blur1\bord3)}ku
Dialogue: 0,0:00:43.66,0:00:49.30,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(823,360)}{\t(2616,2716,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(4284,4285,\c&H000000&\3c&HFFFFFF\blur1\bord3)}yo
Dialogue: 0,0:00:43.80,0:00:50.07,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(875,360)}{\t(2476,2576,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(4144,4145,\c&H000000&\3c&HFFFFFF\blur1\bord3)}ki
Dialogue: 0,0:00:43.87,0:00:50.50,df1,,0,0,0,fx,{\fad(300,0)\frz90\frz25\t(0,500,\frz0\frsc100)\c&H0000F7&\an5\pos(916,360)}{\t(2406,2506,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(4074,4075,\c&H000000&\3c&HFFFFFF\blur1\bord3)}tto
Dialogue: 0,0:00:45.28,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(381,360)\c&H0000F7&}{\t(996,1096,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(2664,2665,\c&H000000&\3c&HFFFFFF\blur1\bord3)}Gen
Dialogue: 0,0:00:45.62,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(447,360)\c&H0000F7&}{\t(656,756,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(2324,2325,\c&H000000&\3c&HFFFFFF\blur1\bord3)}ka
Dialogue: 0,0:00:45.72,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(476,360)\c&H0000F7&}{\t(556,656,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(2224,2225,\c&H000000&\3c&HFFFFFF\blur1\bord3)}i
Dialogue: 0,0:00:45.97,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(518,360)\c&H0000F7&}{\t(306,406,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(1974,1975,\c&H000000&\3c&HFFFFFF\blur1\bord3)}na
Dialogue: 0,0:00:46.36,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(555,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(1584,1585,\c&H000000&\3c&HFFFFFF\blur1\bord3)}n
Dialogue: 0,0:00:47.21,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(587,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(734,735,\c&H000000&\3c&HFFFFFF\blur1\bord3)}te
Dialogue: 0,0:00:47.63,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(641,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(314,315,\c&H000000&\3c&HFFFFFF\blur1\bord3)}ko
Dialogue: 0,0:00:47.95,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(677,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur1\bord3)}e
Dialogue: 0,0:00:48.68,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(708,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur1\bord3)}te
Dialogue: 0,0:00:49.30,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(763,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur1\bord3)}ku
Dialogue: 0,0:00:49.77,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(823,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur1\bord3)}yo
Dialogue: 0,0:00:50.50,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(875,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur1\bord3)}ki
Dialogue: 0,0:00:51.50,0:00:51.50,df2,,0,0,0,fx,{\an5\pos(916,360)\c&H0000F7&}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur10\bord3)}{\t(0,1,\c&H000000&\3c&HFFFFFF\blur1\bord3)}tto
Dialogue: 0,0:00:44.89,0:00:45.28,df3,,0,0,0,fx,{\fscy150\an5\pos(381,360)\c&H0BFF00&}{}{}Gen
Dialogue: 0,0:00:45.28,0:00:45.62,df3,,0,0,0,fx,{\fscy150\an5\pos(447,360)\c&H0BFF00&}{}{}ka
Dialogue: 0,0:00:45.62,0:00:45.72,df3,,0,0,0,fx,{\fscy150\an5\pos(476,360)\c&H0BFF00&}{}{}i
Dialogue: 0,0:00:45.72,0:00:45.97,df3,,0,0,0,fx,{\fscy150\an5\pos(518,360)\c&H0BFF00&}{}{}na
Dialogue: 0,0:00:45.97,0:00:46.36,df3,,0,0,0,fx,{\fscy150\an5\pos(555,360)\c&H0BFF00&}{\t(306,307,\bord10)}{}n
Dialogue: 0,0:00:46.36,0:00:47.21,df3,,0,0,0,fx,{\fscy150\an5\pos(587,360)\c&H0BFF00&}{\t(0,1,\bord10)}{}te
Dialogue: 0,0:00:47.21,0:00:47.63,df3,,0,0,0,fx,{\fscy150\an5\pos(641,360)\c&H0BFF00&}{\t(0,1,\bord10)}{}ko
Dialogue: 0,0:00:47.63,0:00:47.95,df3,,0,0,0,fx,{\fscy150\an5\pos(677,360)\c&H0BFF00&}{\t(0,1,\bord10)}{\t(314,315,\bord1)}e
Dialogue: 0,0:00:47.95,0:00:48.68,df3,,0,0,0,fx,{\fscy150\an5\pos(708,360)\c&H0BFF00&}{\t(0,1,\bord10)}{\t(0,1,\bord1)}te
Dialogue: 0,0:00:48.68,0:00:49.30,df3,,0,0,0,fx,{\fscy150\an5\pos(763,360)\c&H0BFF00&}{\t(0,1,\bord10)}{\t(0,1,\bord1)}ku
Dialogue: 0,0:00:49.30,0:00:49.77,df3,,0,0,0,fx,{\fscy150\an5\pos(823,360)\c&H0BFF00&}{\t(0,1,\bord10)}{\t(0,1,\bord1)}yo
Dialogue: 0,0:00:50.07,0:00:50.50,df3,,0,0,0,fx,{\fscy150\an5\pos(875,360)\c&H0BFF00&}{\t(0,1,\bord10)}{\t(0,1,\bord1)}ki
Dialogue: 0,0:00:50.50,0:00:51.50,df3,,0,0,0,fx,{\fscy150\an5\pos(916,360)\c&H0BFF00&}{\t(0,1,\bord10)}{\t(0,1,\bord1)}tto