welfare-state-analytics / blm-corpus

Code and issues related to Bonniers litterära magasin at KB lab
0 stars 0 forks source link

Store the TOC in an XML-format for each BLM edition #36

Open MansMeg opened 10 months ago

MansMeg commented 10 months ago

After discussions we have the following suggestion on how to store the TOC in the epubs in a structured way:

<nav role="doc-toc" epub:type="toc" id="toc">
<h2>Table of Contents</h2>
<ol>
  <li articleid="uuid12837xxsadd"><title>Article 1</title><page>42</page></li>
  <li articleid="uuid1je239xsadd"><title>Article 2</title><author authorid="uuid092ej030ej02">Jorun Månsdotter</author><page>45</page></li>
  <li ><title>Anmälda böcker</title>
    <ol>
       <li articleid="uuid123kmemmadd"><title>Book 1</title><author>Svän Svensson</author><page>52</page></li>
       <li articleid="uuid32ne23k3e3d"><title>Book 2</title><author>Pelle Fredriksson</author><page>55</page></li>
    </ol>
  </li>
</ol>
</nav>

Two important points: