ApSIC Xbench Forum

Character limit

#1

Is there a way to check/verify that all segments are under a certain number of characters?

For example for subtitling I want all my segments to be under 45 characters (including spaces)

0 Likes

#2

You can create a checklist item that searches for segments that have in target text 46 or more characters of length.

For a maximum of 45 characters, finding segments with 46 or more would be:

Target: "^.{46,}$"
Search Mode: Regular Expressions
Powersearch Mode: ON
2 Likes

#3

You can also do this:

Target: -^.{0,45}$
Search Mode: Regular Expressions
Powersearch Mode: ON

1 Like

#5

Hi,

is there also a chance to check all segments, that are longer than te source text?

Thnx!
Burim

1 Like

#6

Not as a built-in check, but a QA plugin can be built for it.

For example, this repository in GitHub shows a sample to check for suspicious segment length: https://github.com/xbench/plugin-samples-vs-cpp.

0 Likes

#7

As I am have no idea of programming, this won’t helb me. Maybe you can enter this idea to your database and discuss ist.

Check: target longer than source

Or would it be able to use the search function with a regex, that counts the number of charactes in the source and then checks that number in the target? Would you be able to provide such a regex?

Best regards

0 Likes

#8

When exploring it with the plugin, we found that the length check used as a means to find real issues (for example extraneous text in a segment), even when configured with generous growth slacks, produced too many false positives so it was not a good candidate for a standard QA check.

At the time, we preferred to leave it as something that can be done externally via a plugin as this is a task that can be easily outsourced to a freelance programmer (it should be a 2 to 4 hours task using the sample in GitHub as guidance).

If hiring a freelance programmer is too much of a hassle, one workaround is possibly to export the items to Excel and then in Excel write a length formula in column C.

0 Likes

#9

Thnx a lot!

Best regards
Burim

0 Likes