Skip to content

Commit

Permalink
extracting for eltec
Browse files Browse the repository at this point in the history
  • Loading branch information
lb42 committed Nov 17, 2018
1 parent 699c6ac commit fc1cd01
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 0 deletions.
80 changes: 80 additions & 0 deletions P5/bleakHouse.tei
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<teiCorpus xmlns="http://www.tei-c.org/ns/1.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Bleak House : ELTeC edition</title>
<author>Dickens, Charles (1812-1870)</author>
<respStmt>
<resp>ELTeC conversion</resp>
<name>Lou Burnard</name>
</respStmt>
<respStmt>
<resp>Original TEI encoding</resp>
<name><name>Apex Data Services, Inc.</name><name>Andrew Leiter</name><name>, and Natalia Smith</name></name>
</respStmt>
</titleStmt>
<extent>
<measure unit="words"></measure>
</extent>
<publicationStmt>
<p>Published as part of ELTeC <date>22 Nov 2018</date></p>
</publicationStmt>
<sourceDesc>
<bibl><title>Bleak House</title>
<idno type="url">https://github.com/lb42/Dickens</idno>
<relatedItem type="copyText">
<bibl>
<title>Bleak House [monthly parts]</title>
<author>Charles Dickens</author>
<publisher>Bradbury &amp; Evans, Bouverie
Street.</publisher>
<date>1853</date>
</bibl>
</relatedItem></bibl>
</sourceDesc>
</fileDesc>
<encodingDesc n="eltec-1">
<p/>
</encodingDesc>
<profileDesc>
<langUsage>
<language ident="eng">English</language>
</langUsage>
<textDesc>
<authorGender xmlns="http://distantreading.net/eltec/ns" key="M"/>
<size xmlns="http://distantreading.net/eltec/ns" key="medium"/>
<canonicity xmlns="http://distantreading.net/eltec/ns" key="high"/>
<timeSlot xmlns="http://distantreading.net/eltec/ns" key="T1"/>
</textDesc>
</profileDesc>
<revisionDesc>
<change when="2018-08-12">LB auto convert from P4 to P5, and from P5 to ELTeC-1</change>
<change when="2002-09-23"> Natalia Smith, project manager,
finished TEI-conformant encoding and final proofing.</change>
<change when="2002-08-27">Andrew Leiter finished TEI/SGML
encoding</change>
<change when="2002-08-02">Apex Data Services, Inc. finished
transcribing the text.</change>
</revisionDesc>
</teiHeader>
<!-- bk ho -->
<xi:include href="/home/lou/Public/Dickens/P5/42045.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42046.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42047.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42048.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42049.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42050.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42051.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42052.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42053.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42054.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42055.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42056.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42057.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42058.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42059.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42060.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42061.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42062.xml"/>
<xi:include href="/home/lou/Public/Dickens/P5/42063.xml"/>
</teiCorpus>
57 changes: 57 additions & 0 deletions p5toeltec.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs h t xi"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:t="http://www.tei-c.org/ns/1.0"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns="http://www.tei-c.org/ns/1.0"
version="2.0">

<xsl:template match="/">
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="ENG18530" xml:lang="en">
<xsl:copy-of select="t:teiCorpus/t:teiHeader"/>

<text> <body> <xsl:for-each select="//t:TEI">
<div type="part">
<xsl:apply-templates select="//t:div[@type='chapter']"/>
</div>
</xsl:for-each> </body></text>
</TEI>
</xsl:template>

<xsl:template match="@rend|@part"/>
<xsl:template match="t:lb"/>
<xsl:template match="t:choice">
<corr>
<xsl:value-of select="t:corr"/>
</corr>
</xsl:template>

<xsl:template match="t:dateline|t:signed|t:salute">
<p><xsl:apply-templates/></p>
</xsl:template>

<xsl:template match="t:opener|t:closer|t:lg|t:div[@type='letter']">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="t:floatingText">
<xsl:apply-templates select="t:body/t:div"/>
</xsl:template>

<xsl:template match="t:q">
<quote><xsl:apply-templates/></quote>
</xsl:template>



<xsl:template match="* | @* | processing-instruction()">
<xsl:copy>
<xsl:apply-templates select="* | @* | processing-instruction() | comment() | text()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of select="."/>
<!-- could normalize() here -->
</xsl:template>
</xsl:stylesheet>

0 comments on commit fc1cd01

Please sign in to comment.