page2tei icon indicating copy to clipboard operation
page2tei copied to clipboard

Graphic to <figure>

Open Giorgiaagostini opened this issue 2 years ago • 1 comments

Is it possible to show the regions marked in transkribus metadata as "selected element type: graphic" to appear in the <body> as <figure> ?

Giorgiaagostini avatar Apr 19 '23 09:04 Giorgiaagostini

Can you try adding

 <xd:doc>
    <xd:desc>create a figure for graphics</xd:desc>
    <xd:param name="numCurr"/>
  </xd:doc>
  <xsl:template match="p:GraphicRegion" mode="text">
    <xsl:param name="numCurr" tunnel="true" />
    <xsl:text>
      </xsl:text>
    <figure facs="#facs_{$numCurr}_{@id}">
      <graphic xml:id="#facs_{$numCurr}_{@id}" />
    </figure>
  </xsl:template>

after the TextRegion and before Table Region (453)? Not sure the content is correct, but it should give you a hint

liladude avatar May 11 '23 09:05 liladude