Pages in topic:   [1 2] >
QA Checker 3.0 with Regular Expressions
Thread poster: E_Kelly
E_Kelly
South Korea
Local time: 18:58
Member
English to Korean
Aug 26, 2013

I'd like to check followings;

Source: See more details on page (45) of our book.
Target: See more details on page (44) of our book.

or


Source: See more details on page (45) of our book.
Target: See more details on page () of our book.


So..
I used following RegEx, with no gains at all;


1.
Source : \d+
Target : \d+
Condition: Report if both target and source RegEx patterns match

2.
Source : (\d+)
Target : $1
Condition: Grouped search expression - report if source matches but not target

3.
Source : (\d+)
Target : $1
Condition: Grouped search expression - report if source and target matches

4.
Source : (\d+)
Target : (\d+)
Condition: Grouped search expression - report if source and target matches

5.
Source : \((\d+)\)
Target :$1
Condition: Grouped search expression - report if source and target matches

6.
Source : \((\d+)\)
Target : \($1\)
Condition: Grouped search expression - report if source and target matches



Somebody help me please..



[Edited at 2013-08-26 05:24 GMT]


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 12:28
English
Back references in the QA Checker Aug 26, 2013

Hi Jaesang,

I will try and get some clarity on this from the development team (because I'm not 100% sure) but I don't believe back references between source and target are supported. The help seems a little misleading here because it does mention back references but I think it is really referring to what Studio does under the hood. So you use P.45 in the source for example and then S.45 in the target and Studio will place P.45 as a back reference and see whether S.45 matches it. So you don't set up the use of a back reference, Studio just does it under the hood. But of course this means using specific patterns in the source and in the target, so \d+ will match 45 and 46 in your example with no discrepancy reported.

The confusion is furthered by the help providing a link to help on how to use regex back references in general.

So I think we've led you down the garden path a little here.

The good news is that for numbers you don't need them as Studio has a number check built in under Verification -> QA Checker 3.0 -> Numbers.

The bad news is that if the numbers are not recognised then it will fail.

Definitely an area we need to enhance and I know this is logged to be improved in the future. In the meantime you might find Xbench from ApSIC does a good job here if you are working with files that contain number formats that Studio does not recognise.

Regards

Paul


Direct link Reply with quote
 
E_Kelly
South Korea
Local time: 18:58
Member
English to Korean
TOPIC STARTER
It works, partially Aug 27, 2013

Yes, it is.

I do not know why, but it works if you finished the setting before you make a new project (including regular expressions also).
If you forget something and want to add/change after that time. No, it will not work as you wanted.
You have to make another/new project. Its set options/RegExps are very stubborn ones.

It is a clearly disappointed behavior.

Anyway, it works.
And it supports back-referencing function perfectly.


Thanks for your effort, Paul !!


Regards


Direct link Reply with quote
 

Gyula Erdész
Hungary
Local time: 12:28
Member (2005)
English to Hungarian
+ ...
SDL Studio 2014 number check Aug 27, 2013

SDL Support wrote:

Definitely an area we need to enhance and I know this is logged to be improved in the future.



Dear Paul,

Does it really mean that SDL Studio 2014 still won't be able to check numbers if they are in mixed strings (letters + numbers, like H2O)?

Regards,

Gyula


Direct link Reply with quote
 
E_Kelly
South Korea
Local time: 18:58
Member
English to Korean
TOPIC STARTER
H2O Aug 27, 2013

Funny.
The "Check Numbers" option does not rekon it really.


I found one RegExp can cover it, but it is just a temporary ones.

Ex)
Source: (\w+\d+\w+)
Target: $1
Condition: Grouped search expression - report if source matches but not target

Regards


Direct link Reply with quote
 
E_Kelly
South Korea
Local time: 18:58
Member
English to Korean
TOPIC STARTER
Try this Aug 27, 2013

should be (almost) perfect, I guess.

Source:([\w\d]*\d+[\w\d]*)
Target:$1
Condition: Grouped search expression - report if source matches but not target


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 12:28
English
Interesting... Aug 27, 2013

Jaesang wrote:

should be (almost) perfect, I guess.

Source:([\w\d]*\d+[\w\d]*)
Target:$1
Condition: Grouped search expression - report if source matches but not target


... and what happens if your target does match?

Regards

Paul


Direct link Reply with quote
 
E_Kelly
South Korea
Local time: 18:58
Member
English to Korean
TOPIC STARTER
Nothing Aug 27, 2013

Because, that is supposed to be.

Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 12:28
English
This is a different scenario... Aug 27, 2013

Gyula Erdész wrote:

Does it really mean that SDL Studio 2014 still won't be able to check numbers if they are in mixed strings (letters + numbers, like H2O)?



... checking H20 or other strings is fine. What we are talking about here is using a back reference. So you can check that the same pattern exists in source and in target, or the exact same letters/numbers.

The problem is that I'm pretty sure you can't use a back reference to do this... at least I was sure... I'll be very pleased to be proven wrong by anyone.

Regards

Paul


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 12:28
English
You are misunderstanding... Aug 27, 2013

Jaesang wrote:

If you forget something and want to add/change after that time. No, it will not work as you wanted.
You have to make another/new project. Its set options/RegExps are very stubborn ones.

It is a clearly disappointed behavior.



... how Projects work. Once you created your Project you have to make your changes in the Project Settings for that project. This is because you can have different settings for different Projects. If changing one changed them all it would be a little irritating Check out this post : http://wp.me/p2xDjK-fz

Regards

Paul


Direct link Reply with quote
 
E_Kelly
South Korea
Local time: 18:58
Member
English to Korean
TOPIC STARTER
Are you serious ? Aug 27, 2013

Have you tried "H2O" ? with SDL Trados Studio 20** ?

I did.
Like I said, "Check Numbers"'s function is not so perfect.


Have you ever tried any one of the above RegExps (with Backreference) ? with your own fingers ?

I did.
I made it.
I proved it all.


What the heck are you talking about ?

Yes, you will be very pleased.
Because, everybody can prove it.
(That reads, your idea is simply wrong.)


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 12:28
English
Dear Jaesang... Aug 27, 2013

... I apologise. I was wrong as I stupidly ignored the grouped search and used the simple check instead.

Thank you for being so gracious with your explanation, but I am indeed very pleased to be wrong. In fact (\d+) worked as well, so I really was wrong. I guess your earlier problems were related to misunderstanding how Project Settings work?

Regards

Paul


Direct link Reply with quote
 
E_Kelly
South Korea
Local time: 18:58
Member
English to Korean
TOPIC STARTER
I do not care Aug 27, 2013

what you are talking about.


I do not have any kind of misunderstanding whatsoever.
There is nothing to understand or misunderstand.

I tried every items/options at least 10 times with my own fingers.
Problem is problem.



Regards


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 12:28
English
Fair enough... but I think you have. Aug 27, 2013

Jaesang wrote:

what you are talking about.


I do not have any kind of misunderstanding whatsoever.
There is nothing to understand or misunderstand.

I tried every items/options at least 10 times with my own fingers.
Problem is problem.

Regards


You said that you have to keep resetting the options because it does not remember what you used. This is not true... and I broke from tradition and actually tried it myself with my own fingers.

The same options exist in Tools -> Options and in Project Settings. The difference between them is that Tools -> Options is Global and affects only new Projects. Existing Projects are adjusted through the Project Settings.

So if you amend a rule in Tools -> Options and then test it on an existing Project it will have no affect at all.

This is what I was talking about and I said this specifically because you said "You have to make another/new project. Its set options/RegExps are very stubborn ones."

I don't have this problem at all and can even create Project Templates that contain all these rules. I don't need to make a new Project, I just have to make the changes in the right place.

If we have a misunderstanding here then please feel free to email me directly. I'm not trying to be awkward, and even if you are a real expert in how to use Studio you can always learn something from another user.

Regards

Paul
pfilkin@sdl.com


Direct link Reply with quote
 
E_Kelly
South Korea
Local time: 18:58
Member
English to Korean
TOPIC STARTER
Thanks, Paul. Aug 27, 2013

I will try it again on the basis of your kind explanations.


Regards


Direct link Reply with quote
 
Pages in topic:   [1 2] >


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


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

QA Checker 3.0 with Regular Expressions

Advanced search







PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

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