Setting Max Size on segments based on percentage of the original size
Catalyst offers the ability to set a Maximum size for translations proportionally to the original segment's length. This size limit can then be verified using the Validate Expert, automatically detecting any translation which exceeds the set proportional size, using the Maximum Size Check.
To set a Maximum Size Proportionally, go to the Properties tab and click on the Maximum Size field.

In the Maximum Size dialog, select the Proportional Characters radio button and set the desired percentage of the original segment.
Remember that you can multi-select segments in the Workspace window to assign them all the same Maximum Size.
But what if you need to assign different proportional character limits based on the length of the source segment?
For example, you need to set the proportional maximum as follows:
Size of the source segment |
Proportional maximum size to apply |
Less or equal to 15 characters |
Percentage of source text length 150% |
16 to 50 characters (incl.) |
Percentage of source text length 130% |
More than 50 characters |
Percentage of source text length 115% |
The solution is to multi select all the strings sharing the same size criteria and setting the proportional maximum size as described above.
The challenge is of course to select all the strings based on their size.
This is actually very easy in CATALYST using the QuickFind feature, which enables the user to filter down the string list to display any text. Plus, to make it even more versatile, it supports regular expressions.

Based on the example in the table above, for each proportional size you want to set, follow these steps:
Enter the following regular expression in the Search field to filter strings between 0 and 15 characters: ^.{0,15}$
And click on the QuickFind Options button to define the search criteria:
- Search in original
- Use regular expressions

Click the button to search.
All the strings now listed in the Workspace window are strings between 0 and 15 characters.
Select them all and set the proportional size to 150%

Repeat those steps 2 more times with the following regular expressions:
Search field to filter string between 16 and 50 characters: ^.{16,50}$ and set the Proportional size to 130%
Search field to filter string longer than 50 characters: ^.{51,}$ and set the Proportional size to 115%
With just those few steps, we have efficiently and effortlessly set the appropriate maximum size for all the strings in the TTK project. With that we know that translators will see the Maximum size limit while they translate individual segments, and the Validate Expert will pick up on any translation which breaches the imposed max size. |