-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsro-transcription.odd
517 lines (440 loc) · 25.5 KB
/
sro-transcription.odd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:s="http://purl.oclc.org/dsdl/schematron" xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
<title>SRO Transcription Schema</title>
</titleStmt>
<publicationStmt>
<p>Unpublished first draft </p>
</publicationStmt>
<sourceDesc>
<p>Derived from an analysis of 4 files from ./</p>
</sourceDesc>
</fileDesc>
<encodingDesc>
<projectDesc><p>Stationers' Register Online</p></projectDesc>
</encodingDesc>
</teiHeader>
<text>
<body>
<div>
<head>Encoding Guidelines for SRO Transcription schema</head>
<p>Encoding guidelines could be placed here</p>
</div>
<div>
<head>Formal Schema Declarations</head>
<schemaSpec ident="SRO-transcription" start="TEI ">
<moduleRef key="tei"/>
<classRef key="model.persNamePart"/>
<!-- Names and Dates -->
<moduleRef key="namesdates" include="orgName persName surname forename placeName"/>
<dataSpec ident="persName-Role">
<desc>A datatype for persName/@role</desc>
<content>
<valList type="closed">
<valItem ident="enterer"><desc>The name is the person entering a copy</desc></valItem>
<valItem ident="licenser"><desc>The name is the person licensing the entering a copy</desc></valItem>
<valItem ident="stationer"><desc>The name is a stationer</desc></valItem>
<valItem ident="non-stationer"><desc>The name is a non-stationer</desc></valItem>
<valItem ident="authoriser"><desc>The name is the person authorising the entering a copy</desc></valItem>
<valItem ident="warden"><desc>The name is a non-stationer</desc></valItem>
<valItem ident="master"><desc>The name is a master</desc></valItem>
<valItem ident="unknown"><desc>The name is a role that is unknown</desc></valItem>
<valItem ident="other"><desc>The name is a role you wish to record but not catered for</desc></valItem>
</valList>
</content>
</dataSpec>
<dataSpec ident="orgName-Role">
<desc>A datatype for orgName/@role</desc>
<content>
<valList type="closed">
<valItem ident="enterer"><desc>The organisational name is the person entering a copy</desc></valItem>
</valList>
</content>
</dataSpec>
<elementSpec ident="persName" mode="change">
<attList>
<attDef ident="role" mode="change">
<datatype minOccurs="0" maxOccurs="5">
<dataRef key="persName-Role"/>
</datatype>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="orgName" mode="change">
<attList>
<attDef ident="role" mode="change">
<datatype minOccurs="0" maxOccurs="5">
<dataRef key="orgName-Role"/>
</datatype>
</attDef>
</attList>
</elementSpec>
<!--Core-->
<moduleRef key="core"
include="p bibl foreign hi desc gap unclear num date list item head note pb lb respStmt resp title choice abbr expan corr sic orig reg add ref del editor publisher"/>
<!-- provide valList for num/@type -->
<elementSpec ident="num" mode="change">
<attList>
<attDef ident="type" mode="change">
<valList mode="add" type="closed">
<valItem ident="halfpence"><desc>The number is a half penny</desc></valItem>
<valItem ident="pence"><desc>The number is pence</desc></valItem>
<valItem ident="poundsAsPence"><desc>The number is pounds represented in a 'value' attribute as pence</desc></valItem>
<valItem ident="shillingsAsPence"><desc>The number is shillings represented in a 'value' attribute as pence </desc></valItem>
<valItem ident="totalPence"><desc>The number provides in a 'value' attribute the total number of pence of its children</desc></valItem>
<valItem ident="totalEntryPence"><desc>The total number of pence in the entry as a whole</desc></valItem>
<valItem ident="matchedNumber"><desc>The number has been matched in conversion</desc></valItem>
<valItem ident="notMatched"><desc>The number was not matched for automatic conversion</desc></valItem>
<valItem ident="works"><desc>The number is a count of the number of works mentioned in an entry</desc></valItem>
<valItem ident="enterers"><desc>The number is a count of the number people entering works in an entry</desc></valItem>
<valItem ident="other"><desc>The number is some other type of number</desc></valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="note" mode="change">
<constraintSpec ident="status-note-in-ab" scheme="isoschematron" >
<constraint>
<s:report test="parent::tei:ab[@type='metadata'] and @type='status' and
not(@subtype='other'
or @subtype='annotated'
or @subtype='cancelled'
or @subtype='entered'
or @subtype='incomplete'
or @subtype='notPrinted'
or @subtype='reassigned'
or @subtype='shared'
or @subtype='stock'
or @subtype='unknown'
)">If a status note appears inside a metadata block it must have a subtype attribute of 'annotated', 'cancelled', 'entered', 'incomplete', 'notPrinted', 'reassigned', 'shared', 'stock', 'unknown' or 'other'. Once edited an entry should not have an 'unknown' status.</s:report>
</constraint>
</constraintSpec>
<attList>
<attDef ident="anchored" mode="delete"/>
<attDef ident="targetEnd" mode="delete"/>
<attDef ident="target" mode="delete"/>
<attDef ident="type" mode="change">
<valList mode="add" type="semi">
<valItem ident="register"><desc>The note is from the register</desc></valItem>
<valItem ident="arber"><desc>The note is provided by Arber</desc></valItem>
<valItem ident="editorial"><desc>The note is editorial and provided by the project</desc></valItem>
<valItem ident="status"><desc>The note is about the status of an entry</desc></valItem>
<valItem ident="other"><desc>The note is some other type of note</desc></valItem>
</valList>
</attDef>
<!-- add list of @type values: register, arber, editorial, other -->
</attList>
</elementSpec>
<elementSpec ident="gap" mode="change">
<attList>
<attDef ident="hand" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="unclear" mode="change">
<attList>
<attDef ident="hand" mode="delete"/>
</attList>
</elementSpec>
<!--Header-->
<moduleRef key="header"
include="teiHeader fileDesc titleStmt funder principal publicationStmt distributor availability licence sourceDesc encodingDesc projectDesc revisionDesc change idno"/>
<!-- provide valList for num/@type -->
<elementSpec ident="idno" mode="change">
<attList>
<attDef ident="type" mode="change">
<valList mode="add" type="semi">
<valItem ident="ArberRef"><desc>The idno is a reference to Arber</desc></valItem>
<valItem ident="RegisterRef"><desc>The idno is a reference to the Register</desc></valItem>
<valItem ident="RegisterID"><desc>The idno is an ID of the Register page</desc></valItem>
<valItem ident="other"><desc>The idno is some other type of reference</desc></valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<!--Transcr-->
<moduleRef key="transcr" include="fw space am ex supplied"/>
<!--Checking module linking-->
<moduleRef key="linking" include="ab anchor seg"/>
<elementSpec ident="anchor" mode="change">
<attList>
<attDef ident="type" mode="change">
<valList mode="add" type="semi">
<valItem ident="noteStart"><desc>This is the startpoint of a note marked by anchor elements</desc></valItem>
<valItem ident="noteEnd"><desc>This is the endpoint of a note marked by anchor elements</desc></valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="seg" mode="change">
<attList>
<attDef ident="type" mode="change">
<valList mode="add" type="semi">
<valItem ident="fee"><desc>This segment of text encloses a fee paid</desc></valItem>
<valItem ident="notFee"><desc>This segment of text encloses something that is not a fee paid</desc></valItem>
<valItem ident="other"><desc>This segment of text encloses something else</desc></valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="ab" mode="change">
<constraintSpec ident="ab-in-entry" scheme="isoschematron" >
<constraint>
<s:report test="not(@type='metadata') and ancestor::tei:div[@type='entry']">If 'ab' appears inside an entry div it must have a type attribute of 'metadata'.</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="ab-not-in-entry" scheme="isoschematron" >
<constraint>
<s:report test="@type='metadata' and not(ancestor::tei:div[@type='entry'])">If 'ab' has a metadata type attribute value it must appear inside an entry div.</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="date-in-ab" scheme="isoschematron">
<constraint>
<s:report test="@type='metadata' and ancestor::tei:div[@type='entry'] and not(tei:date)">Metadata block must contain a date.</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="arber-in-ab" scheme="isoschematron">
<constraint>
<s:report test="@type='metadata' and ancestor::tei:div[@type='entry'] and not(tei:idno/@type='ArberRef')">Metadata block must contain a reference to Arber in an 'idno' of type 'ArberRef'.</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="register-in-ab" scheme="isoschematron">
<constraint>
<s:report test="@type='metadata' and ancestor::tei:div[@type='entry'] and not(tei:idno/@type='RegisterRef')">Metadata block must contain a reference to the Register in an 'idno' of type 'RegisterRef'.</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="register-in-ab" scheme="isoschematron">
<constraint>
<s:report test="@type='metadata' and ancestor::tei:div[@type='entry'] and not(tei:idno/@type='RegisterID')">Metadata block must contain a reference to the Register ID in an 'idno' of type 'RegisterID'.</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="status-in-ab" scheme="isoschematron">
<constraint>
<s:report test="@type='metadata' and ancestor::tei:div[@type='entry'] and not(tei:note/@type='status')">Metadata block must contain a note of type 'status'.</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="status-in-ab" scheme="isoschematron">
<constraint>
<s:report test="@type='metadata' and ancestor::tei:div[@type='entry'] and tei:note/@type='status' and not(tei:note/@subtype) ">Metadata block must contain a note with a subtype.</s:report>
</constraint>
</constraintSpec>
<attList>
<attDef ident="type" mode="change">
<valList mode="change" type="semi">
<valItem ident="metadata"><desc>The ab is a metadata block containing information about the entry</desc></valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<!--Textstructure-->
<moduleRef key="textstructure" include="TEI text body div"/>
<elementSpec ident="TEI" mode="change">
<attList>
<attDef ident="version" mode="delete"/>
<attDef ident="resp" mode="delete"/>
<attDef ident="type" mode="delete"/>
<attDef ident="subtype" mode="delete"/>
<attDef ident="rend" mode="delete"/>
<attDef ident="cert" mode="delete"/>
<attDef ident="facs" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="text" mode="change">
<attList>
<attDef ident="resp" mode="delete"/>
<attDef ident="type" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="body" mode="change">
<attList>
<attDef ident="resp" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="div" mode="change">
<constraintSpec ident="entry-in-entry" scheme="isoschematron" >
<constraint>
<s:report test="@type='entry' and .//tei:div[@type='entry']">You may not hve an entry inside another entry</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="entry-needs-ID" scheme="isoschematron" >
<constraint>
<s:report test="@type='entry' and not(@xml:id)">You must have an xml:id attribute on an entry</s:report>
</constraint>
</constraintSpec>
<constraintSpec ident="entry-needs-ab" scheme="isoschematron" >
<constraint>
<s:report test="@type='entry' and not(tei:ab[@type='metadata'])">You must have an ab element with a type attribute of 'metadata' in any entry</s:report>
</constraint>
</constraintSpec>
<attList>
<attDef ident="type" mode="change" usage="req">
<valList mode="add" type="closed">
<valItem ident="accounts"><desc>The division contains accounts</desc></valItem>
<valItem ident="apprentices"><desc>The division contains information about apprenticies</desc></valItem>
<valItem ident="charges"><desc>The division contains charges</desc></valItem>
<valItem ident="dinners"><desc>The division contains information about dinners</desc></valItem>
<valItem ident="entries"><desc>The division contains registration entries</desc></valItem>
<valItem ident="entry"><desc>The division contains a single registration entry</desc></valItem>
<valItem ident="entryGrp"><desc>The division contains a group of registration entries</desc></valItem>
<valItem ident="fines"><desc>The division contains a information about fines</desc></valItem>
<valItem ident="freemen"><desc>The division contains information about freemen</desc></valItem>
<valItem ident="notEntries"><desc>The division contains a group of material that is not an entry</desc></valItem>
<valItem ident="notEntry"><desc>The division contains material that is not an entry</desc></valItem>
<valItem ident="other"><desc>The division contains other material</desc></valItem>
<valItem ident="payments"><desc>The division contains payments</desc></valItem>
<valItem ident="receipts"><desc>The division contains receipts</desc></valItem>
<valItem ident="folio"><desc>The division contains entries on a folio</desc></valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<!-- Various classes -->
<!-- no @change -->
<classSpec ident="att.global.change" type="atts" mode="delete"/>
<!-- only @rend -->
<classSpec ident="att.global.rendition" type="atts" mode="change">
<attList>
<attDef ident="rendition" mode="delete"/>
<attDef ident="style" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.global.linking" type="atts" mode="change">
<attList>
<attDef ident="synch" mode="delete"/>
<attDef ident="sameAs" mode="delete"/>
<attDef ident="copyOf" mode="delete"/>
<attDef ident="next" mode="delete"/>
<attDef ident="prev" mode="delete"/>
<attDef ident="exclude" mode="delete"/>
<attDef ident="select" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.global.source" type="atts" mode="delete"/>
<classSpec ident="att.global" type="atts" mode="change">
<attList>
<attDef ident="xml:base" mode="delete"/>
<attDef ident="xml:space" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.declaring" type="atts" mode="delete"/>
<classSpec ident="att.declarable" type="atts" mode="delete"/>
<classSpec ident="att.written" type="atts" mode="delete"/>
<classSpec ident="att.divLike" type="atts" mode="delete"/>
<classSpec ident="att.datable.iso" type="atts" mode="delete"/>
<classSpec ident="att.datable.custom" type="atts" mode="delete"/>
<classSpec ident="att.editLike" type="atts" mode="delete"/>
<classSpec ident="att.fragmentable" type="atts" mode="delete"/>
<classSpec ident="att.datable" type="atts" mode="change">
<attList>
<attDef ident="calendar" mode="delete"/>
<attDef ident="period" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.dimensions" type="atts" mode="change">
<attList>
<attDef ident="unit" mode="delete"/>
<attDef ident="quantity" mode="delete"/>
<attDef ident="extent" mode="delete"/>
<attDef ident="precision" mode="delete"/>
<attDef ident="scope" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.damaged" type="atts" mode="change">
<attList>
<attDef ident="degree" mode="delete"/>
<attDef ident="group" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.divLike" type="atts" mode="change">
<attList>
<attDef ident="org" mode="delete"/>
<attDef ident="sample" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.editLike" type="atts" mode="change">
<attList>
<attDef ident="evidence" mode="delete"/>
<attDef ident="instant" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.naming" type="atts" mode="change">
<attList>
<attDef ident="nymRef" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.pointing" type="atts" mode="change">
<attList>
<attDef ident="targetLang" mode="delete"/>
<attDef ident="evaluate" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.pointing.group" type="atts" mode="change">
<attList>
<attDef ident="domains" mode="delete"/>
<attDef ident="targFunc" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.segLike" type="atts" mode="change">
<attList>
<attDef ident="function" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.timed" type="atts" mode="change">
<attList>
<attDef ident="start" mode="delete"/>
<attDef ident="end" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.personal" type="atts" mode="change">
<attList>
<attDef ident="full" mode="delete"/>
<attDef ident="sort" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.canonical" type="atts" mode="change">
<attList>
<attDef ident="key" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.datcat" type="atts" mode="delete"/>
<classSpec ident="att.segLike" type="atts" mode="delete"/>
<classSpec ident="att.ranging" type="atts" mode="change">
<attList>
<attDef ident="confidence" mode="delete"/>
</attList>
</classSpec>
<classSpec ident="att.sortable" type="atts" mode="delete"/>
<classSpec ident="att.spanning" type="atts" mode="delete"/>
<classSpec ident="att.timed" type="atts" mode="delete"/>
<classSpec ident="att.global.responsibility" type="atts" mode="change">
<attList>
<attDef ident="resp" mode="delete"/>
<attDef ident="resp" mode="add">
<datatype minOccurs="0" maxOccurs="1">
<dataRef key="global-resp" />
</datatype>
</attDef>
</attList>
</classSpec>
<dataSpec ident="global-resp">
<desc>A datatype for @resp</desc>
<content>
<valList type="closed">
<valItem ident="#arber"><desc>The person responsible for this was Arber</desc></valItem>
<valItem ident="#editor"><desc>The person responsible for this was an SRO editor</desc></valItem>
<valItem ident="#register"><desc>The register was the source for this</desc></valItem>
<valItem ident="#JC"><desc>The person responsible for this was James Cummings</desc></valItem>
<valItem ident="#GB"><desc>The person responsible for this was Giles Bergel</desc></valItem>
<valItem ident="#IG"><desc>The person responsible for this was Ian Gadd</desc></valItem>
<valItem ident="#BH"><desc>The person responsible for this was Ben Higgins</desc></valItem>
<valItem ident="#EW"><desc>The person responsible for this was Eleanor Warmington</desc></valItem>
<valItem ident="#EB"><desc>The person responsible for this was Emma Bashforth</desc></valItem>
</valList>
</content>
</dataSpec>
</schemaSpec>
</div>
</body>
</text>
</TEI>