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

Update post-TEIGarage stylesheet to handle complex figures #49

Open
juliaflanders opened this issue Aug 18, 2023 · 0 comments
Open

Update post-TEIGarage stylesheet to handle complex figures #49

juliaflanders opened this issue Aug 18, 2023 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@juliaflanders
Copy link
Contributor

juliaflanders commented Aug 18, 2023

Currently, when an submitted article Word file includes multiple image files for a single figure, TEIGarage does a reasonable thing and encodes them as a <table> inside a <figure> (see example below), with the individual images placed within individual <cell> elements.

The post-TEIGarage.xsl stylesheet currently removes this markup and also eliminates the link to the image file(s).

If we decide we want to retain the ability to accommodate multiple image files in a single figure (see issue 48), then we need to update the post-TEIGarage stylesheet to handle the resulting encoding correctly.

For an example article, see OJS1532 (which was encoded as 000695.xml).

<figure> <table rend="rules"> <row> <cell style="text-align: left;"><figure> <graphic n="1002" width="4.881077777777778cm" height="6.911163888888889cm" url="media/image2.jpeg" rend="inline"> <desc>Une image contenant texte Description générée automatiquement</desc> </graphic> </figure></cell> <cell style="text-align: left;"><figure> <graphic n="1003" width="5.032691666666667cm" height="6.910916666666667cm" url="media/image3.jpeg" rend="inline"> <desc>Une image contenant texte Description générée automatiquement</desc> </graphic> </figure></cell> <cell style="text-align: left;"><figure> <graphic n="1004" width="4.769802777777778cm" height="6.910916666666667cm" url="media/image4.jpeg" rend="inline"> <desc>Une image contenant texte Description générée automatiquement</desc> </graphic> </figure></cell> </row> </table> <head>Figure 2: Example of chapbooks with the same title: The first two documents (José María Moreno ed., s.d.) are different printings of the same text. The last one contains a different text, but the title is the same (José María Moreno ed., s.d.).</head> </figure>

@juliaflanders juliaflanders added bug Something isn't working enhancement New feature or request labels Aug 18, 2023
@juliaflanders juliaflanders self-assigned this Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant