Variable Support in Patterns Configuration
Original issue 267 created by nrawal.... on 2012-08-15T18:01:49.000Z:
It would be nice to have a variable support in Pattern Configuration.
Here is a simple example (Regular Expression)
.*([:punct:])=1@ 1+
where
[:punct:] is assigned a variable 1
Variable 1 is then referenced as @ 1
The above Regular Expression pattern can be used to identify two or more consecutive punctuations in Target.
Also, irregardless of where the variables are defined (Source or Target) they can be referenced anywhere. So if a variable is defined in Source pattern then it can be referenced anywhere within the Source and Target patterns.
What version of the product are you using?
Version 0.17-SNAPSHOT
On what operating system?
Windows 7 64-bit
Comments (5)
-
Account Deleted -
Account Deleted Comment 2. originally posted by nrawal.... on 2013-01-07T20:06:34.000Z:
Any thoughts on this enhancement request.
-
Account Deleted Comment 3. originally posted by @ysavourel on 2013-01-08T12:18:37.000Z:
Nothing new on this.
being able to define 'variable' would be a handy feature. But we are concentrating on the change to annotations at this time. -
- edited description
- changed version to M33
-
- changed status to on hold
On hold until someone can implement this
- Log in to comment
Comment [1.](https://code.google.com/p/okapi/issues/detail?id=267#c1) originally posted by @ysavourel on 2012-08-24T20:20:22.000Z: