Skip to content

Strategy for merging adjacent TEI elements (eg supplied)

How to deal with adjacent tags or so that the before and after typographic convention is merge ?

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

suppliedText1suppliedText2 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 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

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information