Page tree

Versions Compared

Key

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

...

Default settings must be provided in the config. Details see below.

Settings for Length Restrictions

General settings are  set in the task-template. These can be overwritten by each trans-unit.

  • If maxNumberOfLines is set, maxLength refers to the length of each line, otherwise maxLength refers to the trans-unit (which might span multiple segments).
  • maxNumberOfLines must refer to the lines in a single segment only! Trans-units must not span multiple segments then!

Settings for pixel-mapping

The mapping of characters and their pixel-lengths is given in pixel-mapping.xlsx.

Default values are set in the config.

Example for pixel-mapping.xlsx:

View file
namepixel-mapping.xlsx
height250
.


Trans-Unit

Example:

    <trans-unit id="4" translate5:maxNumberOfLines="2" minwidth="100" maxwidth="300" size-unit="pixel">
    
<source>Example for maximal 2 lines, minwidth 100, maxWidth 300.</source>
    
<target></target>
    
</trans-unit>

...

Task Template

see Task Templates


Default Config

Config nameValuesDefaultDescription

runtimeOptions.lengthRestriction.pixelMapping

map{"8":"7", "9":"8", "10":"9", "11":"10", "12":"11", "13":"12", "14":"13", "15":"14", "16":"15", "17":"16", "18":"17", "19":"18", "20":"19"}Default pixel-widths for font-sizes, example: {"12":"3", "13":"4", "14":"5"}

...