Skip to content

Commit

Permalink
tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
lb42 committed Jul 21, 2022
1 parent 113de76 commit 6ebbc4f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions Scripts/ossianUp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
saxon -xi driver-vol1.tei Scripts/ossianUp.xsl >ossianedition6a.xml
xsltproc Scripts/NUIG/myDefault.xsl ossianedition6a.xml > ed6.html
cat HTML-prefix.htm ed6.html HTML-suffix.htm > ossianedition6a.html
rm ed6.html
saxon -xi driver-vol2.tei Scripts/ossianUp.xsl >ossianedition6b.xml
xsltproc Scripts/NUIG/myDefault.xsl ossianedition6b.xml > ed6.html
cat HTML-prefix.htm ed6.html HTML-suffix.htm > ossianedition6b.html
5 changes: 4 additions & 1 deletion ossianUp.xsl → Scripts/ossianUp.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
xmlns:e="http://distantreading.net/eltec/ns" exclude-result-prefixes="xs e" version="2.0">
<!-- TODO
move <pb/> outside <p>
remove comments and associated whitespace
-->
<xsl:template match="/ | @* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="comment()"/>

<xsl:template match="TEI/text/group">
<!-- selects volumes -->
<xsl:apply-templates select="text"/>
Expand Down
3 changes: 1 addition & 2 deletions V1/tei/prelims.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@
of the winds. Like two ſtars were her radiant eyes, like two ſtars that riſe on the deep, when
dark tumult embroils the night. Pleaſant are their beams aloft, as ſtately they aſcend the
ſkies.</p>
<p>
<!-- NOR -->
<pb xml:id="P73100009" facs="../img/1773-038.pbm"/>
<p><pb xml:id="P73100009" facs="../img/1773-038.pbm"/>
<!-- PREFACE, xi --> <hi rend="sc">Nor</hi> Odin forgot, in aught, the maid. Her form ſcarce
equalled her lofty mind. Awe moved around her ſtately ſteps. Heroes loved—but ſhrunk away in
their fears. Yet midſt the pride of all her charms, her heart was ſoft, and her ſoul was kind.
Expand Down
2 changes: 0 additions & 2 deletions ossianUp.sh

This file was deleted.

0 comments on commit 6ebbc4f

Please sign in to comment.