DCLP / dclpxsltbox

Sandbox for development, testing, and review of XSLT for DCLP
http://dclp.github.io/dclpxsltbox/
1 stars 5 forks source link

Add "Line written centered" to Leiden+ grammar #296

Open leoba opened 7 years ago

leoba commented 7 years ago

Add "Line written centered" to Leiden+ grammar.

paregorios commented 7 years ago

Desired Leiden+:

(3, centered)

Desired XML:

<lb rend="centered"/>
paregorios commented 7 years ago

I cannot find any DDB or DCLP content that currently contains the XML markup in question, so I cannot test to see what the XML output is. I looked for xml files in which this regex matched: 'rend\s*=\s*"centered'. This raises the question whether the recommended XML encoding (above) is TEI/EpiDoc appropriate.

Thoughts about "correct" XML to use? @leoba @wsalesky @hcayless @gabrielbodard @jds15 ?

wsalesky commented 7 years ago

Wouldn't the rend='centered' make more sense on a tei:ab element?

jcowey commented 7 years ago

The tei:ab element is not suitable in almost all cases. What we are having to deal with is lines in which the content (a letter, a word, several words) are centered. The next line within the same ab will then be normal, i.e. not centered and starting on the left hand side of the papyrus.

jcowey commented 7 years ago

Since we have: <lb n="2" rend="perpendicular"/> <lb n="8" rend="inverse"/> both of which refer to how the content of the line is rendered on the original, it seems to me that <lb n="1" rend="centered"/> would be consistent.