imscJS icon indicating copy to clipboard operation
imscJS copied to clipboard

Children text nodes of ruby container spans must be pruned after style resolution

Open palemieux opened this issue 5 years ago • 4 comments

https://github.com/sandflow/imscJS/blob/8d458897b38a8d6d2d5b6802637437c4ecb5f436/src/main/js/doc.js#L182

https://github.com/sandflow/imscJS/blob/8d458897b38a8d6d2d5b6802637437c4ecb5f436/src/main/js/doc.js#L633

The computed value of tts:ruby cannot be determined until after style resolution, which happens during ISD creation.

palemieux avatar Aug 14 '19 03:08 palemieux

See https://github.com/w3c/ttml2/issues/1140

palemieux avatar Aug 14 '19 17:08 palemieux

Hi,

is this ticket about the same problem that I just discovered? See example ttml file, current IMSCJ1_1 render png, and proposed correct render png. ruby_problem.zip

Let me know if I should open a new ticket. Thanks, Adam

cfadamp avatar Jul 16 '20 09:07 cfadamp

@cfadamp I am not sure the rendering labeled wrong is incorrect: as far as I know, ruby text that is wider than the base does not typically overhang preceding/following Kanji -- see 3.2(4) at https://www.w3.org/TR/2020/WD-simple-ruby-20200609/

palemieux avatar Jul 16 '20 12:07 palemieux

@palemieux thank you, I will check this out. Please ignore my comment, as it turned out it is not related to this issue.

cfadamp avatar Jul 16 '20 13:07 cfadamp