El dt 12 de 07 de 2011 a les 20:28 +0200, en/na Mikel Forcada va
escriure:
> Hi all,
> > I have a proposal about making new chunks in interchunk. At the moment
> > if we want to make a new chunk we have to put in<lit> tags with '{' and
> > '}' -- this is superugly. Here is an example:
> >
> > <chunk>
> > <lit v="prep"/>
> > <lit-tag v="PREP"/>
> > <lit v="{^na"/>
> > <lit-tag v="pr"/>
> > <lit v="$}"/>
> > </chunk>
> >
> > output: ^prep<PREP>{^na<pr>$}$
> >
> > It would be supernicer if it were like this:
> >
> > <chunk>
> > <lit v="prep"/>
> > <lit-tag v="PREP"/>
> > <chcontent>
> > <lu>
> > <lit v="на"/>
> > <lit-tag v="pr"/>
> > </lu>
> > </chcontent>
> > </chunk>
> >
> > output: ^prep<PREP>{^na<pr>$}$
> Sounds good to me!
> > What do people think ? It would mean changing the DTD and the transfer
> > code... But quite a simple change I think, and backwards compatible.
> >
> > <chcontent> outputs {
> > </chcontent> outputs }
> I'd rather use the longer "chunkcontent" for clarity.
This would be ok too, but I thought it better to mirror the inbuilt
attribute that we have already (e.g.
<clip pos="1" part="chcontent"/> = {^foo<bar>$}
Then
<chcontent> </chcontent> would be what that part matches.)
We could also make it:
<content> </content> (which would mirror the inbuilt of
<clip pos="1" part="content"/> = ^foo<bar>$
> > <lu> (in chunker) outputs ^
> > </lu> (in chunker) outputs $
>
> > PS. People are really using the<lit v="{"/> hack at the moment:
> Ugly. Ugh. Very un-Apertium.
Yeah :/
Fran
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff