-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathalto-2-0.xsd
714 lines (714 loc) · 33.1 KB
/
alto-2-0.xsd
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
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
<?xml version="1.0" encoding="UTF-8"?>
<!-- ALTO: Analyzed Layout and Text Object -->
<!-- Originally created during the EU-funded Project METAe, the Metadata Engine Project (2001 - 2003), by Alexander Egger (1), Birgit Stehno (2) and Gregor Retti (2), (1) University of Graz and (2) University of Innsbruck, Austria with contributions of Ralph Tiede, CCS GmbH, Germany -->
<!-- Prepared for the Library of Congress by Ralph Tiede, CCS GmbH, with the assistance of Justin Littman (Library of Congress). -->
<!-- Version 2.0 2010-01-11T11:54:13.418-05:00 -->
<!-- December 14, 2004 -->
<!-- Change History -->
<!-- June 22, 2004: Version finalized for docWORKS/METAe -->
<!-- November 19, 2004: Modifications requested by Justin Littman -->
<!-- Modifications of November 19, 2004:
1. add "Description" element
2. change "InnerMargin/OuterMargin" to "LeftMargin/RightMargin", add "POSITION" attribute to "PAGE" element
3. add "PROCESSING" attribute to "PAGE" element
4. internal changes to validate with Xerces parser
5. define fontstyles by enumerations
6. change "WC" (word confidence) attribute to xsd:float in range of "0" to "1".
7. Add "ALTERNATIVE" als childs to "STRING" element
8. Add "language" attribute to "Textblock" and "STRING" element
-->
<!-- Modifications of December 02, 2004:
1. fixed problem with multiple use of blockgroup
2. add measurement enumeration 'inch1200'
-->
<!-- Modifications of December 14, 2004:
1. "FILEID" (attribute of "ComposedBlock"): change type from xsd:IDREF to xsd:string
2. include minor changes requested by JDL
3. change "ZORDER" to "IDNEXT" (attribute of "BlockType")
-->
<!-- Modifications of February 24, 2006:
1. ACCURACY attribute added to PAGE element to store information on OCR accuracy
2. CS attribute added to TEXTLINE element to indicate manual correction status
-->
<!-- Modifications of June 20, 2007 (version 1.3):
1. Adaption of xlink namespace and schema location to prevent conflicts on XSL transformations in combination with used namespace in original METS file
-->
<!-- Modifications of August 27, 2007 (version 1.4):
1. add "QUALITY_DETAIL" attribute to "PAGE" element (gives more details about the page quality, is a free string comparing with QUALITY attribute which is a restrictive one)
2. add "Cover" to "POSITION" attribute of "PAGE" element
3. specification of interpretation of confidence values (CC, WC, PC and ACCURACY)
-->
<!-- Modifications of August 7, 2009:
1. Change namespace from old CCS URI to LC-based URI.
2. Use standard LC XLink Schema.
3. Push version to 2.0 to reflect change in maintenance agency.
4. Remove CCS copyright statement.
5. Rollback to model used in 1.4 schema except with the changes itemized in 1-4 of this change note. An incorrect version of the 2.0 alpha schema was public until 2010-01-11. The incorrect version was a derivative of the Library of Congress's custom ALTO XML Schema that introduced new elements and attributes.
-->
<!-- Modifications of January 11, 2010:
1. Rollback to model used in 1.4 schema except with the changes itemized in 1-4 of the previous change note of August 7, 2009. An incorrect version of the 2.0 alpha schema was public until 2010-01-11. The incorrect version was a derivative of the Library of Congress's custom ALTO XML Schema that introduced new elements and attributes that extended the 1.4 model prior to editorial board approval.
-->
<xsd:schema targetNamespace="http://www.loc.gov/standards/alto/ns-v2#" xmlns="http://www.loc.gov/standards/alto/ns-v2#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.loc.gov/standards/xlink/xlink.xsd"/>
<xsd:element name="alto">
<xsd:annotation>
<xsd:documentation>ALTO (analyzed layout and text object) stores layout information and
OCR recognized text of pages of any kind of printed documents like books, journals and newspapers.
ALTO is a standardized XML format to store layout and content information.
It is designed to be used as an extension schema to METS (Metadata Encoding and Transmission Standard),
where METS provides metadata and structural information while ALTO contains content and physical information.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Description" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Describes general settings of the alto file like measurement units and metadata</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MeasurementUnit" minOccurs="0">
<xsd:annotation>
<xsd:documentation>All measurement values inside the alto file except fontsize are related to this unit. The default is 1/10 of mm</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="pixel"/>
<xsd:enumeration value="mm10"/>
<xsd:enumeration value="inch1200"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="sourceImageInformation" type="sourceImageInformationType" minOccurs="0"/>
<xsd:element name="OCRProcessing" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="ocrProcessingType">
<xsd:attribute name="ID" type="xsd:ID" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Styles" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Styles define properties of layout elements. A style defined in a parent element is used as default style for all related children elements. </xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="TextStyle" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>A text style defines font properties of text. </xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="ID" type="xsd:ID"/>
<xsd:attributeGroup ref="formattingAttributeGroup"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="ParagraphStyle" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>A paragraph style defines formatting properties of text blocks.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="ID" type="xsd:ID" use="required"/>
<xsd:attribute name="ALIGN" use="optional">
<xsd:annotation>
<xsd:documentation>Indicates the alignement of the paragraph. Could be left, right, center or justify.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Left"/>
<xsd:enumeration value="Right"/>
<xsd:enumeration value="Center"/>
<xsd:enumeration value="Block"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="LEFT" type="xsd:float" use="optional">
<xsd:annotation>
<xsd:documentation>Left indent of the paragraph in relation to the column.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="RIGHT" type="xsd:float" use="optional">
<xsd:annotation>
<xsd:documentation>Right indent of the paragraph in relation to the column.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="LINESPACE" type="xsd:float" use="optional">
<xsd:annotation>
<xsd:documentation>Line spacing between two lines of the paragraph. Measurement calculated from baseline to baseline.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="FIRSTLINE" type="xsd:float" use="optional">
<xsd:annotation>
<xsd:documentation>Indent of the first line of the paragraph if this is different from the other lines. A negative value indicates an indent to the left, a positive value indicates an indent to the right.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Layout">
<xsd:annotation>
<xsd:documentation>The root layout element.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Page" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>One page of a book or journal.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="TopMargin" type="PageSpaceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The area between the top line of print and the upper edge of the leaf. It may contain page number or running title.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="LeftMargin" type="PageSpaceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The area between the printspace and the left border of a page. May contain margin notes.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="RightMargin" type="PageSpaceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The area between the printspace and the right border of a page. May contain margin notes.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="BottomMargin" type="PageSpaceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The area between the bottom line of letterpress or writing and the bottom edge of the leaf. It may contain a page number, a signature number or a catch word.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="PrintSpace" type="PageSpaceType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Rectangle covering the printed area of a page. Page number and running title are not part of the print space. </xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:ID" use="required"/>
<xsd:attribute name="PAGECLASS" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Any user-defined class like title page.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
<xsd:attribute name="HEIGHT" type="xsd:int" use="optional"/>
<xsd:attribute name="WIDTH" type="xsd:int" use="optional"/>
<xsd:attribute name="PHYSICAL_IMG_NR" type="xsd:int" use="required">
<xsd:annotation>
<xsd:documentation>The number of the page within the document.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="PRINTED_IMG_NR" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>The page number that is printed on the page.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="QUALITY" use="optional">
<xsd:annotation>
<xsd:documentation>Gives brief information about original page quality</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="OK"/>
<xsd:enumeration value="Missing"/>
<xsd:enumeration value="Missing in original"/>
<xsd:enumeration value="Damaged"/>
<xsd:enumeration value="Retained"/>
<xsd:enumeration value="Target"/>
<xsd:enumeration value="As in original"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="QUALITY_DETAIL" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Gives more details about the original page quality, since QUALITY attribute gives only brief and restrictive information</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="POSITION" use="optional">
<xsd:annotation>
<xsd:documentation>Position of the page. Could be lefthanded, righthanded, cover, foldout or single if it has no special position.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Left"/>
<xsd:enumeration value="Right"/>
<xsd:enumeration value="Foldout"/>
<xsd:enumeration value="Single"/>
<xsd:enumeration value="Cover"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="PROCESSING" type="xsd:IDREF" use="optional">
<xsd:annotation>
<xsd:documentation>A link to the processing description that has been used for this page.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="ACCURACY" type="xsd:float" use="optional">
<xsd:annotation>
<xsd:documentation>Estimated percentage of OCR Accuracy in range from 0 to 100 </xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="PC" use="optional">
<xsd:annotation>
<xsd:documentation>Page Confidence: Confidence level of the ocr for this page. A value between 0 (unsure) and 1 (sure). </xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:float">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:group name="BlockGroup">
<xsd:annotation>
<xsd:documentation>Group of available block types</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="TextBlock" type="TextBlockType">
<xsd:annotation>
<xsd:documentation>A block of text.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Illustration" type="IllustrationType">
<xsd:annotation>
<xsd:documentation>A picture or image.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GraphicalElement" type="GraphicalElementType">
<xsd:annotation>
<xsd:documentation>A graphic used to separate blocks. Usually a line or rectangle.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ComposedBlock" type="ComposedBlockType">
<xsd:annotation>
<xsd:documentation>A block that consists of other blocks</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
</xsd:group>
<xsd:complexType name="BlockType">
<xsd:annotation>
<xsd:documentation>Base type for any kind of block on the page.</xsd:documentation>
</xsd:annotation>
<xsd:sequence minOccurs="0">
<xsd:element name="Shape" type="ShapeType"/>
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:ID" use="required"/>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS"/>
<xsd:attribute name="HEIGHT" type="xsd:int" use="required"/>
<xsd:attribute name="WIDTH" type="xsd:int" use="required"/>
<xsd:attribute name="HPOS" type="xsd:int" use="required"/>
<xsd:attribute name="VPOS" type="xsd:int" use="required"/>
<xsd:attribute name="ROTATION" type="xsd:float" use="optional">
<xsd:annotation>
<xsd:documentation>Tells the rotation of the block e.g. text or illustration. The value is in degree counterclockwise.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="IDNEXT" type="xsd:IDREF" use="optional">
<xsd:annotation>
<xsd:documentation>The next block in reading sequence on the page.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="xlink:simpleLink"/>
</xsd:complexType>
<xsd:complexType name="StringType" mixed="false">
<xsd:annotation>
<xsd:documentation>A sequence of chars. Strings are separated by white spaces or hyphenation chars.</xsd:documentation>
</xsd:annotation>
<xsd:sequence minOccurs="0">
<xsd:element name="ALTERNATIVE" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Any alternative for the word.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="PURPOSE" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Identifies the purpose of the alternative.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:ID" use="optional"/>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
<xsd:attribute name="HEIGHT" type="xsd:float" use="optional"/>
<xsd:attribute name="WIDTH" type="xsd:float" use="optional"/>
<xsd:attribute name="HPOS" type="xsd:float" use="optional"/>
<xsd:attribute name="VPOS" type="xsd:float" use="optional"/>
<xsd:attribute name="CONTENT" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="STYLE" type="fontStylesType" use="optional"/>
<xsd:attribute name="SUBS_TYPE" use="optional">
<xsd:annotation>
<xsd:documentation>Type of the substitution (if any).</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="HypPart1"/>
<xsd:enumeration value="HypPart2"/>
<xsd:enumeration value="Abbreviation"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="SUBS_CONTENT" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Content of the substiution.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="WC" use="optional">
<xsd:annotation>
<xsd:documentation>Word Confidence: Confidence level of the ocr for this string. A value between 0 (unsure) and 1 (sure). </xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:float">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="CC" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Confidence level of each character in that string. A list of numbers, one number between 0 (sure) and 9 (unsure) for each character.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="PageSpaceType">
<xsd:annotation>
<xsd:documentation>A region on a page</xsd:documentation>
</xsd:annotation>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:group ref="BlockGroup"/>
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:ID" use="optional"/>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
<xsd:attribute name="HEIGHT" type="xsd:float" use="required"/>
<xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
</xsd:complexType>
<xsd:simpleType name="PointsType">
<xsd:annotation>
<xsd:documentation>A list of points</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:complexType name="ShapeType">
<xsd:annotation>
<xsd:documentation>Describes the bounding shape of a block, if it is not rectangular.</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="Polygon" type="PolygonType"/>
<xsd:element name="Ellipse" type="EllipseType"/>
<xsd:element name="Circle" type="CircleType"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="PolygonType">
<xsd:annotation>
<xsd:documentation>A polygon shape.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="POINTS" type="PointsType" use="required"/>
</xsd:complexType>
<xsd:complexType name="EllipseType">
<xsd:annotation>
<xsd:documentation>An ellipse shape.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="HPOS"/>
<xsd:attribute name="VPOS"/>
<xsd:attribute name="HLENGTH"/>
<xsd:attribute name="VLENGTH"/>
</xsd:complexType>
<xsd:complexType name="CircleType">
<xsd:annotation>
<xsd:documentation>A circle shape.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="HPOS"/>
<xsd:attribute name="VPOS"/>
<xsd:attribute name="RADIUS"/>
</xsd:complexType>
<xsd:attributeGroup name="formattingAttributeGroup">
<xsd:annotation>
<xsd:documentation>Formatting attributes. Note that these attributes are assumed to be inherited from ancestor elements of the document hierarchy.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="FONTFAMILY" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>The font name.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="FONTTYPE" type="fontTypeType" use="optional"/>
<xsd:attribute name="FONTWIDTH" type="fontWidthType" use="optional"/>
<xsd:attribute name="FONTSIZE" type="xsd:float" use="required">
<xsd:annotation>
<xsd:documentation>The font size, in points (1/72 of an inch).</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="FONTCOLOR" type="xsd:hexBinary" use="optional">
<xsd:annotation>
<xsd:documentation>Font color as RGB value</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="FONTSTYLE" type="fontStylesType" use="optional"/>
</xsd:attributeGroup>
<xsd:simpleType name="fontTypeType">
<xsd:annotation>
<xsd:documentation>Serif or Sans-Serif</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="serif"/>
<xsd:enumeration value="sans-serif"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="fontWidthType">
<xsd:annotation>
<xsd:documentation>fixed or proportional</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="proportional"/>
<xsd:enumeration value="fixed"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="sourceImageInformationType">
<xsd:annotation>
<xsd:documentation>Information to identify the image file from which the OCR text was created.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="fileName" type="xsd:string" minOccurs="0"/>
<xsd:element name="fileIdentifier" type="fileIdentifierType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="fileIdentifierType">
<xsd:annotation>
<xsd:documentation>A unique identifier for the image file. This is drawn from MIX.</xsd:documentation>
<xsd:documentation> This identifier must be unique within the local system. To facilitate file sharing or interoperability with other systems, fileIdentifierLocation may be added to designate the system or application where the identifier is unique.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="fileIdentifierLocation">
<xsd:annotation>
<xsd:documentation>A location qualifier, i.e., a namespace.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="ocrProcessingType">
<xsd:annotation>
<xsd:documentation>Information on how the text was created, including preprocessing, OCR processing, and postprocessing steps.</xsd:documentation>
<xsd:documentation>Where possible, this draws from MIX's change history.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="preProcessingStep" type="processingStepType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="ocrProcessingStep" type="processingStepType"/>
<xsd:element name="postProcessingStep" type="processingStepType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="processingStepType">
<xsd:annotation>
<xsd:documentation>A processing step.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="processingDateTime" type="dateTimeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Date or DateTime the image was processed.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="processingAgency" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Identifies the organizationlevel producer(s) of the processed image.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="processingStepDescription" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>An ordinal listing of the image processing steps performed. For example, "image despeckling."</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="processingStepSettings" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>A description of any setting of the processing application. For example, for a multi-engine OCR application this might include the engines which were used. Ideally, this description should be adequate so that someone else using the same application can produce identical results.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="processingSoftware" type="processingSoftwareType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="processingSoftwareType">
<xsd:annotation>
<xsd:documentation>Information about a software application. Where applicable, the preferred method for determining this information is by selecting Help --> About.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="softwareCreator" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The name of the organization or company that created the application.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="softwareName" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The name of the application.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="softwareVersion" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The version of the application.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="applicationDescription" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>A description of any important characteristics of the application, especially for non-commercial applications. For example, if a non-commercial application is built using commercial components, e.g., an OCR engine SDK. Those components should be mentioned here.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="dateTimeType">
<xsd:union memberTypes="xsd:date xsd:dateTime xsd:gYear xsd:gYearMonth"/>
</xsd:simpleType>
<xsd:simpleType name="fontStylesType">
<xsd:annotation>
<xsd:documentation>List of any combination of font styles</xsd:documentation>
</xsd:annotation>
<xsd:restriction>
<xsd:simpleType>
<xsd:list>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="bold"/>
<xsd:enumeration value="italics"/>
<xsd:enumeration value="subscript"/>
<xsd:enumeration value="superscript"/>
<xsd:enumeration value="smallcaps"/>
<xsd:enumeration value="underline"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:list>
</xsd:simpleType>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="ComposedBlockType">
<xsd:annotation>
<xsd:documentation>A block that consists of other blocks</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="BlockType">
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:group ref="BlockGroup"/>
</xsd:sequence>
<xsd:attribute name="TYPE" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>A user defined string to identify the type of composed block (e.g. table, advertisement, ...)</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="FILEID" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>An ID to link to an image which contains only the composed block. The ID and the file link is defined in the related METS file.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="IllustrationType">
<xsd:annotation>
<xsd:documentation>A picture or image.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="BlockType">
<xsd:attribute name="TYPE" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>A user defined string to identify the type of illustration like photo, map, drawing, chart, ...</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="FILEID" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>A link to an image which contains only the illustration.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="GraphicalElementType">
<xsd:annotation>
<xsd:documentation>A graphic used to separate blocks. Usually a line or rectangle. </xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="BlockType"/>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="TextBlockType">
<xsd:annotation>
<xsd:documentation>A block of text.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="BlockType">
<xsd:sequence minOccurs="0">
<xsd:element name="TextLine" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>A single line of text.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:sequence maxOccurs="unbounded">
<xsd:element name="String" type="StringType"/>
<xsd:element name="SP" minOccurs="0">
<xsd:annotation>
<xsd:documentation>A white space.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="ID" type="xsd:ID" use="optional"/>
<xsd:attribute name="WIDTH" type="xsd:float" use="optional"/>
<xsd:attribute name="HPOS" type="xsd:float" use="optional"/>
<xsd:attribute name="VPOS" type="xsd:float" use="optional"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:element name="HYP" minOccurs="0">
<xsd:annotation>
<xsd:documentation>A hyphenation char. Can appear only at the end of a line.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="WIDTH" type="xsd:float" use="optional"/>
<xsd:attribute name="HPOS" type="xsd:float" use="optional"/>
<xsd:attribute name="VPOS" type="xsd:float" use="optional"/>
<xsd:attribute name="CONTENT" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:ID"/>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
<xsd:attribute name="HEIGHT" type="xsd:float" use="required"/>
<xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
<xsd:attribute name="BASELINE" type="xsd:float" use="optional"/>
<xsd:attribute name="CS" type="xsd:boolean" use="optional">
<xsd:annotation>
<xsd:documentation>Correction Status. Indicates whether manual correction has been done or not.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="language" type="xsd:language" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>