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

NotImplementedError: <class 'foliatools.rst2folia.FoLiATranslator'> visiting unknown node type: container #18

Closed pirolen closed 3 years ago

pirolen commented 3 years ago

Encontered this when using piereling for converting Abbyy-produced HTML file ('.htm'), cf. https://webservices.cls.ru.nl/piereling/a/output/error.log

Undefined environment variable: CUSTOMHTML_INDEX Running pandoc --from=html --to=rst "input/kap1_pp1_2_adobeimgpdf_abbyy.htm.html" > "output/kap1_pp1_2_adobeimgpdf_abbyy.rst"

Running rst2folia --docid="kap1_pp1_2_adobeimgpdf_abbyy" "output/kap1_pp1_2_adobeimgpdf_abbyy.rst" "output/kap1_pp1_2_adobeimgpdf_abbyy.folia.xml" NotImplementedError: <class 'foliatools.rst2folia.FoLiATranslator'> visiting unknown node type: container

proycon commented 3 years ago

Thanks for the report! I implemented a fix that should hopefully resolved this (it's not released or deployed yet, will do so shortly).

proycon commented 3 years ago

Released now

pirolen commented 3 years ago

Thanks so much! Tried again, now got: https://webservices.cls.ru.nl/piereling/e/output/error.log

Running rst2folia --docid="kap1_pp1_2_adobeimgpdf_abbyy" "output/kap1_pp1_2_adobeimgpdf_abbyy.rst" "output/kap1_pp1_2_adobeimgpdf_abbyy.folia.xml" NotImplementedError: <class 'foliatools.rst2folia.FoLiATranslator'> visiting unknown node type: rubric

proycon commented 3 years ago

Ok, there was another new element it seems. I fixed this now (not release or deployed yet). I do see various artefacts in the conversion output that are not ideal though.