W3C home > Mailing lists > Public > public-i18n-its-ig@w3.org > November 2014

RE: ACTION-54: Try to come up with example of xliff+its test format / output

From: Yves Savourel <ysavourel@enlaso.com>
Date: Thu, 6 Nov 2014 13:34:24 -0700
To: "'Felix Sasaki'" <fsasaki@w3.org>
CC: "'public-i18n-its-ig'" <public-i18n-its-ig@w3.org>
Message-ID: <008d01cffa01$0d790520$286b0f60$@enlaso.com>
Hi Felix,

Can you specify a bit more how the offset would be computed?
It seems the zero is the start of the element (e.g. <source>) content.
But how would we count the inline element?

<source>Text<sm id='1' translate='no'/>data</source>

"Text" = 0,4
"data = 31,35

The problem is that we don't always know how long the inline tag is in the document (you can have extra spaces between attributes,
some attributes with default values may be omitted, etc.)

Or should we count each inline tag as 1 character?

Which would give:

"Text" = 0,4
"data = 5,9


Thanks,
-yves
Received on Thursday, 6 November 2014 20:34:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:11:31 UTC