Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphic to <figure> #25

Open
Giorgiaagostini opened this issue Apr 19, 2023 · 1 comment
Open

Graphic to <figure> #25

Giorgiaagostini opened this issue Apr 19, 2023 · 1 comment

Comments

@Giorgiaagostini
Copy link

Giorgiaagostini commented Apr 19, 2023

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

@liladude
Copy link

liladude commented May 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants