Closed kosloot closed 5 years ago
also cross-referencing proycon/folia#58
I added a patch to libfolia to output the \<w> AS IS when it is the only occurrence. (so NO reference to the same \<w> elsewhere.
I ran foliavalidator
too, on this file: It rejects it:
Error on line 19: Element su has extra content: w
Error on line 0: Extra element su in interleave
Error on line 17: Element su failed to validate content
Error on line 17: Element syntax failed to validate content
Error on line 0: Extra element syntax in interleave
Error on line 3: Element FoLiA failed to validate content
VALIDATION ERROR against RelaxNG schema (stage 1/2), in tests/scary.xml
Element su has extra content: w, line 19
Maybe an open door. But text inside this kind of words is exempt from all text processing.
Which is probably exact what you would like to see...
In the example, the s.text() function should return just Is@
, and not Is@ *exp*
I modified libfolia to also reject this kind of construction:
failed: XML error: connecting a <w> to an <su> is forbidden, use <wref>
I think is is correct now
Agreed
related to https://github.com/proycon/flat/issues/138
Consider this file:
It contains a \<w> in the \<su> node that IS NOT present in the \<s> itself. That is a construction which is (until now) never thought of.
When running
folialint
on this file, an INVALID output is produced:A \<wref> is generated to a non existing word!
Desired behavior: