-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from Capitains/empty_reference_master
EmptyReference exception along with unit tests
- Loading branch information
Showing
6 changed files
with
120 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
""" | ||
|
||
__version__ = "2.0.6" | ||
__version__ = "2.0.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml-model href="http://www.stoa.org/epidoc/schema/8.19/tei-epidoc.rng" | ||
schematypens="http://relaxng.org/ns/structure/1.0"?><?xml-model href="http://www.stoa.org/epidoc/schema/8.19/tei-epidoc.rng" | ||
schematypens="http://purl.oclc.org/dsdl/schematron"?> | ||
<TEI xmlns="http://www.tei-c.org/ns/1.0"> | ||
<teiHeader type="text"> | ||
<fileDesc> | ||
<titleStmt> | ||
<title>Epigrammata</title> | ||
<author>Martial</author> | ||
<sponsor>Perseus Project, Tufts University</sponsor> | ||
<principal>Gregory Crane</principal> | ||
</titleStmt> | ||
<publicationStmt> | ||
<publisher>Trustees of Tufts University</publisher> | ||
<pubPlace>Medford, MA</pubPlace> | ||
<authority>Perseus Project</authority> | ||
</publicationStmt> | ||
<sourceDesc default="false"> | ||
<bibl default="false"> | ||
<title>M. Valerii Martialis Epigrammaton libri / recognovit W. Heraeus</title> | ||
<author>Martial</author> | ||
<editor role="editor">Wilhelm Heraeus<!--, 1862-1938 (main editor)--></editor> | ||
<editor role="editor">Jacobus Borovskij<!-- (added corrections in 1976, more than 30 years before 2011)--></editor> | ||
<pubPlace>Leipzig</pubPlace> | ||
<date>1925/1976</date> | ||
</bibl> | ||
</sourceDesc> | ||
</fileDesc> | ||
<encodingDesc> | ||
<refsDecl n="CTS"> | ||
<cRefPattern n="line" | ||
matchPattern="(\w+).(\w+).(\w+)" | ||
replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:l[@n='$3'])"> | ||
<p>This pointer pattern extracts book and poem and line</p> | ||
</cRefPattern> | ||
<cRefPattern n="poem" | ||
matchPattern="(\w+).(\w+)" | ||
replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"> | ||
<p>This pointer pattern extracts book and poem</p> | ||
</cRefPattern> | ||
<cRefPattern n="book" | ||
matchPattern="(\w+)" | ||
replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"> | ||
<p>This pointer pattern extracts book</p> | ||
</cRefPattern> | ||
</refsDecl> | ||
<refsDecl xml:id="TEI.2"> | ||
<refState unit="book"/> | ||
<refState unit="poem"/> | ||
<refState unit="line"/> | ||
</refsDecl> | ||
</encodingDesc> | ||
<profileDesc> | ||
<langUsage default="false"> | ||
<language ident="eng">English</language> | ||
<language ident="grc">Latin</language> | ||
</langUsage> | ||
</profileDesc> | ||
<revisionDesc> | ||
<change when="2008-01-01" who="Gregory Crane">Initial Markup</change> | ||
<change when="2015-03-06" who="Thibault Clérice">converted to EpiDoc/CTS</change> | ||
</revisionDesc> | ||
</teiHeader> | ||
<text n="urn:cts:latinLit:phi1294.phi002.perseus-lat2" | ||
|
||
xml:id="stoa0045.stoa0"> | ||
<body> | ||
<div type="edition" n="urn:cts:latinLit:phi1294.phi002.perseus-lat2" xml:lang="lat"> | ||
<div type="textpart" subtype="book" n="1"> | ||
<div type="textpart" subtype="poem" n="pr"> | ||
<l n="">Spero me secutum in libellis meis tale temperamen-</l> | ||
</div> | ||
</div> | ||
<div type="textpart" subtype="book" n="2"> | ||
<div type="textpart" subtype="poem" n=""> | ||
<l n="1">Spero me secutum in libellis meis tale temperamen-</l> | ||
</div> | ||
</div> | ||
<div type="textpart" subtype="book" n=""> | ||
<div type="textpart" subtype="poem" n="1"> | ||
<l n="1">Spero me secutum in libellis meis tale temperamen-</l> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</text> | ||
</TEI> | ||
|