Skip to content

Commit

Permalink
Merge pull request #2778 from OpenGreekAndLatin/textual_errors
Browse files Browse the repository at this point in the history
(textual_errors) work on inconsistent refsDecls
  • Loading branch information
lcerrato authored Feb 18, 2024
2 parents 110f156 + 7aa2694 commit 461f4b7
Show file tree
Hide file tree
Showing 20 changed files with 43 additions and 42 deletions.
4 changes: 2 additions & 2 deletions data/tlg0031/tlg002/tlg0031.tlg002.1st1K-cop1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
<p>This file encoded to comply with EpiDoc Guidelines and
Schema.<ref>http://sourceforge.net/p/epidoc/</ref></p>
<refsDecl n="CTS">
<cRefPattern n="verse" matchPattern="(.+)(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']//tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="verse" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
7 changes: 4 additions & 3 deletions data/tlg0065/tlg001/tlg0065.tlg001.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@


<refsDecl n="CTS">


<cRefPattern n="section" matchPattern="(.+).(.+)"
replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div/tei:div[@n='$1'])">
<cRefPattern n="section" matchPattern="(\.+).(\.+)"
replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])">
<p>This pointer pattern extracts sections</p>
</cRefPattern>

<cRefPattern n="chapter" matchPattern="(.+)"
<cRefPattern n="chapter" matchPattern="(\.+)"
replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])">
<p>This pointer pattern extracts chapters</p>

Expand Down
6 changes: 3 additions & 3 deletions data/tlg0086/tlg022/tlg0086.tlg022.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern n="section" matchPattern="(.+)(.+)(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:div[@n='$3'])"/>
<cRefPattern n="chapter" matchPattern="(.+)(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="section" matchPattern="(\.+).(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:div[@n='$3'])"/>
<cRefPattern n="chapter" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
4 changes: 2 additions & 2 deletions data/tlg0363/tlg001/tlg0363.tlg001.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ Collection Development</resp>
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern n="section" matchPattern="(.+)(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="section" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
4 changes: 2 additions & 2 deletions data/tlg0565/tlg001/tlg0565.tlg001.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern matchPattern="(.+)" n="chapter" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(.+)" n="book" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern matchPattern="(\.+).(\.+)" n="chapter" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\.+)" n="book" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
2 changes: 1 addition & 1 deletion data/tlg0616/tlg001/tlg0616.tlg001.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern matchPattern="(\w+)" n="section" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\w+).(\w+)" n="section" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\w+)" n="book" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
Expand Down
4 changes: 2 additions & 2 deletions data/tlg0643/tlg001/tlg0643.tlg001.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern n="line" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:l[@n='$2'])"/>
<cRefPattern n="section" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="line" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:l[@n='$2'])"/>
<cRefPattern n="section" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
4 changes: 2 additions & 2 deletions data/tlg1205/tlg002/tlg1205.tlg002.perseus-grc2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
</sourceDesc>
</fileDesc><encodingDesc>
<refsDecl n="CTS">
<cRefPattern n="section" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="section" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>

</encodingDesc><profileDesc>
Expand Down
2 changes: 1 addition & 1 deletion data/tlg1216/tlg001/tlg1216.tlg001.opp-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern matchPattern="(\w+)" n="section" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\w+).(\w+)" n="section" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\w+)" n="chapter" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
Expand Down
5 changes: 2 additions & 3 deletions data/tlg2001/tlg043/tlg2001.tlg043.1st1K-lat1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">

<cRefPattern n="paragraph" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="paragraph" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
4 changes: 2 additions & 2 deletions data/tlg2018/tlg002/tlg2018.tlg002.1st1K-eng1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern n="chapter" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="chapter" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
7 changes: 4 additions & 3 deletions data/tlg2018/tlg002/tlg2018.tlg002.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@
</fileDesc>
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern n="book" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div[@type='edition']/tei:div[@n='$1'])"/>
<refsDecl n="CTS">
<cRefPattern n="chapter" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down Expand Up @@ -11942,7 +11943,7 @@ reproduced in English, between λόγων “accounts”)</note>
<p>καὶ περὶ μὲν τοῦ Οὐλπιανοῦ τοσαῦτα ὁ
Διονύσιος· </p>
</div>
<div type="textpart" subtype="chapter" n="12"><p>XI. περὶ δὲ τοῦ κατ’ αὐτὸν διωγμοῦ <lb n="1"/>
<div type="textpart" subtype="chapter" n="11"><p>XI. περὶ δὲ τοῦ κατ’ αὐτὸν διωγμοῦ <lb n="1"/>
αφοδρότατα πνεύσαντος οἷα σὐν ἑτέροις ὁ αὐτὸς
διὰ τὴν εἰς τὸν τῶν ὅλων θεὸν εὐσέβειαν ὑπέατη,
δηλώσουσιν αἱ αὐτοῦ φωναὶ ἃς πρὸς Γερμανὸν
Expand Down
6 changes: 3 additions & 3 deletions data/tlg2018/tlg002/tlg2018.tlg002.1st1K-grc2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern n="section" matchPattern="(.+).(.+).(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:div[@n='$3'])"/>
<cRefPattern n="chapter" matchPattern="(.+).(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="section" matchPattern="(\.+).(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:div[@n='$3'])"/>
<cRefPattern n="chapter" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="book" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
4 changes: 2 additions & 2 deletions data/tlg2022/tlg003/tlg2022.tlg003.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern n="line" matchPattern="(.+)(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']//tei:l[@n='$2'])"/>
<cRefPattern n="section" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="line" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']//tei:l[@n='$2'])"/>
<cRefPattern n="section" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
4 changes: 2 additions & 2 deletions data/tlg2058/tlg001/tlg2058.tlg001.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern matchPattern="(.+)" n="paragraph" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(.+)" n="chapter" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern matchPattern="(\.+).(\.+)" n="paragraph" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\.+)" n="chapter" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
4 changes: 2 additions & 2 deletions data/tlg2200/tlg00543/tlg2200.tlg00543.opp-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
<p>The following text is encoded in accordance with EpiDoc standards and with the
CTS/CITE Architecture.</p>
<refsDecl n="CTS">
<cRefPattern n="section" matchPattern="(.+)(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="section" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>

Expand Down
2 changes: 1 addition & 1 deletion data/tlg3118/tlg001/tlg3118.tlg001.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern matchPattern="(\w+)" n="paragraph" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\w+).(\w+)" n="paragraph" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\w+)" n="book" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
Expand Down
6 changes: 3 additions & 3 deletions data/tlg4102/tlg011/tlg4102.tlg011.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@
<encodingDesc>
<p>The following text is encoded in accordance with EpiDoc standards and with the CTS/CITE Architecture.</p>
<refsDecl n="CTS">
<cRefPattern n="author" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:div[@n='$3'])"/>
<cRefPattern n="verse" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="author" matchPattern="(\.+).(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2']/tei:div[@n='$3'])"/>
<cRefPattern n="verse" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>

Expand Down
4 changes: 2 additions & 2 deletions data/tlg4102/tlg046/tlg4102.tlg046.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern n="verse" matchPattern="(.+)(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
<cRefPattern n="verse" matchPattern="(\.+).(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern n="chapter" matchPattern="(\.+)" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
<profileDesc>
Expand Down
2 changes: 1 addition & 1 deletion data/tlg5022/tlg002/tlg5022.tlg002.1st1K-grc1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<encodingDesc>
<p>Text encoded in accordance with the latest EpiDoc standards (January 2014)</p>
<refsDecl n="CTS">
<cRefPattern matchPattern="(\w+)(\w+)" n="section" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\w+).(\w+)" n="section" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1']/tei:div[@n='$2'])"/>
<cRefPattern matchPattern="(\w+)" n="book" replacementPattern="#xpath(/tei:TEI/tei:text/tei:body/tei:div/tei:div[@n='$1'])"/>
</refsDecl>
</encodingDesc>
Expand Down

0 comments on commit 461f4b7

Please sign in to comment.