arib
arib copied to clipboard
Text sometimes extends offscreen
example: from aijin.es.txt
<clear screen>
<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 11,11>しょぶん<Medium Text><Small Text>
<Screen Posiiton to 13,5><Medium Text>(<Normal Text>戸崎<Medium Text>)<Normal Text>処分が決まってるなら<Small Text><Normal Text>さっさと言え<Medium Text>。
<Closed caption management data for language: jpn>
<
line in question (ending with さっさと言え) has 18 full size characters. But only about 15.5 can fit within the dimensions described in the .ts stream. Calculated as:
layout = 7 (horizontal text, left to right, for screen size 960x580)
inset teletext area at UL (170,30) size 620 pixes horizontal, 480 pixels vertical
full size character is sized 36x36 pixels
horizontal spacing between full size characters is 4 pixels
vertical spacing between lines is 24 pixels.
total number of full size lines possible: 480/(36+24) = 8
total number of full size characters on one line: 620/(36+4) = 15.5
So how can 18 full size characters fit on a line. Am I missing a newline? Should I wrap?
