called the Regex engine from the evaluated regex
Posted: Sun Jan 06, 2013 11:24 am
Hello,
I have the impression that it's not possible for the regex engine to detect a pattern in a pattern and apply a rule in a embedded way.
I would like that every text between parenthesis to be pronounced : "between parenthesis read text end parenthesis"
For example the text should be read as "between parenthesis sorry for this end parenthesis"
With a regex, we can detected the pattern like that :
The respell could be :
- between parenthesis
My problem is that I would like apply again the regex engine on $1 to apply any rules if any rules is detected like valid in $1.
For example, if I have another rule which replaces 'Mr' by 'Mister', this rule will never be applied.
The spelling for the text
will be 'between parenthesis mr David end parenthesis' while i would like 'between parenthesis Mister David end parenthesis'.
I looked in the forum and I didn't found a response.
Is there a means to do what i want with TextAloud ?
A possible solution would be to trigger another time the analysis function on $1 but I don't know if it is possible.
Cheers
David
I have the impression that it's not possible for the regex engine to detect a pattern in a pattern and apply a rule in a embedded way.
I would like that every text between parenthesis to be pronounced : "between parenthesis read text end parenthesis"
For example the text
Code: Select all
(sorry for this)
With a regex, we can detected the pattern like that :
Code: Select all
\((.*)\)
- between parenthesis
Code: Select all
{{Pause=0.3}} $1{{Pause=0.3}} end parenthesis{{Pause=0.2}}
For example, if I have another rule which replaces 'Mr' by 'Mister', this rule will never be applied.
The spelling for the text
Code: Select all
(Mr David)
I looked in the forum and I didn't found a response.
Is there a means to do what i want with TextAloud ?
A possible solution would be to trigger another time the analysis function on $1 but I don't know if it is possible.
Cheers
David