oasis-tcs / xliff-xliff-22

OASIS XLIFF TC: A repository designed for use in development of TC chartered work products and test suites
https://github.com/oasis-tcs/xliff-xliff-22
Other
10 stars 1 forks source link

[Core Proposal] Refine constraint for <sc> and <ec> #15

Closed yumaoka closed 2 years ago

yumaoka commented 2 years ago

Authors

Yoshito Umaoka

Area of Changes

Detailed Description

In XLIFF 2.1 specification 4.2.3.4 sc, there is a constraint statement below:


The attribute isolated MUST be set to yes if and only if the element corresponding to this start marker is not in the same , and set to no otherwise.


This constraint makes perfect sense for <source> part . However, in translation process, not all <target> values might not be ready at a point.

<unit id="1">
  <segment id="seg1" state="translated">
    <source><sc id="1" type="fmt" subType="xlf:b"/>
        First sentence. </source>
    <target><sc id="1" type="fmt" subtype="xlf:b"/>
        最初の文。</target>
  </segment>
  <segment id="seg2">
    <source>Second sentence.<ec startRef="1" type="fmt"
        subType="xlf:b"/></source>
  </segment>
</unit>

The example above is invalid with the current XLIFF specification because <sc id="1" ...> in seg1 is not isolated="yes" although it does not have the corresponding <ec> element in seg2. The specification should be updated to clarify the constraint:

Example Use Case

N/A

Compatibility Impacts

This specification update should have very small or no impacts to existing XLIFF applications.

rmraya commented 2 years ago

Processing requirements for <sc> have been adjusted in the specification

yumaoka commented 2 years ago

Description updated by 6b0037e17649e0bef98ef6446c4dfd7ea0cc35fb clarified the constraint.