Discussion:
[Exist-open] mergin of tei adjacent tags (supplied for example)
Emmanuelle Morlock
2017-06-16 08:59:53 UTC
Permalink
Hi all


I’m using teiPublisher and my question concerns a use case for which the
TEI xml code.
How to deal with adjacent <supplied> tags or <unclear> so that the
before and after typographic convention is merge ?

for example, if <supplied> is defined in a <model> to be surrounded by
‘{‘ and ‘}’, two adjacent supplied:

<suppliedreason="lost">suppliedText1</supplied><suppliedreason="lost">suppliedText2</supplied>
would produce:
{suppliedText1}{suppliedText2}
what to do to have them merge:
{suppliedText1suppliedText2} or {suppliedText1 suppliedText2}

testing for a preceding and/or following supplied seems cumbersome and
sometimes there would be <lb/> or other milestones element that
shouldn’t stop the merge


Is it then possible to pass a transformation in a second step, once all
the tags have been transformed ?

thanks for your advice

Best
Emmanuelle
--
Emmanuelle Morlock
IE CNRS - Humanités numériques & TEI
UMR 5189 HISoMA
http://www.hisoma.mom.fr

06 85 84 69 16
@emma_morlock

----------------------------------------------
Membre du comité de coordination d'Humanistica,
association francophone des Humanités numériques
<http://www.humanisti.ca>

Page HiSoMA : http://www.hisoma.mom.fr/annuaire/morlock-emmanuelle
Page HAL : https://cv.archives-ouvertes.fr/emmanuelle-morlock
Loading...