Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text sometimes extends offscreen #46

Open
johnoneil opened this issue May 13, 2017 · 1 comment
Open

Text sometimes extends offscreen #46

johnoneil opened this issue May 13, 2017 · 1 comment
Labels

Comments

@johnoneil
Copy link
Owner

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>
<
@johnoneil
Copy link
Owner Author

johnoneil commented May 13, 2017

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?
aijin- 00 04 36 613 -0001

@johnoneil johnoneil added the bug label May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant