├── HTML
├── nettebed-markedup.html
└── nettlebed.html
├── Issues and resources for multilingual digital research.pdf
├── README.md
├── Text Modelling_TEI_22.pdf
├── XSLT_Exercises.zip
├── blank-tei-document.xml
├── comus-performance-text-ex.xml
├── dunciad_pg.png
├── intro-to-markup20.pdf
├── intro-to-tei-xml-2022.pdf
├── page139_pope_dunciad_1743.jpg
├── readings
├── GOLDFARB_sgml.pdf
└── HUITFELDT_markup.pdf
├── sample-xml.zip
├── slides
├── Intro-to-XML-and-TEI-2021.pdf
├── TEI_Names_c.pdf
├── TEI_core_module.pdf
└── msDesc.pdf
└── xpath-exercise-answers.md
/HTML/nettebed-markedup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
NETTLEBED MANOR
4 | In the mid-to-late 13th century Richard, earl of Cornwall, or his son Edmund, as lords of Benson, granted an independent manor of Nettlebed to John de Mandeville (d. 1275), who was succeeded by his under-age son John. He may have been deprived, however, since in 1284 the manor was apparently included in a grant by Edmund to Rewley abbey, along with his 'whole wood at Nettlebed' and two parks called Highmoor. The abbey acquired additional small parcels from two tenants-in-chief in 1303, when Edmunds widow Margaret claimed dower in a third of its alleged 2,000 a. of wood in Nettlebed and Benson.(fn. 1) In 1362 the abbey exchanged the manor for lands in Cornwall with Edward the Black Prince (d. 1376), whose widow Joan (d. 1385) was assigned it in dower. Thereafter it reverted to the Crown and was given to Richard II's chamber knight Sir John Salisbury, executed in 1387(fn. 2).
5 | In 1393 the manor was bestowed for life on Thomas Hatfield, a minor member of Richard II's household, and in 1414 on another royal servant, William Bangor. His life possession was confirmed in 1423 when his rent formed part of the dower awarded to Queen Catherine (d. 1437), and in 1443 Henry VI re-granted the manor in survivorship to Bangor and a royal porter,(fn. 3) John Watts. From the late 15th to the mid 16th century the Crown leased the demesne to unnamed farmers and appointed bailiffs to collect the rents, but in 1544–5 the manor was briefly granted to a London mercer, and in 1547 to Thomas Seymour, Baron Seymour of Sudeley. On his fall in 1549 it was granted to William Grey (d. 1562), Baron Grey of Wilton, and John Bannaster, for their service against the Scots.
6 | Footnotes
7 |
13 |
14 |
--------------------------------------------------------------------------------
/HTML/nettlebed.html:
--------------------------------------------------------------------------------
1 |
2 | NETTLEBED MANOR
3 | In the mid-to-late 13th century Richard, earl of Cornwall, or his son Edmund, as lords of Benson, granted an independent manor of Nettlebed to John de Mandeville (d. 1275), who was succeeded by his under-age son John. He may have been deprived, however, since in 1284 the manor was apparently included in a grant by Edmund to Rewley abbey, along with his 'whole wood at Nettlebed' and two parks called Highmoor. The abbey acquired additional small parcels from two tenants-in-chief in 1303, when Edmunds widow Margaret claimed dower in a third of its alleged 2,000 a. of wood in Nettlebed and Benson.(fn. 1) In 1362 the abbey exchanged the manor for lands in Cornwall with Edward the Black Prince (d. 1376), whose widow Joan (d. 1385) was assigned it in dower. Thereafter it reverted to the Crown and was given to Richard II's chamber knight Sir John Salisbury, executed in 1387(fn. 2).
4 | In 1393 the manor was bestowed for life on Thomas Hatfield, a minor member of Richard II's household, and in 1414 on another royal servant, William Bangor. His life possession was confirmed in 1423 when his rent formed part of the dower awarded to Queen Catherine (d. 1437), and in 1443 Henry VI re-granted the manor in survivorship to Bangor and a royal porter,(fn. 3) John Watts. From the late 15th to the mid 16th century the Crown leased the demesne to unnamed farmers and appointed bailiffs to collect the rents, but in 1544–5 the manor was briefly granted to a London mercer, and in 1547 to Thomas Seymour, Baron Seymour of Sudeley. On his fall in 1549 it was granted to William Grey (d. 1562), Baron Grey of Wilton, and John Bannaster, for their service against the Scots.
5 | Footnotes
6 |
13 |
14 |
--------------------------------------------------------------------------------
/Issues and resources for multilingual digital research.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/Issues and resources for multilingual digital research.pdf
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # TextEncoding
2 | Text Encoding for Ancient and Modern Literature, Languages and History
3 |
4 | For course information including links to materials such as software, videos and a slideshow, please see the wiki on this repo.
5 |
--------------------------------------------------------------------------------
/Text Modelling_TEI_22.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/Text Modelling_TEI_22.pdf
--------------------------------------------------------------------------------
/XSLT_Exercises.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/XSLT_Exercises.zip
--------------------------------------------------------------------------------
/blank-tei-document.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 |
9 | Title
10 |
11 |
12 | Publication Information
13 |
14 |
15 | Information about the source
16 |
17 |
18 |
19 |
20 |
21 | Some text here.
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/comus-performance-text-ex.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 |
6 |
7 |
8 |
9 | A Mask Presented at Ludlow Castle, 1634
10 | John Milton
11 |
12 |
13 | Performance text demo for LRBS-DHRH-EpiDoc TEI workshop (February 2022).
14 |
15 |
16 | John Milton Reading Room
17 | [https://milton.host.dartmouth.edu/reading_room/comus/text.shtml](https://milton.host.dartmouth.edu/reading_room/comus/text.shtml)
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 | The Persons
26 |
27 | The attendant Spirit afterwards in the habit of Thyrsis
28 | Comus with his crew
29 | The Lady
30 | 1. Brother
31 | 2. Brother
32 | Sabrina, the Nymph
33 |
34 |
35 |
36 |
37 | The cheif persons which presented, were
38 | The Lord Bracly,
39 | Mr. Thomas Egerton, his Brother,
40 | The Lady Alice Egerton.
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | The first Scene discovers a wilde Wood.
49 | The attendant Spirit descends or enters.
50 |
51 |
52 | Before the starry threshold of Joves Court
53 | My mansion is, where those immortal shapes
54 | Of bright aëreal Spirits live insphear'd
55 | In Regions milde of calm and serene Ayr,
56 | Above the smoak and stirr of this dim spot,
57 | Which men call Earth, and with low-thoughted care
58 | Confin'd, and pester'd in this pin-fold here,
59 | Strive to keep up a frail, and Feaverish being
60 | Unmindfull of the crown that Vertue gives
61 | After this mortal change, to her true Servants
62 | Amongst the enthron'd gods on Sainted seats.
63 | Yet som there be that by due steps aspire
64 | To lay their just hands on that Golden Key
65 | That ope's the Palace of Eternity:
66 | To such my errand is, and but for such,
67 | I would not soil these pure Ambrosial weeds,
68 | With the rank vapours of this Sin-worn mould.
69 |
70 |
71 |
72 |
73 |
74 | Co.
75 | What chance good Lady hath bereft you thus?
76 |
77 |
78 |
79 | La.
80 | Dim darknes, and this heavy Labyrinth.
81 |
82 |
83 | Co.
84 | Could that divide you from neer-ushering guides?
85 |
86 | La.
87 | They left me weary on a grassie terf.
88 |
89 |
90 |
91 |
92 | Eld. Bro.
93 | Ile hallow,
94 | If he be friendly he comes well, if not,
95 | Defence is a good cause, and Heav'n be for us.
96 |
97 | The attendant Spirit habited like a Shepherd.
98 |
99 |
100 | That hallow I should know, what are you? speak;
101 | Com not too neer, you fall on iron stakes else.
102 |
103 |
104 |
105 | Spir.
106 | What voice is that, my young Lord? speak agen.
107 |
108 | 2 Bro.
109 | O brother, 'tis my fathers Shepherd sure.
110 |
111 |
112 | Eld. Bro.
113 |
114 | Thyrsis? Whose artful strains have oft delaid
115 | The huddling brook to hear his madrigal,
116 | And sweeten'd every muskrose of the dale,
117 | How cam'st thou here good Swain? hath any ram
118 | Slip't from the fold, or young Kid lost his dam,
119 | Or straggling weather the pen't flock forsook?
120 | How couldst thou find this dark sequester'd nook?
121 |
122 |
123 |
124 |
125 |
126 |
127 |
--------------------------------------------------------------------------------
/dunciad_pg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/dunciad_pg.png
--------------------------------------------------------------------------------
/intro-to-markup20.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/intro-to-markup20.pdf
--------------------------------------------------------------------------------
/intro-to-tei-xml-2022.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/intro-to-tei-xml-2022.pdf
--------------------------------------------------------------------------------
/page139_pope_dunciad_1743.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/page139_pope_dunciad_1743.jpg
--------------------------------------------------------------------------------
/readings/GOLDFARB_sgml.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/readings/GOLDFARB_sgml.pdf
--------------------------------------------------------------------------------
/readings/HUITFELDT_markup.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/readings/HUITFELDT_markup.pdf
--------------------------------------------------------------------------------
/sample-xml.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/sample-xml.zip
--------------------------------------------------------------------------------
/slides/Intro-to-XML-and-TEI-2021.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/slides/Intro-to-XML-and-TEI-2021.pdf
--------------------------------------------------------------------------------
/slides/TEI_Names_c.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/slides/TEI_Names_c.pdf
--------------------------------------------------------------------------------
/slides/TEI_core_module.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/slides/TEI_core_module.pdf
--------------------------------------------------------------------------------
/slides/msDesc.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SASDigitalHumanitiesTraining/TextEncoding/72cf19198ccd8037f9673bbb80c0f109cbf1f35d/slides/msDesc.pdf
--------------------------------------------------------------------------------
/xpath-exercise-answers.md:
--------------------------------------------------------------------------------
1 | # XPath exercises answers
2 |
3 | ## 1. Path expressions
4 |
5 | - Write an absolute path that finds all speech elements
6 |
7 | `/TEI/text/body/div/div/sp`
8 |
9 | - Write an absolute path that finds all 'role' attribute values in the cast list
10 |
11 | `/TEI/text/front/div/castList/castItem/@type`
12 |
13 | - Write a relative path that finds all speaker elements
14 |
15 | `//speaker`
16 |
17 | - Write an relative path that finds all who attributes
18 |
19 | `//@who`
20 |
21 | ## 2. Axis expressions
22 |
23 | - Write an axis expression that finds all sibling elements of second-level divs
24 |
25 | `//div/div[self::* or following-sibling::div]`
26 |
27 | - Write an axis expression that finds all parent nodes of stage elements
28 |
29 | `//stage/parent::*`
30 |
31 | - Write an axis expression that finds all speeches that come before or after a Hamlet speech.
32 |
33 | `//sp[@who="Hamlet"]/following-sibling::sp[1] | preceding-sibling::sp[1]`
34 |
35 | ## 3. Predicates
36 |
37 | - Find all speech elements for all speakers except Hamlet
38 |
39 | `//sp[not(@who='Hamlet')]`
40 | - Find all speech elements by Hamlet and Ophelia
41 |
42 | `//sp[@who='Hamlet'] | //sp[@who='Ophelia']` or `//sp[@who=('Hamlet', 'Ophelia')]`
43 |
44 | - Find the last line of each speech by Ophelia
45 |
46 | `//sp[@who='Ophelia']/l[last()]`
47 |
48 | ## 4. Functions
49 |
50 | - Write a function to count speakers
51 |
52 | `count(//speaker)`
53 |
54 | - Write a function to list only the distinct speakers (so a list of the speakers)
55 |
56 | `distinct-values(//speaker)`
57 |
58 | - Write a function to return all lines in speeches that contain the string ‘Hamlet’, (except speaker elements)
59 |
60 | `//sp/l[contains(., 'Hamlet')]`
61 |
62 | - Find the string length of each of Hamlet’s speeches.
63 |
64 | `//sp[@who='Hamlet']/l ! string-length(.)`
65 |
66 | - Write a function to return all first lines of speeches greater than 100 characters
67 |
68 | `//l[1][string-length() gt 100]`
69 |
70 | - Calculate the average character count of Hamlet’s speeches.
71 |
72 | `avg(//sp[@who='Hamlet']/l ! string-length(.))`
73 |
74 | - List the distinct values of each speaker (i.e. list of characters) in Act 1
75 |
76 | `distinct-values(//body/div[1]//speaker)`
77 |
78 | ## XPath builder exercise
79 |
80 | - Use the previous expression to build a list separated by commas
81 |
82 | ```
83 | //body/div[1]//speaker
84 | => distinct-values()
85 | => sort()
86 | => string-join(', ')
87 | ```
88 |
89 | - Write an XPath expression to list an alphabetised list of words spoken by Ophelia that came after ‘I’.
90 |
91 | ```
92 | //sp[@who='Ophelia']/(l | ab)
93 | [tokenize(.)[1] eq 'I']
94 | /tokenize(.)[2]
95 | => distinct-values()
96 | => sort()
97 | ```
98 |
--------------------------------------------------------------------------------