proycon / foliatools

A number of command-line tools for working with FoLiA (Format for Linguistic Annotation). Includes validators, converters, visualisers, and more.
GNU General Public License v3.0
10 stars 4 forks source link

[rst2folia] Unable to add object of type Entry to ListItem #17

Closed proycon closed 3 years ago

proycon commented 3 years ago

Error encountered by Piroska when converting from docx (via pandoc to rst) to FoLiA:

Running rst2folia --docid="kap1_pp_1_2_png2docx_abbyy_wo_endhyphens" "output/kap1_pp_1_2_png2docx_abbyy_wo_endhyphens.rst" "output/kap1_pp_1_2_png2docx_abbyy_wo_endhyphens.folia.xml"
ValueError: Unable to add object of type Entry to ListItem . Type not allowed as child.

See how we can make this more resilient.

proycon commented 3 years ago

This is semi-fixed, rst2folia will no longer stumble over it but it ignores this unconvertable part.