Hi David, yes, I will be submitting something either about our OM, or about the consumption of it to support XLIFF 2.0 in our localization tools and processes.
From: Dr. David Filip [mailto:
David.Filip@ul.ie]
Sent: Tuesday, January 27, 2015 11:03 AM
To: Ryan King
Cc: Yves Savourel;
xliff@lists.oasis-open.org Subject: Re: [xliff] SubFlows and inline codes
Ryan, seeing your interesting questions on the mailing list.
I must ask Are you planning to submit a talk for 6th Symposium in Berlin on your Object model?
http://locworld.com/call-papers-feisgiltt-2015/ https://www.easychair.org/conferences/?conf=feisgiltt2015 That would be a great contribution!
Cheers
dF
Dr. David Filip
=======================
OASIS XLIFF TC Secretary, Editor, and Liaison Officer
LRC CNGL CSIS
University of Limerick, Ireland
telephone: +353-6120-2781
cellphone: +353-86-0222-158
facsimile: +353-6120-2734
http://www.cngl.ie/profile/?i=452 mailto:
david.filip@ul.ie On Tue, Jan 27, 2015 at 6:00 PM, Ryan King <
ryanki@microsoft.com > wrote:
Hi, Yves, I'm curious about something. Our OM has a method that will take some text and if it finds an original code, it automatically encodes it for you using the appropriate inline tag and <originalData>. We also can decode the string
so that it can be stored in our TM without XLIFF native tags. However, this round-tripping causes us to lose any attributes on the inline tags, such as canCopy or canRemove for example. The only solution to roundtrip the data seems to be to store this data
as part of the TM or treat the XLIFF as a sort-of skeleton for the TM data. I'm wondering if you have this problem and if you have any solutions for it.
Thanks,
Ryan
Original Message-----
From: Ryan King
Sent: Monday, January 26, 2015 3:06 PM
To: 'Yves Savourel';
xliff@lists.oasis-open.org
Subject: RE: [xliff] SubFlows and inline codes
Thanks for the reply Yves. Your solution below is exactly the one we were thinking of using. Good to know there is no prescribed way (or convention) to do this that we'll violate.
Thanks,
Ryan
Original Message-----
From: Yves Savourel [mailto: ysavourel@enlaso.com ]
Sent: Monday, January 26, 2015 3:02 PM
To: Ryan King; xliff@lists.oasis-open.org
Subject: RE: [xliff] SubFlows and inline codes
Hi Ryan,
Here is my take:
1) Yes and no. Yes, the <img> element is stored as original data, but an XLIFF file does not necessarily has to provide original data element: They can be stored outside of the file or even simply re-generated when merging (based on the original file). There
are quite a few other examples without <data>.
In this case, I agree it may help to have the <originalData> present for people to understand better.
2) If I recall correctly, there is no prescribed order for the sub-flow units. And there is no prescribed mechanism to match a sub-flow unit with its corresponding part in the <data>. That is tool-specific. Some may use the text, some may replace the text by
some markers, etc.
Personally I would replace the extract sub-flow text in the <img> by some marker with the ID of the unit where the text has been extracted. Something like:
<data id="1"><img title="[#@$=1]" src= alt="[#@$=2]"/><data>
But that is completely arbitrary.
I hope this helps,
-yves
From: xliff@lists.oasis-open.org [mailto: xliff@lists.oasis-open.org ] On Behalf Of Ryan King
Sent: Monday, January 26, 2015 3:03 PM
To: ' xliff@lists.oasis-open.org '
Subject: [xliff] SubFlows and inline codes
Hi TC folks,
We've been working on an XLIFF 2.0 object model and came across some questions about subFlows and inline codes. It seems to me that the example for subFlows in the 2.0 spec is incomplete, specifically this example in section 4.7.4 Sub-Flow:
Click to start: <img title="Start button"
src= alt="Click here to start!"/>
<unit id="1">
<segment>
<source>Start button</source>
</segment>
</unit>
<unit id="2">
<segment>
<source>Click here to start!</source>
</segment>
</unit>
<unit id="3">
<segment>
<source>Click to start: <ph id="1" subFlows="1 2"/></source> </segment> </unit>
Where is <img> meant to be encoded in this example? It seems the more complete example should be:
<unit id="1">
<segment>
<source>Start button</source>
</segment>
</unit>
<unit id="2">
<segment>
<source>Click here to start!</source>
</segment>
</unit>
<unit id="3">
<originalData>
<data id="1"><img title="Start button" src= alt="Click here to start!"/><data> </originalData> <segment>
<source>Click to start: <ph id="1" dataRef="1"/><ph id="2" subFlows="1 2"/></source> </segment> </unit>
Can TC folks verify that this is the correct implementation?
Additionally, we have some questions around merge. I assume that there is implicit ordering based in the order of the @subFlow values and the unit id. Meaning, I know u=u1 should come before u=u2. However, how do I know that u=u1 refers to @title and u=u2 refers
to @alt, and not @title and @src, or @src and @alt, when there is no id/ref mechanism for the original data attributes?
Thanks,
Ryan
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail. Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php