Open iljackb opened 5 years ago
Current error producing merging of "phrase" and "inflected" in same entries:
<entry>
<form type="inflected">
<orth xml:lang="mix">tata</orth>
<gramGrp>
<pos/>
<per/>
<number/>
</gramGrp>
<gloss xml:lang="en">seed</gloss>
<gloss xml:lang="en">my seeds</gloss>
<gloss xml:lang="en">let's insert my seeds</gloss>
<gloss xml:lang="es">semilla</gloss>
<gloss xml:lang="es">mis semillas</gloss>
<gloss xml:lang="es">insertamos mis semillas</gloss>
</form>
<form type="phrase">
<orth xml:lang="mix">tata</orth>
</form>
also, why is this:
<w xml:id="d1e609">tata</w>
<w xml:id="d1e611">yu</w>
<span target="#d1e609 #d1e611" xml:lang="en" type="inflected">my seeds</span>
<span target="#d1e609 #d1e611" xml:lang="es" type="inflected">mis semillas</span>
producing:
<entry>
<form type="phrase">
<orth xml:lang="mix">tata yu</orth>
</form>
it should be:
<entry>
<form type="inflected">
<orth xml:lang="mix">tata yu</orth>
</form>
Currently where an annotated item has more than one (n) components, it creates (n) entries for the same item (e.g. two entries for "nchi'chi nchu'a")
I think this is due to the entry point of:
`<xsl:for-each select="$readDoc/descendant::w[. = current()]">`
One option to deal with this is to have suplimentary stylsheet associated with scenario to remove duplicate entries..
Have you checked all annotated information (e.g. that @xml:lang is tested and not present)
Currently working.
Remaining enhancements to be made include:
Avoid duplicating entries:
Normalize (lower) case of capitalized words:
Ideally, output phrases in related entry
<re>
Decide on xml:id's (could just not have any):
For items with multiple tokens where many example sentences printed, avoid printing all of them;