[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [xliff] Simplified XLIFF element tree
Hi Yves, Thank you for your comment and suggestion. I would like on reflection to suggest the following solution: For pre-segmented XLIFF systems: <group id='e1' extype='para'> <trans-unit id='u1'> <source>This is the first sentence.</source> <target>Pierwsze zdanie.</target> </trans-unit> <trans-unit id='u2'> <source>This is the second sentence.</source> <target>Drugie zdanie.</target> </trans-unit> </group> For unsegmented XLIFF systems a solution might be: <group id='e1' extype='para'> <extr-text id='e1'> This is the first sentence. This is the second sentence. </ext-text> </group> The segmenting XLIFF editor would then generate the following: <group id='e1' extype='para'> <extr-text id='e1'> This is the first sentence. This is the second sentence. </extr-text> <trans-unit id='u1'> <source>This is the first sentence.</source> <target>Pierwsze zdanie.</target> </trans-unit> <trans-unit id='u2'> <source>This is the second sentence.</source> <target>Drugie zdanie.</target> </trans-unit> </group> The benefit of using 'group' in this way is that we are not inventing new elements and is totally backwards compatible with XLIFF 1.2. The last thing we want to do is to introduce any fundamental change to the XLIFF structure. For non-segmenting systems we have the new optional <extr-text> element. This should solve both problems. Best Regards, AZ On 24/08/2010 23:27, Yves Savourel wrote: > Hi Asgeir, all, > > A last note before closing the laptop for a full week off: > > >> after translation: >> <trans-unit> >> <source> >> <seg id='seg1'>This is the first sentence.</seg> >> <seg id='seg2'>This is the second sentence.</seg> >> </source> >> <target> >> <seg id='seg1'>Første setning.</seg> >> <seg id='seg2'>Andre setning.</seg> >> </target> >> </trans-unit> > I find that approach would be simple and easy to work with. > > One possible slight change could be to always have at least one<seg>. Maybe it would be more clear to express this using different names to avoid associating our knowledge of the current<trans-unit>, etc. to those elements. For example: > > Un-segmented: > <unit> > <source> > <part id='seg1'>First sentence. Second sentence.</part> > </source> > </unit> > > Segmented and translated (same as Asgeir): > <unit> > <source segmented='yes'> > <part id='seg1'>First sentence.</part> > <part id='seg2'>Second sentence.</part> > </source> > <source> > <target segmented='yes'> > <part id='seg1'>Første setning.</part> > <part id='seg2'>Andre setning.</part> > </target> > </unit> > > >> However, there probably need to be some ability to manage >> state and workflow on the segment level, but that could >> in a similar way live under the<trans-unit> element >> and reference the segment ids. > And, for attributes, by simply moving the relevant ones to the<part>. > > It would be easy to map xml:tm to this:<tm:te> to<unit> and<tm:tu> to<part>. > > It would also allow Rodolfo to always have its XLIFF pre-segmented, and any tool could easily access the un-segmented content when needed: the sum of all<part> elements (and possibly the content in between if we would decide to allow content in-between). > > And we would have no duplication of content. > > > Cheers, > -yves > > > > --------------------------------------------------------------------- > 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 > -- email - azydron@xtm-intl.com smail - c/o Mr. A.Zydron PO Box 2167 Gerrards Cross Bucks SL9 8XF United Kingdom Mobile +(44) 7966 477 181 FAX +(44) 1753 480 465 www - http://www.xtm-intl.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you may not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Unless explicitly stated otherwise this message is provided for informational purposes only and should not be construed as a solicitation or offer.
begin:vcard fn;quoted-printable:Andrzej Zydro=C5=84 n;quoted-printable:Zydro=C5=84;Andrzej email;internet:azydron@xml-intl.com tel;work:+441494558106 tel;home:+441494532343 tel;cell:+447966477181 x-mozilla-html:FALSE version:2.1 end:vcard
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]