-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Given this example:
<?xml version="1.0" encoding="UTF-8"?>
<FoLiA xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://ilk.uvt.nl/folia" xml:id="hyp" generator="libfolia-v2.13" version="2.5.1">
<metadata type="native">
<annotations>
<hyphenation-annotation set="tst"/>
<style-annotation set="tst"/>
<paragraph-annotation set="tst"/>
<text-annotation set="https://raw.githubusercontent.com/proycon/folia/master/setdefinitions/text.foliaset.ttl"/>
</annotations>
</metadata>
<text xml:id="hyp.text">
<p xml:id="hyp.p.1">
<t class="FoLiA-txt">Appel<t-hbr>peren</t-hbr>taart</t>
</p>
</text>
</FoLiA>folia2txt produces:
Appeltaart
Which is maybe consistent with the docs , although it is not explicitly forbidden
(should isn't may not)
FoLiA-2text gives:
Appelperentaart, so does interpret the embedded text.
My problem with this is, dat NOT including the text violates the principle of least surprise. By just looking in the text of the <p> you might expect the peren to show up.
The Best solution imho is to explicitly forbid a text content inside a <t-hbr> an give an error when it is attempted.
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or request