You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an example given in proycon/folia#75 there seems to be an offset error, which goes undetected by foliavalidator.
full example:
<?xml version="1.0" encoding="UTF-8"?>
<FoLiAxmlns:xlink="http://www.w3.org/1999/xlink"xmlns="http://ilk.uvt.nl/folia"xml:id="doc"generator="libfolia-v1.11"version="2.2">
<metadatatype="native">
<annotations>
<correction-annotation />
<text-annotation />
<sentence-annotation />
<string-annotation />
</annotations>
</metadata>
<textxml:id="bug">
<sxml:id="s.1">
<t>Dit is een test</t>
<tclass="ocr">D!t 1S tezt</t>
<strxml:id="str.1">
<toffset="0">Dit</t>
<toffset="0"class="ocr">D!t</t>
</str>
<strxml:id="str.2">
<toffset="4">is</t>
<toffset="4"class="ocr">1S</t>
</str>
<strxml:id="str.4">
<toffset="11">test</t>
<toffset="7"class="ocr">tezt</t>
</str>
<strxml:id="str.3"> <!-- I'm deliberately messing with the ordering here to emphasise that it has no meaning with strings-->
<toffset="7">een</t>
</str>
<!-- and below an extra string example to emphasise that strings are not tokens: this overlaps with str.1 and str.2) -->
<strxml:id="str.bonus">
<toffset="3">t is</t>
<toffset="3"class="ocr">t 1S</t>
</str>
</s>
</text>
</FoLiA>
folialint tests/textproblem_3.xml
tests/textproblem_3.xml failed: Unresolvable text: Text for str(ID=str.bonus, textclass='current'), has incorrect offset 3
original msg=Unresolvable text: Reference (ID s.1,class='current') found, but no text match at offset=3 Expected 't is' but got ' is '
Which is as desired, while the offset should be '2'.
The text was updated successfully, but these errors were encountered:
In an example given in proycon/folia#75 there seems to be an offset error, which goes undetected by foliavalidator.
full example:
foliavalidator is happy with it:
folialint rejects this:
Which is as desired, while the offset should be '2'.
The text was updated successfully, but these errors were encountered: