Skip to content

Apparent double nesting of rubies impacting ruby/bouten spacing and baseline shifts (when rubyReserve is used) #184

@jbaden

Description

@jbaden

Hello,

There appears to be a bug in IMSC.js resulting in double/nested rubies when rubyReserve is used. This issue is illustrated in the attached test file rubyReserve005_NFLX_Sample.xml.zip

In order to render correctly, ruby events appear to require non-space characters at the beginning of a line both before and outside of the ruby container. That is to say, a ruby event cannot begin with tts:ruby="container" else this double/nested ruby rendering issue will occur.

without non-space character

            <p begin="850000000t" dur="10000000t" region="bottom-left-justified">
                <span style="ruby-outside-container"><span style="ruby-base">太孫</span><span style="ruby-text">たいそん</span></span>のペクチョンを連れ<br/>
                <span style="ruby-outside-container"><span style="ruby-base">北漢</span><span style="ruby-text">プッカン</span></span>山に登り</p>       


without_non_space_Character

with non-space character

            <p begin="870000000t" dur="10000000t" region="bottom-left-justified">
                太<span style="ruby-outside-container"><span style="ruby-base">太孫</span><span style="ruby-text">たいそん</span></span>のペクチョンを連れ<br/>
                太<span style="ruby-outside-container"><span style="ruby-base">北漢</span><span style="ruby-text">プッカン</span></span>山に登り</p> 

with_non_space_character

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions