Characters Counting in Segment
Thread poster: Sarah Forget

Sarah Forget
Australia
Local time: 00:28
English to French
+ ...
Apr 28

Hi there,

I am working on a subtitling project where the translations cannot exceed 40 characters. I am trying to set up some regex in the QA settings Regex tab to define some rules that would give me an error if the number of character is higher than the limit allowed.

The other thing to mention is that each segment may be divided using \N. I am allowed 40 characters before this tag and 40 characters after this tag, i.e. up to 80 characters per segment, but never more than 40 for each part of the segment.

I have set up my QA settings as follows but it doesn't seem to be working.

https://www.dropbox.com/sh/6fyujbafbzx7bab/AACvgh08ppmHyXzOFMhTNAata?dl=0

The Regex I wrote are:

\N[aA-zZ,\.-/d/s?!]{40,100}$
^[aA-zZ,\.-/d/s?!]{40,100}\N

Does anyone have experience with this regex tab and could tell me what i am doing wrong?

Thank you,
Sarah


Direct link Reply with quote
 

Stepan Konev  Identity Verified
Russian Federation
Local time: 16:58
English to Russian
\N = new line Apr 29

Hi Sarah,

Unfortunately, I cannot help with a magic regex combination, but I would like to propose a workaround.
memoQ shows the total number of characters in its downmost panel, last section.
It may look like this: 131+1/157+1
where
131 stands for the total number of chars in source,
157 stands for the total number of chars in target,
+1 stands for the total number of tags (if any) in source or target.
So you can see the chars count on the go, witout using QA.

On the other hand, \N indicates "new line".
I would split the \N segment for translation, keeping in mind that the newly splitted segment with \N may have 42 chars as a maximum (40+"\N"), and then (once translated) merge these two segments back again.

Definitely, not that comfortable as it might be with regex or other solution, but still you can see the number of characters on the go.

[Edited at 2017-04-29 23:08 GMT]


Direct link Reply with quote
 
MaxOO
Japan
QA setting for this purpose Apr 29

Hello,

I think the following setting will meet your needs:

Resource console > QA Settings > Segments and terms > Segment length > Warn if translation is longer than (characters).

And if you confirm a "non-compliant" translation, you will see the lightening mark just below the match score (on the right side of the source/target segment).

Cheers,


[Edited at 2017-04-29 19:02 GMT]


Direct link Reply with quote
 

Stepan Konev  Identity Verified
Russian Federation
Local time: 16:58
English to Russian
Re: QA setting for this purpose Apr 30

MaxOO, did you read the original post?
If yes, how do I make memoQ recognize when characters "may not exceed 40" and when they "may not exceed 80" as need may be? I experience the same problem and would appreciate any such idea either.

P.S. Well, ok. You may suggest that I treat such 80-character segments as exclusions. Then next question is: how do I know it is 40+40, but not 70+10? Count characters one by one from the beginning of a segment to \N?

[Edited at 2017-05-01 01:52 GMT]


Direct link Reply with quote
 

Sarah Forget
Australia
Local time: 00:28
English to French
+ ...
TOPIC STARTER
Not accurate enough May 2

Thank you Stepan for your answer. This is the solution that I am using at the moment but it is not accurate enough for my liking. I really want to quickly see if I am exceeding the number of characters allowed for each line (not overall).

Although splitting at the \N would be ideal for checking the characters, I cannot split the segments that way as it would restrict the translation in a way that will not take into account the full subtitle.

I am pretty sure that a regex can do the job, my only problem is that I am just starting with MemoQ and am not familiar enough with how to customise it.


Direct link Reply with quote
 

Sarah Forget
Australia
Local time: 00:28
English to French
+ ...
TOPIC STARTER
QA setting doesn't work for this specific case May 2

Hi MaxOO,

I already have that QA setting set up for anything longer than 80 characters however, as per Stepan's comment above, it doesn't tell me if a line is over 40 characters.

Sarah


Direct link Reply with quote
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Characters Counting in Segment

Advanced search






Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »
Across v6.3
Translation Toolkit and Sales Potential under One Roof

Apart from features that enable you to translate more efficiently, the new Across Translator Edition v6.3 comprises your crossMarket membership. The new online network for Across users assists you in exploring new sales potential and generating revenue.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search