Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In some cases instead of counting pixel-length it is important to count the number of used characters in a segment or a line. translate5 supports this also.

Support of

...

minWidth and maxWidth

With translate5 you can set a min-width minWidth and/or a max-width maxWidth for a segment.

Support for line-count and line-length

...

  • size-unit
    • If character-length or pixel-length based length check
    • Possible values:
      • pixel
      • char
  • minWidthminLength
    • Minimum length in number of pixel / characters
    • Refers to the length of a complete trans-unit of an xliff file, even if it spans multiple segments.
    • This means for min-length set in a task template for let's say a word document, that the length restriction refers to a whole paragraph.
    • If maxNumberOfLines is set, minLength minWidth is not supported so far (ask translate5's development team, if you need it)
  • maxWidthmaxLength
    • Maximum length in number of pixel / characters
    • Refers to the length of a complete trans-unit of an xliff file, even if it spans multiple segments.
    • This means for maxLength maxWidth set in a task template for let's say a word document, that the length restriction refers to a whole paragraph.
    • If maxNumberOfLines is set, maxLength maxWidth refers to the length of each line, otherwise maxLength maxWidth refers to the trans-unit.
      • With maxNumberOfLines set, trans-units must not span multiple segments!
  • translate5:maxNumberOfLines
    • How many lines a segment (not a trans-unit) should maximally have
    • If maxNumberOfLines is set,
      • maxLength maxWidth refers to the length of each line, otherwise maxLength maxWidth refers to the trans-unit
      • minLength minWidth is not supported so far (ask translate5's development team, if you need it)
      • Trans-units must not span multiple segments!
        If you need maxNumberOfLines to span multiple segments, contact translate5s development team

  • For pixel-based length check:
    • For each character for a certain font and a certain font-size the pixel-width
    • Font-size and used font of current task
      • Definitions in task-template.xml
      • Would be possible to overwrite them in xliff 1.2, yet this is not yet implemented (ask translate5s development team, if you need it)

...