2010/7/11 Jimmy O'Regan <[email protected]>


>  <section-rules>
>    <rule>
>      <pattern>
>        <pattern-item n="adj"/>
>        <pattern-item n="n"/>
>      </pattern>
>      <action>
>        <exception>
>          <test>
>            <equal caseless="yes">
>              <clip pos="2" side="sl" part="lem"/>
>              <lit v="bar"/>
>            </equal>
>          </test>
>        </exception>
>

Now, I do understand why you chose that way of writing it (its the easiest
way to implement), but if we adopt <exception> I it would make more sense to
make the exception a part of the <pattern> element, like this:

   <rule>
     <pattern>
       <pattern-item n="adj"/>
       <pattern-item n="n"/>
       <exception>
         <test>
           <equal caseless="yes">
             <clip pos="2" side="sl" part="lem"/>
             <lit v="bar"/>
           </equal>
         </test>
       </exception>
     </pattern>
     <action>
...



-- 
Jacob Nordfalk
एस्पेरान्तो के हो?  http://www.esperanto.org.np/.
Memoraĵoj de KEF -. http://kef.saluton.dk/memorajoj/
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to