DEFI-COLaF / metadata

1 stars 0 forks source link

Element `<list>` not allowed in `<p>` #17

Closed OrianeN closed 5 months ago

OrianeN commented 5 months ago

I'm trying to detect and format lists from the posts in Forum Occitania (although the HTML doesn't contain explicit <ul>/<ol>/<li>). I found the element <list> in the TEI documentation (https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-list.html) but I get an error with your schema:

element "list" not allowed here; expected the element end-tag, text or element "dateline", "figure", "foreign", "fw", "hi", "lb", "pb", "ref", "s", "signed" or "w"

<p>
  <lb/>Donc fau d'engueras trobar, per nostres jogadors:
  <list rend="bulleted">
    <item>-l'atge de la Marilis Orionaa</item>
    <item>-l'atge de la Rosina de Peira</item>
    <item>-l'atge dau Papet J</item>
  </list>
</p>

Could you please add this element to the ones allowed in <p> ?

Juliettejns commented 5 months ago

Hi Oriane, I already had this case in other corpus and did this:

<p>
  <lb/>Donc fau d'engueras trobar, per nostres jogadors:
</p>
  <list rend="bulleted">
    <item>-l'atge de la Marilis Orionaa</item>
    <item>-l'atge de la Rosina de Peira</item>
    <item>-l'atge dau Papet J</item>
  </list>

If you can't manage to do that transformation, I will change the ODD but I would prefer to keep the same structure for each corpora.

OrianeN commented 5 months ago

Thanks for your advice @Juliettejns, I should be able to do that !

OrianeN commented 5 months ago

C'est bon pour les listes en dehors des paragraphes, sauf quand c'est dans des <quote> où j'ai encore une erreur:

element "list" not allowed here; expected the element end-tag, text or element "label", "lb", "lg", "p", "quote" or "ref"

<post when="2007-12-01T10:54" who="#P-024" xml:id="post-t00406-03027" xml:lang="met-occ-lim">
  <certainty assertedValue="met-occ" degree="1.0" locus="value" match="@xml:lang" source="#fasttext-lid218e-post"/>
  <quote corresp="#post-t00406-03024">
    <p>
      <lb/>Sei lo sol a jugar o qué ?
      <lb/>Bon, vau perpausar :
    </p>
    <list rend="bulleted">
      <item>-Jali a 52 ans</item>
      <item>-Marilis a 48 ans</item>
      <item>-Rosina a 70 ans</item>
      <item>-Patric a 62 ans</item>
      <item>-Sicre a 60 ans</item>
    </list>
    <p>
      <lb/>Veiqui.
    </p>
  </quote>
Juliettejns commented 5 months ago

C'est ajouté et push dans github:)