[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Implementation Option: <group> of <trans-unit>
Hi all, This email kicks off the thread to discusses the pros and
cons of representing segmentation in XLIFF through <group> of
<trans-unit>, as originally suggested by Tony. The idea is to use a special type of <group> to
indicate where boundaries between <trans-unit> elements can be considered
“soft” boundaries (i.e. they can be changed without affecting the
ability to convert the file back to its original format) – in fact
representing boundaries that are guaranteed to have no skeleton content between
the <trans-unit>s. Example: <trans-unit id=”1”> <source xml:lang=”en”>First sentence. Second
sentence.</source> </trans-unit> Could be re-formatted as: <group reformat=”trans-unit” id=”1”> <trans-unit id=”1.1”> <source xml:lang=”en”>First
sentence.</source> </trans-unit> <trans-unit id=”1.2”> <source xml:lang=”en”>Second
sentence.</source> </trans-unit> </group> Which after translation could look like: <group reformat=”trans-unit” id=”1”> <trans-unit id=”1.1”> <source xml:lang=”en”>First
sentence.</source> <target xml:lang=”sv”>Första
meningen.</target> </trans-unit> <trans-unit id=”1.2”> <source xml:lang=”en”>Second
sentence.</source> <target xml:lang=”sv”>Andra
meningen.</target> </trans-unit> </group> Here is what I see as pro’s and con’s with this
implementation: Pros:
Cons:
<trans-unit-group id=”1”> <trans-unit id=”1.1”> <source xml:lang=”en”>First
sentence.</source> <target xml:lang=”sv”>Första
meningen.</target> </trans-unit> <trans-unit id=”1.2”> <source xml:lang=”en”>Second
sentence.</source> <target xml:lang=”sv”>Andra
meningen.</target> </trans-unit> </trans-unit-group> But as it turns out that the <trans-unit-group> will
need all the functionality of the original <trans-unit>, would it not
rather make sense to keep the <trans-unit> as it is today, and instead
introduce a new element below it to represent the new functionality we want to
introduce? The structure of the example below is exactly the same as the
structure above, but we let the original <trans-unit> work as it does
today (it will not need to be replaced by some type of group): <trans-unit id=”1”> <segment> <source xml:lang=”en”>First
sentence.</source> <target xml:lang=”sv”>Första
meningen.</target> </segment> <segment> <source xml:lang=”en”>Second
sentence.</source> <target xml:lang=”sv”>Andra
meningen.</target> </segment> </trans-unit>
Cheers, Magnus |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]