Skip to content

Commit

Permalink
Adds refsDecl for section.subsection.paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
cwulfman committed Jul 2, 2024
1 parent 775ed55 commit 452d522
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions data/abbott/grammar/grammar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@
</correction>
</editorialDecl>
<refsDecl n="CTS">
<cRefPattern matchPattern="(\w+)"
replacementPattern="//tei:div[@subtype='paragraph' and @n=$1">
<cRefPattern matchPattern="(\w).(\w+).(\w+)"
replacementPattern="//tei:div[@subtype='section' and @n=$1]/tei:div[@subtype='subsection and @n=$2]/tei:div[@subtype='paragraph' and @n=$3]">
<p>This pointer extracts paragraph number.</p>
</cRefPattern>
<cRefPattern matchPattern="para (\w+)"
replacementPattern="//tei:div[@subtype='paragraph' and @n=$1]">
<p>This pointer extracts paragraph number.</p>
</cRefPattern>
</refsDecl>
Expand Down

0 comments on commit 452d522

Please sign in to comment.