Difference between revisions of "Monodix"

From Apertium
Jump to navigation Jump to search
Line 2: Line 2:
   
 
==Notes==
 
==Notes==
  +
  +
; Postgenerator alarms
  +
Many monodixes handle postgenerator alarms <code>&lt;a/></code> explicitly in each entry. As a result, left-to-right entries have to be separated from right-to-left entries. However, it could be much easier to write a paradigm like
  +
  +
<pre>
  +
<pardef n="wiggle">
  +
<e r="LR">
  +
<i/>
  +
</e>
  +
<e r="RL">
  +
<l><a/></l>
  +
<r></r>
  +
</e>
  +
</pardef>
  +
</pre>
  +
  +
and then invoke it in entries as follows
  +
  +
<pre>
  +
<e lm="a">
  +
<par n="wiggle"/>
  +
<i>a</i>
  +
</par n="a__pr"/>
  +
</e>
  +
</pre>
  +
  +
This suggests that perhaps it would be even easier to change the meaning of <code><a/></code> so that it only works right to left, or perhaps endow it with the <code>r</code> attribute as follows: <code><a r="RL"/></code>.
   
 
==See also==
 
==See also==

Revision as of 11:04, 21 April 2008

Monodix (from monolingual dictionary, plural: monodices) is a French-sounding term invented by Youssefsan (Youssef Oualmakran)] to refer to an Apertium monolingual dictionary in .dix format.

Notes

Postgenerator alarms

Many monodixes handle postgenerator alarms <a/> explicitly in each entry. As a result, left-to-right entries have to be separated from right-to-left entries. However, it could be much easier to write a paradigm like

<pardef n="wiggle">
    <e r="LR">
       <i/>
    </e>
    <e r="RL">
        <l><a/></l>
        <r></r>
    </e>
</pardef>

and then invoke it in entries as follows

<e lm="a">
   <par n="wiggle"/>
   <i>a</i>
   </par n="a__pr"/>
</e>

This suggests that perhaps it would be even easier to change the meaning of <a/> so that it only works right to left, or perhaps endow it with the r attribute as follows: <a r="RL"/>.

See also