PDA

View Full Version : Comparison rules don't apply to matching lines.


GoSteelers
18-Jan-2010, 02:06 PM
I want to mark as unimportant, lines of text that do not contain a quote encapsulated string. The problem I'm having is I cannot get BC 2.4.3 to mark matching lines as unimportant.

It appears BC does a comparison then applies comparison rules to different lines only.

I'm trying to confirm all strings have been translated in several codes bases that are identical save user language.

Aaron
18-Jan-2010, 02:21 PM
Hello,

You can define specific grammar to match different logical definitions. You want to mark lines without a quote (but otherwise marked as a string) as unimportant? What defines these lines as a string besides the lack of the quote character? Or is it simply any line without quotes should be unimportant?

If that is the case, it may be easier to define quote sections as important, and everything else as Unimportant.

One issue you may be running into is a String compared to Text will be marked as a difference.
"This text is different" vs. This text is different
will have every letter be considered a difference since one side is a string and the other is not.

You can send us screenshots, example files, and Support.zip (Help menu -> Support; Export) to support@scootersoftware.com

Please also include a link back to this forum post if you email us with a specific example.

GoSteelers
19-Jan-2010, 08:33 AM
The object of the game is to confirm all English text has been translated to a second language.

The English version is the original so performing a typical compare against the second language yields the expected result of all strings that have been translated being marked as different. However, text in the second language version that has not been translated (i.e. it’s still English) matches the original and cannot be detected in this manner.

Since all text of interest in surrounded by quotes I attempted to get BC to ignore all text that was not enclosed in quotes. With that done it’s a simple matter of applying ‘Just Matching Text’ and ‘Ignore Unimportant Differences’ filters to find any English present in the second language version.

I know using BC in this manner is opposite to the intended use (finding differences) but I believe it can be done with some help from experienced users.

Aaron
29-Jan-2010, 03:08 PM
Hello,

As discussed in an earlier email, it seems the issue is you wish to view all matching lines, but then disregard specific matching lines you know will not matter (such as a BEGIN or END line marking the top and bottom of a potentially changed/same block). So the only lines that matter are the equal lines within the BEGIN and END block, but the lines BEGIN and END do not matter.

My recommendation in the email was to try BC3 and use it to create grammar elements for BEGIN and END specifically, and then give them a color that can be ignored and skipped over. Then view all matching lines, which would show BEGIN and END as well, but since they are different colors from the other matching lines that are important they can be ignored.

Here is a KB article for defining Grammar elements:
http://www.scootersoftware.com/support.php?zz=kb_unimportantv3