srophe / britishLibrary

Copy of the Srophe application for British Library MSS
GNU General Public License v3.0
0 stars 2 forks source link

Display for tei:choice and child elements #328

Closed wlpotter closed 5 months ago

wlpotter commented 5 months ago

Text may be tagged with a tei:choice element and a set of the following pairs of elements:

We would like what is in the first of these pairs (sic, orig, or abbr) to display as normal. The second of these pairs (corr, reg, or expan) should be displayed inside square brackets, '[' and ']'.

Example (from https://bl.syriac.uk/ms/1147#msPart1, item number 7):

<rubric xml:lang="syr">ܡܛܠ ܩܘ̈ܦܐ ܕܗ̣ܘ 
  <choice>
    <sic>ܒܘܙܢܢܗ̇</sic>
    <corr resp="https://bl.syriac.uk/documentation/editors.xml#wwright">ܒܘܙܝܢܗ</corr>
  </choice>
</rubric>

Display as: "ܡܛܠ ܩܘ̈ܦܐ ܕܗ̣ܘ ܒܘܙܢܢܗ̇ [ܒܘܙܝܢܗ]"

wsalesky commented 5 months ago

Done: https://github.com/srophe/britishLibrary/issues/328