XLIFF Inline Markup SC

 View Only
  • 1.  Inline codes properties

    Posted 04-11-2011 15:04
    Hi all, To get the discussion going on the topic of addition/deletion of inline codes. Here are a few thoughts: === Indicators: - we need a way to indicate if a code can be duplicated - we need a way to indicate if a code can be deleted - do we need a flag indicating if a code can be moved out of order? === Additional codes: - we need a way to represent a new code (i.e. created after the initial extraction) - we need a way to represent a duplicated code (i.e. created from a cloneable existing code). A first option for the indicators: -- An attribute (e.g. 'perm') with a numeric value that is the ORed result of individual values. - can be duplicated = 0x1 - can be deleted = 0x2 - can be duplicated and deleted = (0x1 0x2) = 0x3 For example: <code id='1' perm="3"/> -- Another option would be to use a set of letters indicating the permissions: - can be duplicated (cloned) = "c" - can be deleted = "d" - can be duplicated and deleted = "cd" or "dc" It is slightly easier to implement. For example: <code id='1' perm="cd"/> Or use a list of values: perm="delete;clone" In all cases, the default would be that an inline element can be cloned and deleted. Like in 1.2. The attribute would be available for all elements that represent code for native data, regardless of the notation. Note that in 1.2 the clone attribute can go only on <g> and <x>, not <bpt>, etc. Any thoughts? === Representation of added codes: --- new code created after extraction. Those are codes provided by a tool during, for example, edit. For instance to bold a word not bolded in the source language, etc. They are no correspondence in original document and not in the skeleton. - what id should they have? (assuming is a required attribute) - should providing the native data mandatory? Or can just providing the type (e.g. bold) and let the tool add the code if it can is also something we want to provide? --- Duplicated code. They should point to the same native data as the code it has been duplicated from. - what id should they have? (assuming is a required attribute) - should they just have the same id as the original code? And we assume the tool merge the same native code. -ys


  • 2.  RE: [xliff-inline] Inline codes properties

    Posted 04-12-2011 11:24
    Hi Yves, all,

    Thanks for getting the discussion going. Please find some comments/thoughts below.

    Cheers,
    Christian




  • 3.  RE: [xliff-inline] Inline codes properties

    Posted 04-12-2011 13:54
    >> - should providing the native data mandatory? Or can just >> providing the type (e.g. bold) and let the tool add the >> code if it can is also something we want to provide? > > CL> Not sure that I understand the question/example. Should we allow <g ctype='bold'> as a new code? A code which does not have an actual native data associated with (because it's new), but just the information about what it represents. Or should new codes always provide the native data? -> <bpt ctype='bold'>&lt;b></bpt> -ys


  • 4.  RE: [xliff-inline] Inline codes properties

    Posted 04-28-2011 11:16
    Hi Yves,

    Thanks for the explanation.

    I am tempted to say

    New codes should always provide native data

    Rationale

    If only a substitute is used (e.g. 'bold' in <g ctype='bold'>),
    additional processing (e.g. derivation of native format such
    as HTML with CSS) may not work too well.

    Cheers,
    Christian




  • 5.  RE: [xliff-inline] Inline codes properties

    Posted 04-28-2011 18:01
    Hi Yves and Christian,

    I must admit my temptation goes the other way. I'd rather not overload the XLIFF with non-XLIFF, non-translation data. My bias is that the transformation tool should bear the burden of managing the format, not the localization interchange file.

    Thanks,

    Bryan