-
Notifications
You must be signed in to change notification settings - Fork 4
/
alto-4-0.xsd
1081 lines (1068 loc) · 52.2 KB
/
alto-4-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
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!-- ALTO: Analyzed Layout and Text Object -->
<!-- This document is available under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0 - https://creativecommons.org/licenses/by-sa/4.0/ ).
The ALTO Editorial Board has waived all rights to it worldwide under copyright law with confirmation of the original creating authors, including all related and neighboring rights, to the extent allowed by law.
For the full text see https://creativecommons.org/licenses/by-sa/4.0/legalcode. -->
<!-- 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 4.0 -->
<!-- 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.
-->
<!-- February 20, 2014, version 2.1:
1. Page and BlockType element HEIGHT, WIDTH, HPOS, VPOS attribute types changed to xsd:float from xsd:int.
2. CircleType HPOS, VPOS and RADIUS attribute type definitions added as xsd:float and made mandatory. Element annotation clarified.
3. EllipseType HPOS,VPOS,HLENGTH and VLENGTH attribute type definitions added as xsd:float and made mandatory. Element annotation clarified.
4. MeasurementUnit defined as mandatory and element annotation clarified.
5. HYP element's CONTENT attribute type definition added as xsd:string.
6. Tags (LayoutTag/StructureTag/RoleTag/NamedEntityTag/OtherTag) added to allow for tagging content. TAGREFS attribute added to BlockTypes, TextLine and String
7. CS attribute added to String and Block.
8. LANG attribute added to String, TextLine and TextBlock. "language" attribute in TextBlock deprecated.
9. HEIGHT attribute added to HYP and SP elements.
-->
<!-- April, 2014, version 2.2 DRAFT:
1. Anonymous types changed to named types (to allow use of xsd:redefine mechanism)
-->
<!-- July 2014, version 2.2 DRAFT
1. Version added to xsd:schema.
2. SCHEMAVERSION attribute added to <alto> element.
3. documentIdentifier element added to <sourceImageInformationType> element (+ documentIdentifierLocation attribute)
-->
<!-- August 2014, version 3.0
1. Changed namespace and targetNamespace to http://www.loc.gov/standards/alto/ns-v3#
2. Changed schema version to 3.0
ALTO schemas will be updated by whole numbers upon making changes that break backward compatibility (version 1 to version 2),
and decimals for changes that will not (2.0 to 2.1). The namespace itself will also only change on major versions (ns-v2 to ns-v3).
-->
<!-- January 2016, version 3.1
1. Changed schema version to 3.1
2. Added support for using different shapes for the elements String, TextLine, all PageSpaceType elements and on all BlockType elements.
3. The description of the attribute ROTATION is changed to the rotation of the contents of a block and not the block itself. The attribute is inherited by all sub elements.
-->
<!-- January 2018, version 4.0
1. Changed schema version to 4.0
2. Changed namespace and targetNamespace to http://www.loc.gov/standards/alto/ns-v4#
3. Clarification and definition of the licensing to common standard "CC BY-SA 4.0" for this ALTO standard (with agreement of the authors)
4. Added character based text description with new Glyph element and its subelement Variant (GlyphType, VariantType)
5. Extended annotation for clarification of the difference of existing element ALTERNATIVE and Glyph/Variant
6. Introduce generic "Processing" and deprecate "OcrProcessing"
7. Introduce generic "processingStep" with "ProcessingStepType" and required attribute "ID" and deprecate "preProcessingStep", "ocrProcessingStep", "postProcessingStep"
8. Add common vocabulary for "processingStep" comprising the "ContentGeneration", "ContentModification", "PreOperation", "PostOperation", "Other"
9. Fix for the element Shape. The Shape element can now only be used once within a PageSpace or a TextLine as it was intended.
-->
<xsd:schema xmlns="http://www.loc.gov/standards/alto/ns-v4#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" targetNamespace="http://www.loc.gov/standards/alto/ns-v4#" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4.0">
<xsd:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.loc.gov/standards/xlink/xlink.xsd"/>
<xsd:element name="alto" type="altoType">
<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:element>
<xsd:complexType name="altoType">
<xsd:sequence>
<xsd:element name="Description" type="DescriptionType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Describes general settings of the alto file like measurement units and metadata</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Styles" type="StylesType" 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:element>
<xsd:element name="Tags" type="TagsType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Tag define properties of additional characteristic. The tags are referenced from related content element on Block or String element by attribute TAGREF via the tag ID.
This container element contains the individual elements for LayoutTags, StructureTags, RoleTags, NamedEntityTags and OtherTags
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Layout" type="LayoutType">
<xsd:annotation>
<xsd:documentation>The root layout element.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="SCHEMAVERSION" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Schema version of the ALTO file.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="DescriptionType">
<xsd:sequence>
<xsd:element name="MeasurementUnit" type="MeasurementUnitType" minOccurs="1"/>
<xsd:element name="sourceImageInformation" type="sourceImageInformationType" minOccurs="0"/>
<xsd:element name="OCRProcessing" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Element deprecated. 'Processing' should be used instead.</xsd:documentation>
</xsd:annotation>
<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:element name="Processing" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="processingStepType">
<xsd:attribute name="ID" type="xsd:ID" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="StylesType">
<xsd:sequence>
<xsd:element name="TextStyle" type="TextStyleType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="ParagraphStyle" type="ParagraphStyleType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="TagsType">
<xsd:annotation>
<xsd:documentation>
There are following variation of tag types available:
LayoutTag – criteria about arrangement or graphical appearance
StructureTag – criteria about grouping or formation
RoleTag – criteria about function or mission
NamedEntityTag – criteria about assignment of terms to their relationship / meaning (NER)
OtherTag – criteria about any other characteristic not listed above, the TYPE attribute is intended to be used for classification within those.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="LayoutTag" type="TagType"/>
<xsd:element name="StructureTag" type="TagType"/>
<xsd:element name="RoleTag" type="TagType"/>
<xsd:element name="NamedEntityTag" type="TagType"/>
<xsd:element name="OtherTag" type="TagType"/>
</xsd:choice>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="QualityType">
<xsd:annotation>
<xsd:documentation>Gives brief information about original page quality</xsd:documentation>
</xsd:annotation>
<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:simpleType name="QualityDetailType">
<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:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="PositionType">
<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: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:simpleType name="PCType">
<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:restriction base="xsd:float">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="PageType">
<xsd:annotation>
<xsd:documentation>One page of a book or journal.</xsd:documentation>
</xsd:annotation>
<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="PageID" 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:float" use="optional"/>
<xsd:attribute name="WIDTH" type="xsd:float" use="optional"/>
<xsd:attribute name="PHYSICAL_IMG_NR" type="xsd:float" 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" type="QualityType" use="optional"/>
<xsd:attribute name="QUALITY_DETAIL" type="QualityDetailType" use="optional"/>
<xsd:attribute name="POSITION" type="PositionType" use="optional"/>
<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" type="PCType" use="optional"/>
</xsd:complexType>
<xsd:complexType name="LayoutType">
<xsd:sequence>
<xsd:element name="Page" type="PageType" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS"/>
</xsd:complexType>
<xsd:complexType name="TextStyleType">
<xsd:annotation>
<xsd:documentation>A text style defines font properties of text. </xsd:documentation>
</xsd:annotation>
<xsd:attribute name="ID" type="xsd:ID"/>
<xsd:attributeGroup ref="formattingAttributeGroup"/>
</xsd:complexType>
<xsd:complexType name="ParagraphStyleType">
<xsd:annotation>
<xsd:documentation>A paragraph style defines formatting properties of text blocks.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="ID" type="ParagraphStyleID" 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:simpleType name="SPTypeID">
<xsd:restriction base="xsd:ID"/>
</xsd:simpleType>
<xsd:simpleType name="PageSpaceTypeID">
<xsd:restriction base="xsd:ID"/>
</xsd:simpleType>
<xsd:simpleType name="ParagraphStyleID">
<xsd:restriction base="xsd:ID"/>
</xsd:simpleType>
<xsd:simpleType name="PageID">
<xsd:restriction base="xsd:ID"/>
</xsd:simpleType>
<xsd:simpleType name="BlockTypeID">
<xsd:restriction base="xsd:ID"/>
</xsd:simpleType>
<xsd:simpleType name="StringTypeID">
<xsd:restriction base="xsd:ID"/>
</xsd:simpleType>
<xsd:simpleType name="TextLineID">
<xsd:restriction base="xsd:ID"/>
</xsd:simpleType>
<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="BlockTypeID" use="required"/>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS"/>
<xsd:attribute name="TAGREFS" 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="ROTATION" type="xsd:float" use="optional">
<xsd:annotation>
<xsd:documentation>Tells the rotation of e.g. text or illustration within the block. 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:attribute name="CS" type="xsd:boolean" use="optional">
<xsd:annotation>
<xsd:documentation>Correction Status. Indicates whether manual correction has been done or not. The correction status should be recorded at the highest level possible (Block, TextLine, String).</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="xlink:simpleLink"/>
</xsd:complexType>
<xsd:complexType name="SPType">
<xsd:annotation>
<xsd:documentation>A white space.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="ID" type="SPTypeID" 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:complexType>
<xsd:simpleType name="SUBS_TYPEType">
<xsd:annotation>
<xsd:documentation>Type of the substitution (if any).</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="HypPart1"/>
<xsd:enumeration value="HypPart2"/>
<xsd:enumeration value="Abbreviation"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CONTENTType">
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="WCType">
<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:restriction base="xsd:float">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="ALTERNATIVEType">
<xsd:annotation>
<xsd:documentation>
Any alternative for the word.
Alternative can outline a variant of writing by new typing / spelling rules, typically manually done or by dictionary replacements.
The above sample is an old composed character "Æ" of ancient time, which is replaced now by "Ä".
As variant are meant alternatives of the real printed content which are options outlined by the text recognition process.
Similar sample: "Straße" vs. "Strasse". Such alternatives are not coming from text recognition.
</xsd:documentation>
</xsd:annotation>
<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: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="Shape" type="ShapeType" minOccurs="0" maxOccurs="1"/>
<xsd:element name="ALTERNATIVE" type="ALTERNATIVEType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Glyph" type="GlyphType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="ID" type="StringTypeID" use="optional"/>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
<xsd:attribute name="TAGREFS" 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" type="CONTENTType" use="required"/>
<xsd:attribute name="STYLE" type="fontStylesType" use="optional"/>
<xsd:attribute name="SUBS_TYPE" type="SUBS_TYPEType" use="optional"/>
<xsd:attribute name="SUBS_CONTENT" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Content of the substitution.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="WC" type="WCType" use="optional"/>
<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:attribute name="CS" type="xsd:boolean" use="optional">
<xsd:annotation>
<xsd:documentation>Correction Status. Indicates whether manual correction has been done or not. The correction status should be recorded at the highest level possible (Block, TextLine, String).</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="LANG" type="xsd:language" use="optional">
<xsd:annotation>
<xsd:documentation>Attribute to record language of the string. The language should be recorded at the highest level possible.</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>
<xsd:element name="Shape" type="ShapeType" minOccurs="0" maxOccurs="1"/>
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:group ref="BlockGroup"/>
</xsd:sequence>
</xsd:sequence>
<xsd:attribute name="ID" type="PageSpaceTypeID" 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: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. HPOS and VPOS describe the center of the ellipse.
HLENGTH and VLENGTH are the width and height of the described ellipse.</xsd:documentation>
<xsd:documentation>The attribute ROTATION tells the rotation of the e.g. text or
illustration within the block. The value is in degrees counterclockwise. </xsd:documentation>
</xsd:annotation>
<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
<xsd:attribute name="HLENGTH" type="xsd:float" use="required"/>
<xsd:attribute name="VLENGTH" type="xsd:float" use="required"/>
<xsd:attribute name="ROTATION" type="xsd:float" use="optional"/>
</xsd:complexType>
<xsd:complexType name="CircleType">
<xsd:annotation>
<xsd:documentation>A circle shape. HPOS and VPOS describe the center of the circle.</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="HPOS" type="xsd:float" use="required"/>
<xsd:attribute name="VPOS" type="xsd:float" use="required"/>
<xsd:attribute name="RADIUS" type="xsd:float" use="required"/>
</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:simpleType name="MeasurementUnitType">
<xsd:annotation>
<xsd:documentation>
All measurement values inside the alto file are related to
this unit, except the font size.
Coordinates as being used in HPOS and VPOS are absolute coordinates referring to the upper-left corner of a page.
The upper left corner of the page is defined as coordinate (0/0).
values meaning:
mm10: 1/10th of millimeter
inch1200: 1/1200th of inch
pixel: 1 pixel
The values for pixel will be related to the resolution of the image based
on which the layout is described. Incase the original image is not known
the scaling factor can be calculated based on total width and height of
the image and the according information of the PAGE element.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="pixel"/>
<xsd:enumeration value="mm10"/>
<xsd:enumeration value="inch1200"/>
</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="fileNameType" minOccurs="0"/>
<xsd:element name="fileIdentifier" type="fileIdentifierType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="documentIdentifier" type="documentIdentifierType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="fileNameType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="fileIdentifierValueType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="fileIdentifierLocationValueType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<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="fileIdentifierValueType">
<xsd:attribute name="fileIdentifierLocation" type="fileIdentifierLocationValueType">
<xsd:annotation>
<xsd:documentation>A location qualifier, i.e., a namespace.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="documentIdentifierValueType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="documentIdentifierLocationValueType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:complexType name="documentIdentifierType">
<xsd:annotation>
<xsd:documentation>A unique identifier for the document.</xsd:documentation>
<xsd:documentation> This identifier must be unique within the local system.
To facilitate file sharing or interoperability with other systems, documentIdentifierLocation may be added to designate the system or application where the identifier is unique.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="documentIdentifierValueType">
<xsd:attribute name="documentIdentifierLocation" type="documentIdentifierLocationValueType">
<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>Deprecated. processingType should be used instead.</xsd:documentation>
<xsd:documentation>Information on how the text was created, including preprocessing, OCR processing, and postprocessing steps. 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="processingType">
<xsd:annotation>
<xsd:documentation>Information on how the text was created, including generation, modification, preprocessing, postprocessing or any other steps. May include references to a list of space-separated IDs of elements processed.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="contentGeneration" type="processingType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="contentModification" type="processingType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="preOperation" type="processingType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="postOperation" type="processingType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="other" type="processingType" 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>
<xsd:element name="Shape" type="ShapeType" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:sequence maxOccurs="unbounded">
<xsd:element name="String" type="StringType"/>
<xsd:element name="SP" type="SPType" minOccurs="0"/>
</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="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" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="ID" type="TextLineID"/>
<xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
<xsd:attribute name="TAGREFS" 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="BASELINE" type="xsd:float" use="optional"/>
<xsd:attribute name="LANG" type="xsd:language" use="optional">
<xsd:annotation>
<xsd:documentation>Attribute to record language of the textline.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="CS" type="xsd:boolean" use="optional">
<xsd:annotation>
<xsd:documentation>Correction Status. Indicates whether manual correction has been done or not. The correction status should be recorded at the highest level possible (Block, TextLine, String).</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="language" type="xsd:language" use="optional">
<xsd:annotation>
<xsd:documentation>Attribute deprecated. LANG should be used instead.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="LANG" type="xsd:language" use="optional">
<xsd:annotation>
<xsd:documentation>Attribute to record language of the textblock.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="TagType">
<xsd:sequence>
<xsd:element name="XmlData" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">
The xml data wrapper element XmlData is used to contain XML encoded metadata.
The content of an XmlData element can be in any namespace or in no namespace.
As permitted by the XML Schema Standard, the processContents attribute value for the
metadata in an XmlData is set to “lax”. Therefore, if the source schema and its location are
identified by means of an XML schemaLocation attribute, then an XML processor will validate
the elements for which it can find declarations. If a source schema is not identified, or cannot be
found at the specified schemaLocation, then an XML validator will check for well-formedness,
but otherwise skip over the elements appearing in the XmlData element.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:any namespace="##any" processContents="lax" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="ID" type="xsd:ID" use="required"/>
<xsd:attribute name="TYPE" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Type can be used to classify and group the information within each tag element type.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="LABEL" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>Content / information value of the tag.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="DESCRIPTION" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Description text for tag information for clarification.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="URI" type="xsd:anyURI" use="optional">
<xsd:annotation>
<xsd:documentation>Any URI for authority or description relevant information.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="GlyphType" mixed="false">
<xsd:annotation>
<xsd:documentation>
Modern OCR software stores information on glyph level. A glyph is essentially a character or ligature.
Accordingly the value for the glyph element will be defined as follows:
Pre-composed representation = base + combining character(s) (decomposed representation)
See http://www.fileformat.info/info/unicode/char/0101/index.htm
"U+0101" = (U+0061) + (U+0304)
"combining characters" ("base characters" in combination with non-spacing marks or characters which are combined to one) are represented as one "glyph", e.g. áàâ.
Each glyph has its own coordinate information and must be separately addressable as a distinct object.
Correction and verification processes can be carried out for individual characters.
Post-OCR analysis of the text as well as adaptive OCR algorithm must be able to record information on glyph level.
In order to reproduce the decision of the OCR software, optional characters must be recorded. These are called variants.
The OCR software evaluates each variant and picks the one with the highest confidence score as the glyph.
The confidence score expresses how confident the OCR software is that a single glyph had been recognized correctly.
The glyph elements are in order of the word. Each glyph need to be recorded to built up the whole word sequence.
The glyph’s CONTENT attribute is no replacement for the string’s CONTENT attribute.
Due to post-processing steps such as correction the values of both attributes may be inconsistent.
</xsd:documentation>
</xsd:annotation>