iljackb / Mixtepec_Mixtec

Mostly XML (TEI) markup of Mixtepec-Mixtec Language resources
3 stars 1 forks source link

Make script converting tokenized corpus contents to non-tokenized versions #112

Open iljackb opened 2 years ago

iljackb commented 2 years ago

Make standing XSLT script that converts tokenized corpus documents to non-tokenized ones and copying only contents

This can then be the basis for a 3rd main variety of every corpus document in which we will store and edit IGT glosses

The following can be the other outputs:

1) Basic structure with original Mixtec(non-tokenized), English and Spanish sentence translations

<seg xml:id="d1e140a" n="3" xml:lang="mix" resp="#TS" type="S">Nikitsi Shanty ka tsi mee ncha aueroperto S.F </seg>
<spanGrp type="annotations">
   <span ana="#S" target="#d1e140a" xml:lang="en" type="translation">Shanty came with me to the S.F airport.</span>
   <span ana="#S" target="#d1e140a" xml:lang="es" type="translation">Shanty vino conmigo al aeropuerto de S.F.</span>
</spanGrp>

This can then be copied (in a slightly modified XSLT) and (mostly) manually edited to become:

2) IGT centered data structure

<seg xml:id="d1e140igt" n="3" xml:lang="mix" resp="#TS" type="IGT">Ni-kits-i Shanty=ka tsi mee ncha aueroperto S.F.</seg>
<spanGrp type="annotations">
   <span ana="#S" target="#d1e140igt" xml:lang="en" type="IGT">PFV-come-3s Shanty=TPC with PRON-EMPH.1s ADPOS.until S.F airport</span> <!-- DECIDE ON TYPOLOGY -->
   <span ana="#S" target="#d1e140igt" xml:lang="en" type="translation">Shanty came with me to the S.F airport.</span>
  <span ana="#S" target="#d1e140igt" xml:lang="es" type="translation">Shanty vino conmigo al aeropuerto de S.F </span>
</spanGrp>
iljackb commented 2 years ago

in doing this beware of:

                  <foreign xml:lang="es">
                     <w xml:id="d1e11698">
                        <w xml:id="d1e11699">perro</w>
                        <w xml:id="d1e11701">caliente</w>
                     </w>
                  </foreign>

and

                     <w xml:id="d1e11698">
                        <w xml:id="d1e11699">perro</w>
                        <w xml:id="d1e11701">caliente</w>
                     </w>