Xavier, maybe I didn't explain it correctly.
THe idea:
RULES foo aa==>bb cd==>ef ENDRULES
and it creates the function foo which receives a string, and applies the rules while possible, rewritting the string.
There are very interesting purposes for this module. We wrote a full text-to-speech system based on such rules. Now, we want to make it a module to put the text cleaner.
Cheers, Alb
Xavier Noria wrote:
On Dec 25, 2004, at 10:51 PM, Alberto Manuel Brandao Simoes wrote:
I'm designing a new module to include a little rewritting language on Perl. It will be based on Filter::Simple.
First, I imagined :
Text::Rewrite
Then
Inline::Rewrite
The language makes you able to define rules, and join that rules on a function you can call from Perl code. The rules map regular expressions on other regular expressions.
I don't see clearly the usage or purpose of the module from that description.
The module seems to be a source filter. One that allows the user to map regular expressions from a given definition using rules. Those rules can be joined into a Perl function that can be called..., I am lost.
To get the picture. Can you give some usage example? Can you describe a situation where the module can be useful? From that summary I would expect kind of a wrapper of FILTER_ONLY regex => ... but then which is the role of that function of joined rules? When would it be constructed? Which code would use it?
-- fxn
-- Alberto Simões - Departamento de Informática - Universidade do Minho ,,__ .. .. / o._) .---. /--'/--\ \-'|| .----. .' '. / \_/ / | .' '..' '-. .'\ \__\ __.'.' .' ì-._ )\ | )\ | _.' // \\ // \\ ||_ \\|_ \\_ Perl Monger mrf '--' '--'' '--' www.perl-hackers.net