forked from emrerdem1/Magnum-s-Aegisub-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vertical_kanji.ass
42 lines (39 loc) · 4.53 KB
/
vertical_kanji.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
[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title: New subtitles
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 1280
PlayResY: 720
ScaledBorderAndShadow: yes
[Aegisub Project Garbage]
Last Style Storage: Default
Video File: ?dummy:23.976000:400000:1280:720:189:189:189:
Video AR Value: 1.777778
Video Zoom Percent: 0.375000
Active Line: 4
Video Position: 206
[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: kanji_right,Arial,40,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,1,0,6,10,10,10,1
Style: kanji_left,Arial,40,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,-1,0,0,0,100,100,0,0,1,1,0,4,10,10,10,1
Style: Default,Arial,20,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,2,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Comment: 0,0:00:00.00,0:00:00.00,kanji_right,by Magnum357,0,0,0,code line,cci = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; ccn = _G.unicode.len(orgline.text_stripped:gsub(" ","")) function cc(ref) cci[ref] = cci[ref] + 1; return "" end function vertical(id, space, x_mode, x,y) if x_mode == true then x = meta.res_x - x end cc(id) return string.format("%d,%d", x, (y+(-math.floor(ccn/2)*(line.height-space)+(cci[id]*(line.height-space))))-line.height) end
Comment: 0,0:00:00.00,0:00:00.00,kanji_right,,0,0,0,template syl char noblank,!retime("start2syl",-750+syl.i*50,0)!{\bord1.5\shad0\blur0\fad(300,0)\an5\pos(!vertical(1,5,true,100,$y)!)}
Comment: 0,0:00:00.00,0:00:00.00,kanji_right,,0,0,0,template syl char noblank,!retime("syl2end",0,syl.i*30)!{\bord2\shad0\blur1\fad(0,300)\an5\pos(!vertical(2,5,true,100,$y)!)\c&H00&\3c&HFFFFFF&}
Comment: 0,0:00:00.00,0:00:00.00,kanji_right,,0,0,0,template syl char noblank,!retime("syl",0,0)!{\bord2\shad0\blur1\an5\move(!vertical(3,5,true,(syl.i % 2 == 1) and 100+15 or 100-15,$y)!,!vertical(4,5,true,100,$y)!)\t(\c&H00&\3c&HFFFFFF&)}
Dialogue: 0,0:00:08.58,0:00:11.45,kanji_right,,0,0,0,,{\k38}記{\k19}憶{\k39}だ{\k15}っ{\k25}て{\k34}永{\k27}遠{\k15}に{\k13}な{\k25}ん{\k37}て
Dialogue: 0,0:00:11.86,0:00:14.55,kanji_right,,0,0,0,,{\k37}残{\k14}ら{\k11}な{\k10}い{\k17}も{\k28}の{\k18}と{\k20}お{\k16}も{\k18}い{\k44}知{\k16}っ{\k20}て
Dialogue: 0,0:00:14.77,0:00:17.65,kanji_right,,0,0,0,,{\k32}僕{\k22}は{\k43}ず{\k30}っ{\k30}と{\k21}掻{\k16}き{\k15}む{\k41}し{\k18}っ{\k20}て
Dialogue: 0,0:00:17.87,0:00:21.59,kanji_right,,0,0,0,,{\k57}心{\k13}の{\k64}隅{\k8}っ{\k10}こ{\k19}で{\k14}泣{\k23}い{\k21}た {\k30}そ{\k12}し{\k19}て{\k18}ど{\k17}う{\k47}か
Comment: 0,0:00:00.00,0:00:00.00,kanji_left,by Magnum357,0,0,0,code line,cci = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; ccn = _G.unicode.len(orgline.text_stripped:gsub(" ","")) function cc(ref) cci[ref] = cci[ref] + 1; return "" end function vertical(id, space, x_mode, x,y) if x_mode == true then x = meta.res_x - x end cc(id) return string.format("%d,%d", x, (y+(-math.floor(ccn/2)*(line.height-space)+(cci[id]*(line.height-space))))-line.height) end
Comment: 0,0:00:00.00,0:00:00.00,kanji_left,,0,0,0,template syl char noblank,!retime("start2syl",-750+syl.i*50,0)!{\bord1.5\shad0\blur0\fad(300,0)\an5\pos(!vertical(8,5,false,100,$y)!)}
Comment: 0,0:00:00.00,0:00:00.00,kanji_left,,0,0,0,template syl char noblank,!retime("syl2end",0,syl.i*30)!{\bord2\shad0\blur1\fad(0,300)\an5\pos(!vertical(9,5,false,100,$y)!)\c&H00&\3c&HFFFFFF&}
Comment: 0,0:00:00.00,0:00:00.00,kanji_left,,0,0,0,template syl char noblank,!retime("syl",0,0)!{\bord2\shad0\blur1\an5\move(!vertical(10,5,false,(syl.i % 2 == 1) and 100+15 or 100-15,$y)!,!vertical(11,5,false,100,$y)!)\t(\c&H00&\3c&HFFFFFF&)}
Dialogue: 0,0:00:08.58,0:00:11.45,kanji_left,,0,0,0,,{\k38}記{\k19}憶{\k39}だ{\k15}っ{\k25}て{\k34}永{\k27}遠{\k15}に{\k13}な{\k25}ん{\k37}て
Dialogue: 0,0:00:11.86,0:00:14.55,kanji_left,,0,0,0,,{\k37}残{\k14}ら{\k11}な{\k10}い{\k17}も{\k28}の{\k18}と{\k20}お{\k16}も{\k18}い{\k44}知{\k16}っ{\k20}て
Dialogue: 0,0:00:14.77,0:00:17.65,kanji_left,,0,0,0,,{\k32}僕{\k22}は{\k43}ず{\k30}っ{\k30}と{\k21}掻{\k16}き{\k15}む{\k41}し{\k18}っ{\k20}て
Dialogue: 0,0:00:17.87,0:00:21.59,kanji_left,,0,0,0,,{\k57}心{\k13}の{\k64}隅{\k8}っ{\k10}こ{\k19}で{\k14}泣{\k23}い{\k21}た {\k30}そ{\k12}し{\k19}て{\k18}ど{\k17}う{\k47}か