Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes markup issues #391

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
27 changes: 27 additions & 0 deletions .github/workflows/xml-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,30 @@ jobs:
- uses: actions/checkout@v3
- run: sudo apt-get install -y moreutils parallel
- run: find APIS -name "*.xml" | parallel --gnu --will-cite -X -j8 -u "java -jar Validation/jing.jar Validation/EpiDoc/8.13/tei-epidoc.rng {}"
parse-xml:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install lxml
- uses: jannekem/run-python-script-action@v1
with:
script: |
from pathlib import Path
from lxml.etree import parse, XMLSyntaxError

encountered_errors = []
root_path = Path.cwd()

for file in root_path.rglob("*.xml"):
try:
parse(str(file))
except XMLSyntaxError as e:
encountered_errors.append(f"{file.relative_to(root_path)}: {e.msg}")

if encountered_errors:
print("\nInvalid XML encodings were found:")
print("---------------------------------")
print("\n".join(encountered_errors) + "\n")
raise SystemExit(1)
2 changes: 1 addition & 1 deletion APD/apd12t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="12" xml:id="pap(B)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="12" xml:id="pap-B" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd16t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="16" xml:id="pap(A)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="16" xml:id="pap-A" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd17t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="17" xml:id="pap(C)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="17" xml:id="pap-C" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd18t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="18" xml:id="pap(D)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="18" xml:id="pap-D" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd21t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="21" xml:id="pap(E)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="21" xml:id="pap-E" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd22t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="22" xml:id="pap(F)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="22" xml:id="pap-F" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd23t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="23" xml:id="pap(G)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="23" xml:id="pap-G" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
4 changes: 2 additions & 2 deletions APD/apd24t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="24" xml:id="pap(H)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="24" xml:id="pap-H" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand All @@ -27,7 +27,7 @@
<text>
<body>
<div type="edition"><ab>
<lb n="1"/> <lb n="2"/> للمسكين قمح الرحمن ربع <lb n="3"/> بن ισιου سل<gap reason="illegible" precision="low" extent="3"/> <lb n="4"/><supplied reason="lost" cert="high"> </supplied>وهو ـ<supplied reason="lost" cert="high">ـ</supplied>يحضر الرّحمن ورق <app type="BL"><lem resp="APD">هذا </lem><rdg resp="AK">إشقوه</rdg></app> <lb n="5"/><expan> من ن</unclear>صير <del rend="erasure" status="unremarkable">س</del><gap reason="illegible" precision="low" extent="3"/> وللفقراء <gap reason="lost" extent="3" unit="character" precision="low" /> μουχ<supplied reason="abbreviation" cert="high">ι</supplied>νταλη</expan> بسم موش <lb n="6"/> لعمران لها للمسكين <lb n="7"/> وقيراط وردني إحدى <lb n="8"/> </ab></div>
<lb n="1"/> <lb n="2"/> للمسكين قمح الرحمن ربع <lb n="3"/> بن ισιου سل<gap reason="illegible" precision="low" extent="3"/> <lb n="4"/><supplied reason="lost" cert="high"> </supplied>وهو ـ<supplied reason="lost" cert="high">ـ</supplied>يحضر الرّحمن ورق <app type="BL"><lem resp="APD">هذا </lem><rdg resp="AK">إشقوه</rdg></app> <lb n="5"/><unclear> من ن</unclear>صير <del rend="erasure" status="unremarkable">س</del><gap reason="illegible" precision="low" extent="3"/> وللفقراء <gap reason="lost" extent="3" unit="character" precision="low" /> μουχ<supplied reason="abbreviation" cert="high">ι</supplied><expan>νταλη</expan> بسم موش <lb n="6"/> لعمران لها للمسكين <lb n="7"/> وقيراط وردني إحدى <lb n="8"/> </ab></div>
<div type="transliteration"><ab>
</ab></div>
<div type="translation"><ab>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd25t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="25" xml:id="pap(I)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="25" xml:id="pap-I" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd26t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="26" xml:id="pap(K)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="26" xml:id="pap-K" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd27t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="27" xml:id="pap(L)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="27" xml:id="pap-L" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
2 changes: 1 addition & 1 deletion APD/apd32t.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.stoa.org/epidoc/schema/latest/tei-epidoc.rng" type="xml"?>

<TEI xmlns="http://www.tei-c.org/ns/1.0" n="32" xml:id="pap(2)" xml:lang="en">
<TEI xmlns="http://www.tei-c.org/ns/1.0" n="32" xml:id="pap-2" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
Expand Down
Loading