Difference between revisions of "Iranian Persian and Tajik/Verbs paradigm"

From Apertium
Jump to navigation Jump to search
(Verbs solution for Persian)
 
(→‎All code: + Category)
Line 154: Line 154:


</pre>
</pre>

[[Category:Developement]]

Revision as of 18:06, 15 April 2008

How to add a verb

In this solution for adding each verb

  1. you should add a tag like bellow to main section :
    <e lm="چشیدن"> <par n="/چشیدن__vbser"/></e>
  1. you should define past and present form of the verb according the bellow form in <pardefs>
    <pardef n="/چشیدن__vbser">
      <e>
        <p>
          <l>چشید</l>
          <r>چشیدن<s n="vbser"/><s n="past"/></r>
        </p>
        <par n="V__چشید/ن__vbser"/>
      </e>
      <e>
        <p>
          <l>چش</l>
          <r>چشیدن<s n="vbser"/><s n="pres"/></r>
        </p>
        <par n="ٰV__چش/[چشیدن]__vbser"/>
      </e>
    </pardef>

All code

This is all the code for defining all verbs in a file like Apertium-tg-fa.fa..dix.xml:

<?xml version="1.0" encoding="utf-8"?>
<dictionary>
  <alphabet>ابپتثچجحَخِديذةرزژسشصضطظعغقکگلىمنهیئونكفهؤپءٔأآ</alphabet>
<!--  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="apertium-tg-fa.symbols.xml"/>-->
  <sdefs>
    <sdef n="vblex"/>
    <sdef n="pres"/>
    <sdef n="past"/>
    <sdef n="p1"/>
    <sdef n="p2"/>
    <sdef n="p3"/>
    <sdef n="pl"/>
    <sdef n="sg"/>
  </sdefs>

  <pardefs>
    <pardef n="V__چشید/ن__vbser">
      <e>
        <p>
          <l>یم</l>
          <r>ن<s n="vblex"/><s n="past"/><s n="p1"/><s n="pl"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>م</l>
          <r>ن<s n="vblex"/><s n="past"/><s n="p1"/><s n="sg"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>ید</l>
          <r>ن<s n="vblex"/><s n="past"/><s n="p2"/><s n="pl"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>ی</l>
          <r>ن<s n="vblex"/><s n="past"/><s n="p2"/><s n="sg"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>ند</l>
          <r>ن<s n="vblex"/><s n="past"/><s n="p3"/><s n="pl"/></r>
        </p>
      </e>
      <e>
        <p>
          <l/>
          <r>ن<s n="vblex"/><s n="past"/><s n="p3"/><s n="sg"/></r>
        </p>
      </e>
    </pardef>
    <pardef n="ٰV__چش/[منتبیدن]__vbser">
      <e>
        <p>
          <l>ید</l>
          <r><s n="vblex"/><s n="imp"/><s n="p2"/><s n="pl"/></r>
        </p>
      </e>
      <e>
        <p>
          <l/>
          <r><s n="vblex"/><s n="imp"/><s n="p2"/><s n="sg"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>یم</l>
          <r><s n="vblex"/><s n="prs"/><s n="p1"/><s n="pl"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>م</l>
          <r><s n="vblex"/><s n="prs"/><s n="p1"/><s n="sg"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>ید</l>
          <r><s n="vblex"/><s n="prs"/><s n="p2"/><s n="pl"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>ی</l>
          <r><s n="vblex"/><s n="prs"/><s n="p2"/><s n="sg"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>ند</l>
          <r><s n="vblex"/><s n="prs"/><s n="p3"/><s n="pl"/></r>
        </p>
      </e>
      <e>
        <p>
          <l>د</l>
          <r><s n="vblex"/><s n="prs"/><s n="p3"/><s n="sg"/></r>
        </p>
      </e>
    </pardef>
    <pardef n="/چشیدن__vbser">
      <e>
        <p>
          <l>چشید</l>
          <r>چشیدن<s n="vbser"/><s n="past"/></r>
        </p>
        <par n="V__چشید/ن__vbser"/>
      </e>
      <e>
        <p>
          <l>چش</l>
          <r>چشیدن<s n="vbser"/><s n="pres"/></r>
        </p>
        <par n="ٰV__چش/[چشیدن]__vbser"/>
      </e>
    </pardef>
  </pardefs>
  <section id="main" type="standard">
    <e lm="چشیدن"> <i></i><par n="/چشیدن__vbser"/></e>
  </section>
</dictionary>