-
Notifications
You must be signed in to change notification settings - Fork 0
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 #8 from freud-digital/dev
merging class=ff paragraphs with previous paragraph, adapting tests
- Loading branch information
Showing
6 changed files
with
58 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ exclude = | |
build | ||
dist | ||
env | ||
venv |
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
import lxml.etree as ET | ||
|
||
|
||
def make_pb(n, faks_url, faks_id): | ||
def make_pb(json): | ||
""" returns a tei:pb | ||
""" | ||
pb_el = ET.Element("{http://www.tei-c.org/ns/1.0}pb") | ||
pb_el.attrib['n'] = f"{n}" | ||
pb_el.attrib['facs'] = f"{faks_url}" | ||
pb_el.attrib['n'] = f"{json['page_nr']}" | ||
pb_el.attrib[ | ||
"{http://www.w3.org/XML/1998/namespace}id" | ||
] = f"faks__{faks_id}" | ||
] = f"page__{json['id']}" | ||
|
||
return pb_el |
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