Difference between revisions of "Lists (ePistolarium)"

From XML
Jump to: navigation, search
(Use label in item, not as sibling.)
(Remove label example)
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
Lists are encoded with the <code>list</code>, <code>item</code>, and <code>label</code> elements.
 
Lists are encoded with the <code>list</code>, <code>item</code>, and <code>label</code> elements.
  
<code>list</code> contains any sequence of items organized as a list.
+
* <code>list</code> contains any sequence of items organized as a list;
  
<code>item</code> contains one component of a list.
+
* <code>item</code> contains one component of a list;
  
<code>label</code> contains any label or heading used to identify part of a text, typically but not exclusively in a list or glossary.
+
* <code>label</code> contains any label or heading used to identify part of a text, typically but not exclusively in a list or glossary.
  
There should be no bullet, number or other label before an item, unless it is explicitly indicated.
+
There should be no bullet, number or other label before an item, unless explicitly indicated by means of a <code>label</code>.
  
  
Example: https://test.epistolarium.huygens.knaw.nl/documents/a4e640b1-bd41-4c34-b7ac-a1441c9e97c1
+
Example: https://correspondence.huygens.knaw.nl/documents/a4e640b1-bd41-4c34-b7ac-a1441c9e97c1
(list without labels)
+
(list)
  
 
<pre>
 
<pre>
Line 28: Line 28:
 
</pre>
 
</pre>
  
 
+
Example: https://correspondence.huygens.knaw.nl/documents/2b46b15c-e62f-4cf5-9ed6-e1645d2af0ad
Example: https://test.epistolarium.huygens.knaw.nl/documents/9acac4d5-ee13-4201-b007-553e4bbebafb
+
(list with labels)
+
 
+
<pre>
+
<p>Et voijci les avantages de la menue sur les grosles:</p>
+
<p><list>
+
<item><label>1.</label> J'en suis mieux esclairé.</item>
+
<item><label>2.</label> J'en consume moins de cire.</item>
+
<item><label>3.</label> J'en sens moins de fumée.</item>
+
<item><label>4.</label> J'en ay moins d'embaras.</item>
+
<item><label>5.</label> Ma lumiere est moins agitée, et pour article capital,</item>
+
<item><label>6.</label> Je n'aij que faire de moucher ma chandelle.</item>
+
</list></p>
+
<p>Si vous en voulez estre: considerez la simplicité...</p>
+
</pre>
+
Note that we exclusively use <code>label</code> inside <code>item</code>.
+
 
+
 
+
Example: https://test.epistolarium.huygens.knaw.nl/documents/2b46b15c-e62f-4cf5-9ed6-e1645d2af0ad
+
 
(groups a series of mathematical formulas)
 
(groups a series of mathematical formulas)
  
Line 60: Line 41:
 
<p>Si ergo haberem numerum <hi rend="italic">y</hi> dierum integrarum, ...</p>
 
<p>Si ergo haberem numerum <hi rend="italic">y</hi> dierum integrarum, ...</p>
 
</pre>
 
</pre>
 +
 +
TODO: Implement TEI approach (and Huygens standard): <label> and <item> are siblings, don't use <label in <item>.

Latest revision as of 14:56, 30 January 2018

Lists are encoded with the list, item, and label elements.

  • list contains any sequence of items organized as a list;
  • item contains one component of a list;
  • label contains any label or heading used to identify part of a text, typically but not exclusively in a list or glossary.

There should be no bullet, number or other label before an item, unless explicitly indicated by means of a label.


Example: https://correspondence.huygens.knaw.nl/documents/a4e640b1-bd41-4c34-b7ac-a1441c9e97c1 (list)

<p>Voici certains livres que je voudrais examiner
<list>
<item>Rebenstock Sermons mensuels de Luther</item>
<item>Mathaesius, Vie de Martin Luther</item>
<item>Jérôme Bolsec, Vita Calvini, Bezae etc.</item>
<item>Simon Starovolscius, Elogia centum illustrium Polonorum.</item>
<item>Caspar Chicocius Entretiens.</item>
<item>Bibliotheca Romana de Prospero Mandosio Rome 1682 4°</item>
<item>Vitae clarissimorum jurisconsultorum éditées avec des notes par Frideric Jacob Leickherr, Juris Utriusque Doctor Leipzig 1686 8°</item>
</list></p>
<p>Je n'ai guère espoir avec ce livre d'éviter la rencontre de tout obstacle...</p>

Example: https://correspondence.huygens.knaw.nl/documents/2b46b15c-e62f-4cf5-9ed6-e1645d2af0ad (groups a series of mathematical formulas)

<p>... Haec adde 7/6<hi rend="italic">y</hi>, fit</p>
<p><list>
<item>7/6<hi rend="italic">y</hi> + 7/48 <hi rend="italic">z</hi> ∞ 86.</item>
<item>56<hi rend="italic">y</hi> + 7<hi rend="italic">z</hi> ∞ 4128.</item>
<item>7<hi rend="italic">z</hi> ∞ 4128 - 56<hi rend="italic">y.</hi></item>
<item><hi rend="italic">z</hi> ∞ 589 5/7 - 8 <hi rend="italic">y.</hi></item>
</list></p>
<p>Si ergo haberem numerum <hi rend="italic">y</hi> dierum integrarum, ...</p>

TODO: Implement TEI approach (and Huygens standard): <label> and <item> are siblings, don't use <label in <item>.