Closed johnoneil closed 7 years ago
Correct placment of dialog (via mudansure.com)
generated by arib-ts2ass and rendered via mpv
With initial correction. much better!
for this example, original text position data is:
<clear screen><CS:"620;480 V"><CS:"170;30 _"><CS:"1;0000 c"><Small Text>
<Screen Posiiton to 10,14>ついせき
<Screen Posiiton to 12,5><Normal Text>これより<Medium Text> <Normal Text>追跡に入る<Medium Text>。
<Screen Posiiton to 6,13><Small Text>りょうかい<Medium Text>
<Screen Posiiton to 7,5><Normal Text><Medium Text>(<Normal Text>隊員<Medium Text>)<Normal Text>了解!
![dragon ball super - 31 thk 1440x1080 mpeg2 aac - 00 06 49 922 -0001]
Analyzing the previous example. Proper X row for ついせき should be character 9 but it's listed as 14. Are we seeing the same wrapping in horizontal as in the vertical? Assuming the usual 36x36 characters and 4 pixel spacing between (not specified in the .ts stream for this file) and 620x480 text area (specified) the max # or characters horizontal will be 620/(40) or about 15 characters. That's 0 to 14 for columns and 0 to 7 for rows. Perhaps horizontal positions are specified with greater precision? So 14 maps to about column 9?
りょうかい should be at character 8 but is specified at character 13.
It's probably the small font. Positions for small text are probably specified differently. Maybe.
<clear screen><CS:"620;480 V"><CS:"170;30 _"><CS:"1;0000 c"><Medium Text>
<Screen Posiiton to 4,7><Small Text>たの<Medium Text>
<Screen Posiiton to 4,13><Small Text>つな<Medium Text>
<Screen Posiiton to 5,5><Normal Text><頼みの綱は<Medium Text> <Normal Text>この男>
たの should be at character 6 and it's at character 7 つな should be at character 9 and it's at 13
can only think we'll have to adjust horizontal position of small text
Looks like all our horizontal positions might be off by factor of 2.
col 5 --> col 2.5, furigana col 7 --> 3.5, the 2nd character. correct col 5 --> col 2.5, furigana col 13-->6.5 the 4th character, about correct
Better
vertical alignment still off.
<CS:"7 S"><CS:"170;30 _"><CS:"620;480 V"><CS:"36;36 W"><CS:"4 X"><CS:"24 Y"><Medium Text><white><CS:"410;299 a">(<Normal Text>笑い<Medium Text>)<Normal Text><cyan><CS:"350;359 a">♪〜<Medium Text><white>(<Normal Text>判定音<Medium Text>)
<CS:"7 S"><CS:"620;480 V"><CS:"170;30 _"><CS:"36;36 W"><CS:"4 X"><CS:"24 Y"><CS:"170;449 a"><cyan>もっと再生数を稼ぐ方法を<CS:"190;509 a">考えないと<Medium Text>。
<clear screen><CS:"620;480 V"><CS:"170;30 _"><CS:"1;0000 c"><Medium Text>
<Screen Posiiton to 7,9><Normal Text><yellow>オラ<Medium Text> <Normal Text>見たぞ!
<CS:"7 S"><CS:"620;480 V"><CS:"170;30 _"><CS:"4 X"><CS:"24 Y"><CS:"36;36 W"><CS:"8 n"><CS:"1;0000 c"><Small Text>
<Screen Posiiton to 13,6><Normal Text>今日<Medium Text> <Normal Text>話すのは<Small Text>
<Screen Posiiton to 15,6><Normal Text>楽しい話じゃない<Medium Text>。<Normal Text>➡>
"7 S" code above indicates "horizontal writing form in 960 x 540" which makes sense. I've never seen another format used yet but this bears at least better logging.
"8 n" above in Aijin file indicates "Raster Colour set" to "transparent" This doesn't make much sense and is probably ignored.
Closing this issue to reopen a new issue concerning just HORIZONTAL alignment.
I just eyeballed a "good enough" font size support for an initial cut but i'd like to layout the screen text exactly as it is described in the .ts. This should be possible.
Primary symptoms in how current defects are seen are things like-- furigana not being properly aligned above the kanji they are meant to describe.