Closed johnoneil closed 7 years ago
Okay. This is not documented but it's becoming clear to me that font characters interpret horizontal position data differently than other font sizes.
In the above example the characters at row: 5 col: 2 (からはし ごうたろう) probably needs to have its horizontal position doubled to line up with the text it's annotating (唐橋剛太郎 at row 13 (5.5), col 4). This probably means its horizontal position is doubled from col: 2 to col 4.
This makes some sense as Arib smaller font characters should be half the width and height of large size characters. See the image below
Some really bad examples of this turn up in Dragon Ball Z .ts files. See the example below.
File elapsed time seconds: 211.0304
<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 10,5>そん ごくう
<Screen Posiiton to 10,14>かつやく
<Screen Posiiton to 12,5><Normal Text>孫<Medium Text> <Normal Text>悟空の活躍によって
<Screen Posiiton to 6,3><Small Text>みごと<Medium Text>
<Screen Posiiton to 6,11><Small Text>う<Medium Text>
<Screen Posiiton to 6,15><Small Text>くだ<Medium Text>
<Screen Posiiton to 7,5><Normal Text>見事に打ち砕かれ➡
Getting better. Still some issues but the crux is that:
That's the basics. There appears to be some subtlety, but this is working well overall.
Okay original issue fixed. Still some oddness due to the alignment of fonts but I'm satisfied for now.