Skip to content

rubyReserve rendering issue between 1 and 2-line events #180

@jbaden

Description

@jbaden

Hello,

I've noticed an issue in imsc1 renderer where the baseline shifts between 1 and 2-line events when tts:rubyReserve is employed. In my example below, (excerpted from the attached XML), I have used annotation-position: "outside".

		<layout>
			<!-- General Horiztonal Positioning with ebutts:multiRowAlign -->
			<region ebutts:multiRowAlign="start" tts:displayAlign="after" tts:extent="80.000% 80.000%" tts:origin="10.000% 10.000%" tts:rubyReserve="outside" tts:textAlign="center" xml:id="bottom-left-justified"/>
			
            <!-- Descriptive Region -->
			<region tts:displayAlign="before" tts:extent="80.000% 80.000%" tts:origin="10.000% 10.000%" tts:textAlign="center" xml:id="top-center-justified"/>
		</layout>
	</head>
	<body>
		<div>
		    <p begin="100000000t" dur="40000000t" region="top-center-justified">RubyReserve Test</p>
		    <!-- 2-line event with rubyReserve invoked-->
			<p begin="100000000t" dur="20000000t" region="bottom-left-justified">Humpty Dumpty sat on a wall<br/>Humpty Dumpty had a great fall</p>
		    <!-- 1-line event with rubyReserve invoked-->
		    <p begin="120000000t" dur="20000000t" region="bottom-left-justified">All the king's horses...</p>	

rbyReserveTEST.zip

The rendering appears fine between 2-line events, as illustrated in these tests. It seems this issue is introduced between 1 and 2-line events:

Event1
Event2

Note the jump between 1 and 2-line events when rubyReserve:outside is being employed, which, per the specification, shouldn't occur:

"If the position component is outside, then, if the current block area contains exactly one line area, the both position applies, otherwise the semantics of the before position applies to the first line area of the current block area and the semantics of the after position apply to all other line areas of the current block area."

correct_rendering

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions