-
Notifications
You must be signed in to change notification settings - Fork 13
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
Problem with labeled lists #41
Comments
Ok, there is a wealth of problems here. folialint more or less issues the same messages. But more clear, not as a stack trace:
foliavalidator in fact states the same, stripping the slack:
This is correct imho: the text of the structure element 'item' should be the composition of the texts from it's structure element children.
This might come as a surprise :)
So this all needs some thought about wat you want to express.... Then there is the ucto problem.. But is also raises an interesting idea: |
Wait.. this is not at all that complex. FoLiA has a generic "n" attribute which is used for labels in ordering. This is especially useful for list items. Example from the FoLiA documentation: <head><t>My grocery list</t></head>
<list xml:id="example.list.1">
<item xml:id="example.list.1.item.1" n="A"><t>Apples</t></item>
<item xml:id="example.list.1.item.2" n="B"><t>Pears</t></item>
</list> There is no |
Correction: we do have a label element it seems!.... It's not in the documentation though, so that's bad. I'll see if I can figure out what happened. |
Thanks! I can probably use the n=... option to encode the labels in my current Nederlab batch. I was looking for a translation for the corresponding TEI tag, and took label from the folia schema as a possible translation of the TEI tag for list labels. In TEI, label is an element and may contain some markup (http://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-label.html), so translation by n=... will not always work. |
Well, the Label tag is there, but seems only halfway implemented. But still remember: it's text is part of the document text then! |
To clarify a bit: @JessedeDoes using the n attribute can be handy. And although it's name might suggest otherwise, it may contain any kind of text (within the XML limits for attributes). |
@proycon : so what is the status of label now? |
Issue still open indeed, haven't had time to document this properly yet (bit of a lower priority). |
Ah wait, this is indeed a FoLiA issue rather than an ucto one, new issue makes sense. Closing this one. |
I have some files which have labels preceding list items.
I have some difficult to encode this in a way that ucto and foliavalidator will accept, cf attached files and error messages.
Neither
<item>
<label>a</label>
<t> .... text </t>
</item>
nor
<item>
<label>a</label>
<part><t> .... text </t></part>
</item>
work for me (The last option is accepted by foliavalidator)
error.log
metPart.mini.xml.txt
zonderPart.mini.xml.txt
The text was updated successfully, but these errors were encountered: