El dl 08 de 10 de 2012 a les 07:50 +0200, en/na Kevin Brubeck Unhammer
va escriure:
> Mikel Forcada <[email protected]> writes:
> 
> > Fran,
> >
> >>
> >> I'd like to include the possibility for lists in the LRX format. This
> >> would involve adding a couple of new tags,
> > That should not be a problem as long as the old format works in the new 
> > definition
> >> and changing the root tag,
> > You would have to give a good reason for it.
> >> the idea is to have something like:
> >>
> >> http://pastebin.com/GGzfM5qc
> > OK. I would have appreciated comments in the .lrx file...
> >>
> >> Calling a <list> would just involve putting it's contents in the rule.
> >> So with <or> it would work like an OR, but without, it would work like a
> >> sequence.
> > I don't like this at all. This is very opaque. I would not use the tag 
> > <list>. If it is a set from where you choose, call it <set> or 
> > <option>... if it is a <sequence> define it as a sequence. But don't 
> > overload something called a <list> that really isn't.
> >
> > Another option would be to have a named macro that can contain anything 
> > that a rule can contain. Then you would use <or> for lists, etc. But 
> > <or><list>...</list></or> does not read well.
> 
> <apply><or/><list> sounds more correct =P
> 
> Since CG uses 'list' only for the disjunction, I think CG-ers would be
> confused too, if that matters. (CG uses 'template' for the sequence,
> though those templates can be a bit more involved.)

Yes, I think it would be too confusing ... :/ And for template, I think
we should go with Mikel's <macro> idea, but at a later stage...

Fran


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to