Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

folialint reject valid input #52

Closed
kosloot opened this issue Mar 16, 2023 · 0 comments
Closed

folialint reject valid input #52

kosloot opened this issue Mar 16, 2023 · 0 comments
Assignees
Labels

Comments

@kosloot
Copy link
Contributor

kosloot commented Mar 16, 2023

given this FoLiA file:

<?xml version="1.0" encoding="UTF-8"?>
<FoLiA xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://ilk.uvt.nl/folia" xml:id="bugxx" generator="libfolia-v1.11" version="2.5">
  <metadata type="native">
    <annotations>
      <text-annotation set="https://raw.githubusercontent.com/proycon/folia/master/setdefinitions/text.foliaset.ttl"/>
      <division-annotation/>
      <paragraph-annotation/>
      <sentence-annotation/>
      <hyphenation-annotation/>
      <token-annotation/>
    </annotations>
  </metadata>
  <text xml:id="bug">
    <div xml:id="bug.text.1.div">
      <p xml:id="bug.text.1.div.p">
        <s xml:id="bug.text.1.div.p.s">
          <w xml:id="bug.text.1.div.p.s.w.4">
            <t><t-hbr>-</t-hbr></t>
	  </w>
        </s>
      </p>
    </div>
  </text>
</FoLiA>

folialint rejects this:

$ folialint tests/bugxx.xml
tests/bugxx.xml failed: tests/bugxx.xml: attempt to add an empty <t> to word: bug.text.1.div.p.s.w.4

foliavalidator accepts it:

$ foliavalidator tests/bugxx.xml 
Validated successfully: tests/bugxx.xml

I assume libfolia is mistakenly interpreting the <t-hbr>-<t-hbr/> as "empty"
The same problem also pops up for just <t-hbr/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants