I work with special (read: not so commonly used proprietary format) text files which contain record numbers.
When comparing them I have 2 requirements:
1. equal record numbers should always be aligned (even if other lines before or after them are identical and might suggest some other alignment)
2. everything else but record numbers can be set as unimportant (at least optionally by pressing the "similar" button)
I managed to create a file format with the right regexp to match my record numbers. Now BC3 recognizes record numbers as their own grammar item and the rest as "default text".
But this file format has no visible effect to the comparison.
What is the meaning of the line weights in the grammar tab? Could that be used to influence the alignment according to my #1? My record numbers are not separate lines, so I haven't experimented with that.
In my comparison everything seems to be always important. Can I make the default text unimportant? I vaguely remember a setting from BC2 times "everything else is unimportant".
Of course mathematically it is possible to define a regexp for everything else than my record numbers. And then deselect this everything else from being important. But it seems more complicated than what I would like to do (or my regexp algebra skills are not enough...)
P.S. Yes, I probably somehow mix alignment and importance here. The problem is just that it's not really clear to me how these are related, if at all.
When comparing them I have 2 requirements:
1. equal record numbers should always be aligned (even if other lines before or after them are identical and might suggest some other alignment)
2. everything else but record numbers can be set as unimportant (at least optionally by pressing the "similar" button)
I managed to create a file format with the right regexp to match my record numbers. Now BC3 recognizes record numbers as their own grammar item and the rest as "default text".
But this file format has no visible effect to the comparison.
What is the meaning of the line weights in the grammar tab? Could that be used to influence the alignment according to my #1? My record numbers are not separate lines, so I haven't experimented with that.
In my comparison everything seems to be always important. Can I make the default text unimportant? I vaguely remember a setting from BC2 times "everything else is unimportant".
Of course mathematically it is possible to define a regexp for everything else than my record numbers. And then deselect this everything else from being important. But it seems more complicated than what I would like to do (or my regexp algebra skills are not enough...)
P.S. Yes, I probably somehow mix alignment and importance here. The problem is just that it's not really clear to me how these are related, if at all.
Comment