Menu

#1064 Use XLIFF equiv-text attribute in tooltips

3.1
closed-fixed
None
5
2015-03-11
2015-02-17
No

Inline tags in XLIFF can contain an equiv-text attribute that indicates what the XLIFF tag represents in the original file.

OmegaT exposes the source file markup in tooltips on protected parts; currently for XLIFF it will show the entire XLIFF tag element, but since XLIFF is (usually) merely an intermediate format, it would be better to use the content of equiv-text when available.

Example:

Source text:
Foo %s bar

Extracted XLIFF:
<source xml:lang="baz">Foo <x equiv-text="%s" id="1"/> bar</source>

Source shown in OmegaT editor:
Foo <x0/> bar

Tooltip content before equiv-text support:
<x equiv-text="%s" id="1"/>

Tooltip content after:
%s

Discussion

  • Aaron Madlon-Kay

    This is implemented in trunk, r6915.

    I also simplified the existing protected parts-related preferences:

    • Remove paired tags from protected parts tooltip: This and equiv-text extraction are enabled by the new preference "Simplify tooltips on protected parts".
    • Display text in protected parts tooltip in bold: Text sandwiched between tags is now always made bold when the surrounding tags are present (no bolding occurs when tags are removed).
     
  • Didier Briel

    Didier Briel - 2015-03-11
    • status: open-fixed --> closed-fixed
     
  • Didier Briel

    Didier Briel - 2015-03-11

    Closed in the released version 3.1.9 of OmegaT.

    Didier

     

Log in to post a comment.

MongoDB Logo MongoDB