Line length in multi-line strings

I need to limit the number of characters a translator can enter per line in the following:

<text kind='TEXT' id='01364' linelen='30' line='002'>
<val>
Keilrippenriemenscheibe mit<br/>
Freilauf und Schutzkappe
</val>
</text>

 The attribute linelen gives the maximum number of characters per line. Each line ends with <br/> and a line break.

Can anyone suggest a way to do this in Studio?

Parents Reply
  • Verification is still a problem. The above translation is OK lengthwise: 2 lines of 30 characters each. But it produces an error in Studio because the limit of 30 characters is applied to the whole segment.


    Now one could conceivable define separate parser rules for val-Elements containing 1, 2, 3 etc. br-Tags and set the length restriction to 60, 90, 120 characters. But that would only check the overall length of the segment, not the length of the individual lines.

Children