LanguageMachines / foliautils

Command-line utilities for working with the Format for Linguistic Annotation (FoLiA), powered by libfolia (C++), written by Ko van der Sloot (CLST, Radboud University)
https://proycon.github.io/folia
GNU General Public License v3.0
4 stars 3 forks source link

FoLiA-pm doesn't handle notes correctly #50

Closed kosloot closed 3 years ago

kosloot commented 3 years ago

FoLiA-pm chokes on this note.xml.txt inputfile:

''saving to file test3/FPM-note.folia.xml failed: no such text: ref::text_content()''

This is due to the note node:

<p pm:id="pm11.2.2">AMENDEMENT VAN HET LID PECHTOLD C.S. TER VERVANGING VAN DAT GEDRUKT ONDER NR. 69
  <note pm:ref="v1.1" pm:id="pm11.2.2.2">
    <p pm:id="pm11.2.2.2.1">1</p>
    <p pm:id="pm11.2.2.2.2">Vervanging in verband met wijziging in de ondertekening.</p>
  </note>
<\p>

The software doesn't expect 2 paragraphs inside the note I assume What should be done: The first paragraph, with just a '1' must be inlined and the second paragraph, with the text of the note, should be at the bottom of the page.

kosloot commented 3 years ago

As usual the error wasn't where I expected… committed a solution now