iiif_print 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/Gemfile.lock +2 -2
  4. data/README.md +4 -0
  5. data/app/actors/iiif_print/actors/file_set_actor_decorator.rb +1 -1
  6. data/app/indexers/concerns/iiif_print/child_work_indexer.rb +27 -0
  7. data/app/indexers/concerns/iiif_print/file_set_indexer.rb +37 -22
  8. data/{lib → app/jobs}/iiif_print/jobs/application_job.rb +2 -1
  9. data/{lib → app/jobs}/iiif_print/jobs/child_works_from_pdf_job.rb +14 -9
  10. data/{lib → app/jobs}/iiif_print/jobs/create_relationships_job.rb +10 -20
  11. data/app/listeners/iiif_print/listener.rb +31 -0
  12. data/app/models/concerns/iiif_print/set_child_flag.rb +1 -1
  13. data/app/models/concerns/iiif_print/solr/document.rb +5 -3
  14. data/app/presenters/iiif_print/file_set_presenter_decorator.rb +11 -0
  15. data/app/presenters/iiif_print/iiif_manifest_presenter_factory_behavior.rb +1 -1
  16. data/app/presenters/iiif_print/work_show_presenter_decorator.rb +5 -2
  17. data/app/services/iiif_print/manifest_builder_service_behavior.rb +4 -2
  18. data/app/services/iiif_print/pluggable_derivative_service.rb +5 -1
  19. data/app/services/iiif_print/simple_schema_loader_decorator.rb +11 -0
  20. data/app/transactions/hyrax/transactions/iiif_print_container_decorator.rb +34 -0
  21. data/app/transactions/hyrax/transactions/steps/conditionally_destroy_children_from_split.rb +32 -0
  22. data/app/transactions/hyrax/transactions/steps/delete_all_file_sets_decorator.rb +35 -0
  23. data/app/views/hyrax/file_sets/_show_actions.html.erb +1 -1
  24. data/config/initializers/simple_schema_loader.rb +1 -0
  25. data/config/metadata/child_works_from_pdf_splitting.yaml +21 -0
  26. data/db/migrate/20181214181358_create_iiif_print_derivative_attachments.rb +8 -6
  27. data/db/migrate/20190107165909_create_iiif_print_ingest_file_relations.rb +7 -5
  28. data/db/migrate/20230109000000_create_iiif_print_pending_relationships.rb +8 -6
  29. data/db/migrate/20231110163052_add_model_details_to_iiif_print_pending_relationships.rb +3 -3
  30. data/iiif_print.gemspec +1 -1
  31. data/lib/iiif_print/base_derivative_service.rb +13 -2
  32. data/lib/iiif_print/blacklight_iiif_search/annotation_decorator.rb +2 -2
  33. data/lib/iiif_print/catalog_search_builder.rb +2 -2
  34. data/lib/iiif_print/configuration.rb +65 -5
  35. data/lib/iiif_print/data/fileset_helper.rb +2 -2
  36. data/lib/iiif_print/data/work_derivatives.rb +1 -1
  37. data/lib/iiif_print/engine.rb +46 -2
  38. data/lib/iiif_print/homepage_search_builder.rb +2 -2
  39. data/lib/iiif_print/jp2_derivative_service.rb +4 -1
  40. data/lib/iiif_print/lineage_service.rb +19 -6
  41. data/lib/iiif_print/pdf_derivative_service.rb +3 -1
  42. data/lib/iiif_print/persistence_layer/active_fedora_adapter.rb +189 -0
  43. data/lib/iiif_print/persistence_layer/valkyrie_adapter.rb +183 -0
  44. data/lib/iiif_print/persistence_layer.rb +118 -0
  45. data/lib/iiif_print/split_pdfs/base_splitter.rb +11 -0
  46. data/lib/iiif_print/split_pdfs/child_work_creation_from_pdf_service.rb +19 -9
  47. data/lib/iiif_print/split_pdfs/destroy_pdf_child_works_service.rb +5 -16
  48. data/lib/iiif_print/text_extraction_derivative_service.rb +4 -2
  49. data/lib/iiif_print/text_formats_from_alto_service.rb +3 -1
  50. data/lib/iiif_print/tiff_derivative_service.rb +3 -1
  51. data/lib/iiif_print/version.rb +1 -1
  52. data/lib/iiif_print.rb +79 -44
  53. metadata +18 -191
  54. data/app/indexers/concerns/iiif_print/child_indexer.rb +0 -40
  55. data/app/views/hyrax/file_sets/_actions.html.erb +0 -46
  56. data/bin/rails +0 -13
  57. data/spec/.keep.txt +0 -1
  58. data/spec/factories/ability.rb +0 -6
  59. data/spec/factories/newspaper_issue.rb +0 -7
  60. data/spec/factories/newspaper_page.rb +0 -7
  61. data/spec/factories/newspaper_page_solr_document.rb +0 -20
  62. data/spec/factories/newspaper_title.rb +0 -8
  63. data/spec/factories/uploaded_pdf_file.rb +0 -9
  64. data/spec/factories/uploaded_txt_file.rb +0 -9
  65. data/spec/factories/user.rb +0 -13
  66. data/spec/fixtures/authorities/licenses.yml +0 -4
  67. data/spec/fixtures/authorities/rights_statements.yml +0 -4
  68. data/spec/fixtures/files/4.1.07.jp2 +0 -0
  69. data/spec/fixtures/files/4.1.07.tiff +0 -0
  70. data/spec/fixtures/files/README.md +0 -7
  71. data/spec/fixtures/files/alto-2-0.xsd +0 -714
  72. data/spec/fixtures/files/broken-truncated.pdf +0 -0
  73. data/spec/fixtures/files/credits.md +0 -16
  74. data/spec/fixtures/files/lowres-gray-via-ndnp-sample.tiff +0 -0
  75. data/spec/fixtures/files/minimal-1-page.pdf +0 -0
  76. data/spec/fixtures/files/minimal-2-page.pdf +0 -0
  77. data/spec/fixtures/files/minimal-alto.xml +0 -31
  78. data/spec/fixtures/files/ndnp-alto-sample.xml +0 -24
  79. data/spec/fixtures/files/ndnp-sample1-json.json +0 -1
  80. data/spec/fixtures/files/ndnp-sample1-txt.txt +0 -1
  81. data/spec/fixtures/files/ndnp-sample1.pdf +0 -0
  82. data/spec/fixtures/files/ocr_alto.xml +0 -202
  83. data/spec/fixtures/files/ocr_alto_scaled_4pts_per_px.xml +0 -202
  84. data/spec/fixtures/files/ocr_color.tiff +0 -0
  85. data/spec/fixtures/files/ocr_gray.jp2 +0 -0
  86. data/spec/fixtures/files/ocr_gray.tiff +0 -0
  87. data/spec/fixtures/files/ocr_mono.tiff +0 -0
  88. data/spec/fixtures/files/ocr_mono_text_hocr.html +0 -78
  89. data/spec/fixtures/files/page1.tiff +0 -0
  90. data/spec/fixtures/files/sample-4page-issue.pdf +0 -0
  91. data/spec/fixtures/files/sample-color-newsletter.pdf +0 -0
  92. data/spec/fixtures/files/thumbnail.jpg +0 -0
  93. data/spec/helpers/hyrax/iiif_helper_spec.rb +0 -65
  94. data/spec/helpers/iiif_print_helper_spec.rb +0 -43
  95. data/spec/iiif_print/base_derivative_service_spec.rb +0 -28
  96. data/spec/iiif_print/blacklight_iiif_search/annotation_decorator_spec.rb +0 -59
  97. data/spec/iiif_print/catalog_search_builder_spec.rb +0 -60
  98. data/spec/iiif_print/configuration_spec.rb +0 -193
  99. data/spec/iiif_print/data/work_derivatives_spec.rb +0 -245
  100. data/spec/iiif_print/data/work_file_spec.rb +0 -99
  101. data/spec/iiif_print/data/work_files_spec.rb +0 -237
  102. data/spec/iiif_print/image_tool_spec.rb +0 -109
  103. data/spec/iiif_print/jobs/child_works_from_pdf_job_spec.rb +0 -35
  104. data/spec/iiif_print/jobs/create_relationships_job_spec.rb +0 -118
  105. data/spec/iiif_print/jp2_image_metadata_spec.rb +0 -37
  106. data/spec/iiif_print/lineage_service_spec.rb +0 -13
  107. data/spec/iiif_print/metadata_spec.rb +0 -249
  108. data/spec/iiif_print/split_pdfs/base_splitter_spec.rb +0 -27
  109. data/spec/iiif_print/split_pdfs/derivative_rodeo_splitter_spec.rb +0 -80
  110. data/spec/iiif_print/split_pdfs/destroy_pdf_child_works_service_spec.rb +0 -92
  111. data/spec/iiif_print/split_pdfs/pages_to_jpgs_splitter_spec.rb +0 -22
  112. data/spec/iiif_print/split_pdfs/pages_to_pngs_splitter_spec.rb +0 -18
  113. data/spec/iiif_print/split_pdfs/pages_to_tiffs_splitter_spec.rb +0 -19
  114. data/spec/iiif_print/text_extraction/alto_reader_spec.rb +0 -49
  115. data/spec/iiif_print/text_extraction/hocr_reader_spec.rb +0 -45
  116. data/spec/iiif_print/text_extraction/page_ocr_spec.rb +0 -84
  117. data/spec/iiif_print/text_extraction/render_alto_spec.rb +0 -54
  118. data/spec/iiif_print/text_extraction/word_coords_builder_spec.rb +0 -44
  119. data/spec/iiif_print_spec.rb +0 -171
  120. data/spec/misc_shared.rb +0 -111
  121. data/spec/models/iiif_print/derivative_attachment_spec.rb +0 -37
  122. data/spec/models/iiif_print/iiif_search_decorator_spec.rb +0 -27
  123. data/spec/models/iiif_print/ingest_file_relation_spec.rb +0 -56
  124. data/spec/models/solr_document_spec.rb +0 -14
  125. data/spec/presenters/iiif_print/iiif_manifest_presenter_behavior_spec.rb +0 -70
  126. data/spec/presenters/iiif_print/iiif_manifest_presenter_factory_behavior_spec.rb +0 -49
  127. data/spec/samvera/derivatives/configuration_spec.rb +0 -41
  128. data/spec/samvera/derivatives/hyrax_spec.rb +0 -62
  129. data/spec/samvera/derivatives_spec.rb +0 -54
  130. data/spec/services/iiif_print/derivative_rodeo_service_spec.rb +0 -103
  131. data/spec/services/iiif_print/jp2_derivative_service_spec.rb +0 -59
  132. data/spec/services/iiif_print/manifest_builder_service_behavior_spec.rb +0 -20
  133. data/spec/services/iiif_print/pdf_derivative_service_spec.rb +0 -66
  134. data/spec/services/iiif_print/pluggable_derivative_service_spec.rb +0 -175
  135. data/spec/services/iiif_print/text_extraction_derivative_service_spec.rb +0 -82
  136. data/spec/services/iiif_print/text_formats_from_alto_service_spec.rb +0 -127
  137. data/spec/services/iiif_print/tiff_derivative_service_spec.rb +0 -65
  138. data/spec/spec_helper.rb +0 -181
  139. data/spec/support/controller_level_helpers.rb +0 -28
  140. data/spec/support/iiif_print_models.rb +0 -127
  141. data/spec/test_app_templates/blacklight.yml +0 -9
  142. data/spec/test_app_templates/fedora.yml +0 -15
  143. data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -40
  144. data/spec/test_app_templates/redis.yml +0 -9
  145. data/spec/test_app_templates/solr/conf/schema.xml +0 -362
  146. data/spec/test_app_templates/solr/conf/solrconfig.xml +0 -322
  147. data/spec/test_app_templates/solr.yml +0 -7
  148. /data/{lib → app/jobs}/iiif_print/jobs/request_split_pdf_job.rb +0 -0
@@ -1,714 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- ALTO: Analyzed Layout and Text Object -->
3
- <!-- 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 -->
4
- <!-- Prepared for the Library of Congress by Ralph Tiede, CCS GmbH, with the assistance of Justin Littman (Library of Congress). -->
5
- <!-- Version 2.0 2010-01-11T11:54:13.418-05:00 -->
6
- <!-- December 14, 2004 -->
7
- <!-- Change History -->
8
- <!-- June 22, 2004: Version finalized for docWORKS/METAe -->
9
- <!-- November 19, 2004: Modifications requested by Justin Littman -->
10
- <!-- Modifications of November 19, 2004:
11
- 1. add "Description" element
12
- 2. change "InnerMargin/OuterMargin" to "LeftMargin/RightMargin", add "POSITION" attribute to "PAGE" element
13
- 3. add "PROCESSING" attribute to "PAGE" element
14
- 4. internal changes to validate with Xerces parser
15
- 5. define fontstyles by enumerations
16
- 6. change "WC" (word confidence) attribute to xsd:float in range of "0" to "1".
17
- 7. Add "ALTERNATIVE" als childs to "STRING" element
18
- 8. Add "language" attribute to "Textblock" and "STRING" element
19
- -->
20
- <!-- Modifications of December 02, 2004:
21
- 1. fixed problem with multiple use of blockgroup
22
- 2. add measurement enumeration 'inch1200'
23
- -->
24
- <!-- Modifications of December 14, 2004:
25
- 1. "FILEID" (attribute of "ComposedBlock"): change type from xsd:IDREF to xsd:string
26
- 2. include minor changes requested by JDL
27
- 3. change "ZORDER" to "IDNEXT" (attribute of "BlockType")
28
- -->
29
- <!-- Modifications of February 24, 2006:
30
- 1. ACCURACY attribute added to PAGE element to store information on OCR accuracy
31
- 2. CS attribute added to TEXTLINE element to indicate manual correction status
32
- -->
33
- <!-- Modifications of June 20, 2007 (version 1.3):
34
- 1. Adaption of xlink namespace and schema location to prevent conflicts on XSL transformations in combination with used namespace in original METS file
35
- -->
36
- <!-- Modifications of August 27, 2007 (version 1.4):
37
- 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)
38
- 2. add "Cover" to "POSITION" attribute of "PAGE" element
39
- 3. specification of interpretation of confidence values (CC, WC, PC and ACCURACY)
40
- -->
41
- <!-- Modifications of August 7, 2009:
42
- 1. Change namespace from old CCS URI to LC-based URI.
43
- 2. Use standard LC XLink Schema.
44
- 3. Push version to 2.0 to reflect change in maintenance agency.
45
- 4. Remove CCS copyright statement.
46
- 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.
47
- -->
48
- <!-- Modifications of January 11, 2010:
49
- 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.
50
- -->
51
- <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">
52
- <xsd:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.loc.gov/standards/xlink/xlink.xsd"/>
53
- <xsd:element name="alto">
54
- <xsd:annotation>
55
- <xsd:documentation>ALTO (analyzed layout and text object) stores layout information and
56
- OCR recognized text of pages of any kind of printed documents like books, journals and newspapers.
57
- ALTO is a standardized XML format to store layout and content information.
58
- It is designed to be used as an extension schema to METS (Metadata Encoding and Transmission Standard),
59
- where METS provides metadata and structural information while ALTO contains content and physical information.
60
- </xsd:documentation>
61
- </xsd:annotation>
62
- <xsd:complexType>
63
- <xsd:sequence>
64
- <xsd:element name="Description" minOccurs="0">
65
- <xsd:annotation>
66
- <xsd:documentation>Describes general settings of the alto file like measurement units and metadata</xsd:documentation>
67
- </xsd:annotation>
68
- <xsd:complexType>
69
- <xsd:sequence>
70
- <xsd:element name="MeasurementUnit" minOccurs="0">
71
- <xsd:annotation>
72
- <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>
73
- </xsd:annotation>
74
- <xsd:simpleType>
75
- <xsd:restriction base="xsd:string">
76
- <xsd:enumeration value="pixel"/>
77
- <xsd:enumeration value="mm10"/>
78
- <xsd:enumeration value="inch1200"/>
79
- </xsd:restriction>
80
- </xsd:simpleType>
81
- </xsd:element>
82
- <xsd:element name="sourceImageInformation" type="sourceImageInformationType" minOccurs="0"/>
83
- <xsd:element name="OCRProcessing" minOccurs="0" maxOccurs="unbounded">
84
- <xsd:complexType>
85
- <xsd:complexContent>
86
- <xsd:extension base="ocrProcessingType">
87
- <xsd:attribute name="ID" type="xsd:ID" use="required"/>
88
- </xsd:extension>
89
- </xsd:complexContent>
90
- </xsd:complexType>
91
- </xsd:element>
92
- </xsd:sequence>
93
- </xsd:complexType>
94
- </xsd:element>
95
- <xsd:element name="Styles" minOccurs="0">
96
- <xsd:annotation>
97
- <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>
98
- </xsd:annotation>
99
- <xsd:complexType>
100
- <xsd:sequence>
101
- <xsd:element name="TextStyle" minOccurs="0" maxOccurs="unbounded">
102
- <xsd:annotation>
103
- <xsd:documentation>A text style defines font properties of text. </xsd:documentation>
104
- </xsd:annotation>
105
- <xsd:complexType>
106
- <xsd:attribute name="ID" type="xsd:ID"/>
107
- <xsd:attributeGroup ref="formattingAttributeGroup"/>
108
- </xsd:complexType>
109
- </xsd:element>
110
- <xsd:element name="ParagraphStyle" minOccurs="0" maxOccurs="unbounded">
111
- <xsd:annotation>
112
- <xsd:documentation>A paragraph style defines formatting properties of text blocks.</xsd:documentation>
113
- </xsd:annotation>
114
- <xsd:complexType>
115
- <xsd:attribute name="ID" type="xsd:ID" use="required"/>
116
- <xsd:attribute name="ALIGN" use="optional">
117
- <xsd:annotation>
118
- <xsd:documentation>Indicates the alignement of the paragraph. Could be left, right, center or justify.</xsd:documentation>
119
- </xsd:annotation>
120
- <xsd:simpleType>
121
- <xsd:restriction base="xsd:string">
122
- <xsd:enumeration value="Left"/>
123
- <xsd:enumeration value="Right"/>
124
- <xsd:enumeration value="Center"/>
125
- <xsd:enumeration value="Block"/>
126
- </xsd:restriction>
127
- </xsd:simpleType>
128
- </xsd:attribute>
129
- <xsd:attribute name="LEFT" type="xsd:float" use="optional">
130
- <xsd:annotation>
131
- <xsd:documentation>Left indent of the paragraph in relation to the column.</xsd:documentation>
132
- </xsd:annotation>
133
- </xsd:attribute>
134
- <xsd:attribute name="RIGHT" type="xsd:float" use="optional">
135
- <xsd:annotation>
136
- <xsd:documentation>Right indent of the paragraph in relation to the column.</xsd:documentation>
137
- </xsd:annotation>
138
- </xsd:attribute>
139
- <xsd:attribute name="LINESPACE" type="xsd:float" use="optional">
140
- <xsd:annotation>
141
- <xsd:documentation>Line spacing between two lines of the paragraph. Measurement calculated from baseline to baseline.</xsd:documentation>
142
- </xsd:annotation>
143
- </xsd:attribute>
144
- <xsd:attribute name="FIRSTLINE" type="xsd:float" use="optional">
145
- <xsd:annotation>
146
- <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>
147
- </xsd:annotation>
148
- </xsd:attribute>
149
- </xsd:complexType>
150
- </xsd:element>
151
- </xsd:sequence>
152
- </xsd:complexType>
153
- </xsd:element>
154
- <xsd:element name="Layout">
155
- <xsd:annotation>
156
- <xsd:documentation>The root layout element.</xsd:documentation>
157
- </xsd:annotation>
158
- <xsd:complexType>
159
- <xsd:sequence>
160
- <xsd:element name="Page" maxOccurs="unbounded">
161
- <xsd:annotation>
162
- <xsd:documentation>One page of a book or journal.</xsd:documentation>
163
- </xsd:annotation>
164
- <xsd:complexType>
165
- <xsd:sequence>
166
- <xsd:element name="TopMargin" type="PageSpaceType" minOccurs="0">
167
- <xsd:annotation>
168
- <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>
169
- </xsd:annotation>
170
- </xsd:element>
171
- <xsd:element name="LeftMargin" type="PageSpaceType" minOccurs="0">
172
- <xsd:annotation>
173
- <xsd:documentation>The area between the printspace and the left border of a page. May contain margin notes.</xsd:documentation>
174
- </xsd:annotation>
175
- </xsd:element>
176
- <xsd:element name="RightMargin" type="PageSpaceType" minOccurs="0">
177
- <xsd:annotation>
178
- <xsd:documentation>The area between the printspace and the right border of a page. May contain margin notes.</xsd:documentation>
179
- </xsd:annotation>
180
- </xsd:element>
181
- <xsd:element name="BottomMargin" type="PageSpaceType" minOccurs="0">
182
- <xsd:annotation>
183
- <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>
184
- </xsd:annotation>
185
- </xsd:element>
186
- <xsd:element name="PrintSpace" type="PageSpaceType" minOccurs="0">
187
- <xsd:annotation>
188
- <xsd:documentation>Rectangle covering the printed area of a page. Page number and running title are not part of the print space. </xsd:documentation>
189
- </xsd:annotation>
190
- </xsd:element>
191
- </xsd:sequence>
192
- <xsd:attribute name="ID" type="xsd:ID" use="required"/>
193
- <xsd:attribute name="PAGECLASS" type="xsd:string" use="optional">
194
- <xsd:annotation>
195
- <xsd:documentation>Any user-defined class like title page.</xsd:documentation>
196
- </xsd:annotation>
197
- </xsd:attribute>
198
- <xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
199
- <xsd:attribute name="HEIGHT" type="xsd:int" use="optional"/>
200
- <xsd:attribute name="WIDTH" type="xsd:int" use="optional"/>
201
- <xsd:attribute name="PHYSICAL_IMG_NR" type="xsd:int" use="required">
202
- <xsd:annotation>
203
- <xsd:documentation>The number of the page within the document.</xsd:documentation>
204
- </xsd:annotation>
205
- </xsd:attribute>
206
- <xsd:attribute name="PRINTED_IMG_NR" type="xsd:string" use="optional">
207
- <xsd:annotation>
208
- <xsd:documentation>The page number that is printed on the page.</xsd:documentation>
209
- </xsd:annotation>
210
- </xsd:attribute>
211
- <xsd:attribute name="QUALITY" use="optional">
212
- <xsd:annotation>
213
- <xsd:documentation>Gives brief information about original page quality</xsd:documentation>
214
- </xsd:annotation>
215
- <xsd:simpleType>
216
- <xsd:restriction base="xsd:string">
217
- <xsd:enumeration value="OK"/>
218
- <xsd:enumeration value="Missing"/>
219
- <xsd:enumeration value="Missing in original"/>
220
- <xsd:enumeration value="Damaged"/>
221
- <xsd:enumeration value="Retained"/>
222
- <xsd:enumeration value="Target"/>
223
- <xsd:enumeration value="As in original"/>
224
- </xsd:restriction>
225
- </xsd:simpleType>
226
- </xsd:attribute>
227
- <xsd:attribute name="QUALITY_DETAIL" type="xsd:string" use="optional">
228
- <xsd:annotation>
229
- <xsd:documentation>Gives more details about the original page quality, since QUALITY attribute gives only brief and restrictive information</xsd:documentation>
230
- </xsd:annotation>
231
- </xsd:attribute>
232
- <xsd:attribute name="POSITION" use="optional">
233
- <xsd:annotation>
234
- <xsd:documentation>Position of the page. Could be lefthanded, righthanded, cover, foldout or single if it has no special position.</xsd:documentation>
235
- </xsd:annotation>
236
- <xsd:simpleType>
237
- <xsd:restriction base="xsd:string">
238
- <xsd:enumeration value="Left"/>
239
- <xsd:enumeration value="Right"/>
240
- <xsd:enumeration value="Foldout"/>
241
- <xsd:enumeration value="Single"/>
242
- <xsd:enumeration value="Cover"/>
243
- </xsd:restriction>
244
- </xsd:simpleType>
245
- </xsd:attribute>
246
- <xsd:attribute name="PROCESSING" type="xsd:IDREF" use="optional">
247
- <xsd:annotation>
248
- <xsd:documentation>A link to the processing description that has been used for this page.</xsd:documentation>
249
- </xsd:annotation>
250
- </xsd:attribute>
251
- <xsd:attribute name="ACCURACY" type="xsd:float" use="optional">
252
- <xsd:annotation>
253
- <xsd:documentation>Estimated percentage of OCR Accuracy in range from 0 to 100 </xsd:documentation>
254
- </xsd:annotation>
255
- </xsd:attribute>
256
- <xsd:attribute name="PC" use="optional">
257
- <xsd:annotation>
258
- <xsd:documentation>Page Confidence: Confidence level of the ocr for this page. A value between 0 (unsure) and 1 (sure). </xsd:documentation>
259
- </xsd:annotation>
260
- <xsd:simpleType>
261
- <xsd:restriction base="xsd:float">
262
- <xsd:minInclusive value="0"/>
263
- <xsd:maxInclusive value="1"/>
264
- </xsd:restriction>
265
- </xsd:simpleType>
266
- </xsd:attribute>
267
- </xsd:complexType>
268
- </xsd:element>
269
- </xsd:sequence>
270
- <xsd:attribute name="STYLEREFS" type="xsd:IDREFS"/>
271
- </xsd:complexType>
272
- </xsd:element>
273
- </xsd:sequence>
274
- </xsd:complexType>
275
- </xsd:element>
276
- <xsd:group name="BlockGroup">
277
- <xsd:annotation>
278
- <xsd:documentation>Group of available block types</xsd:documentation>
279
- </xsd:annotation>
280
- <xsd:choice>
281
- <xsd:element name="TextBlock" type="TextBlockType">
282
- <xsd:annotation>
283
- <xsd:documentation>A block of text.</xsd:documentation>
284
- </xsd:annotation>
285
- </xsd:element>
286
- <xsd:element name="Illustration" type="IllustrationType">
287
- <xsd:annotation>
288
- <xsd:documentation>A picture or image.</xsd:documentation>
289
- </xsd:annotation>
290
- </xsd:element>
291
- <xsd:element name="GraphicalElement" type="GraphicalElementType">
292
- <xsd:annotation>
293
- <xsd:documentation>A graphic used to separate blocks. Usually a line or rectangle.</xsd:documentation>
294
- </xsd:annotation>
295
- </xsd:element>
296
- <xsd:element name="ComposedBlock" type="ComposedBlockType">
297
- <xsd:annotation>
298
- <xsd:documentation>A block that consists of other blocks</xsd:documentation>
299
- </xsd:annotation>
300
- </xsd:element>
301
- </xsd:choice>
302
- </xsd:group>
303
- <xsd:complexType name="BlockType">
304
- <xsd:annotation>
305
- <xsd:documentation>Base type for any kind of block on the page.</xsd:documentation>
306
- </xsd:annotation>
307
- <xsd:sequence minOccurs="0">
308
- <xsd:element name="Shape" type="ShapeType"/>
309
- </xsd:sequence>
310
- <xsd:attribute name="ID" type="xsd:ID" use="required"/>
311
- <xsd:attribute name="STYLEREFS" type="xsd:IDREFS"/>
312
- <xsd:attribute name="HEIGHT" type="xsd:int" use="required"/>
313
- <xsd:attribute name="WIDTH" type="xsd:int" use="required"/>
314
- <xsd:attribute name="HPOS" type="xsd:int" use="required"/>
315
- <xsd:attribute name="VPOS" type="xsd:int" use="required"/>
316
- <xsd:attribute name="ROTATION" type="xsd:float" use="optional">
317
- <xsd:annotation>
318
- <xsd:documentation>Tells the rotation of the block e.g. text or illustration. The value is in degree counterclockwise.</xsd:documentation>
319
- </xsd:annotation>
320
- </xsd:attribute>
321
- <xsd:attribute name="IDNEXT" type="xsd:IDREF" use="optional">
322
- <xsd:annotation>
323
- <xsd:documentation>The next block in reading sequence on the page.</xsd:documentation>
324
- </xsd:annotation>
325
- </xsd:attribute>
326
- <xsd:attributeGroup ref="xlink:simpleLink"/>
327
- </xsd:complexType>
328
- <xsd:complexType name="StringType" mixed="false">
329
- <xsd:annotation>
330
- <xsd:documentation>A sequence of chars. Strings are separated by white spaces or hyphenation chars.</xsd:documentation>
331
- </xsd:annotation>
332
- <xsd:sequence minOccurs="0">
333
- <xsd:element name="ALTERNATIVE" maxOccurs="unbounded">
334
- <xsd:annotation>
335
- <xsd:documentation>Any alternative for the word.</xsd:documentation>
336
- </xsd:annotation>
337
- <xsd:complexType>
338
- <xsd:simpleContent>
339
- <xsd:extension base="xsd:string">
340
- <xsd:attribute name="PURPOSE" type="xsd:string" use="optional">
341
- <xsd:annotation>
342
- <xsd:documentation>Identifies the purpose of the alternative.</xsd:documentation>
343
- </xsd:annotation>
344
- </xsd:attribute>
345
- </xsd:extension>
346
- </xsd:simpleContent>
347
- </xsd:complexType>
348
- </xsd:element>
349
- </xsd:sequence>
350
- <xsd:attribute name="ID" type="xsd:ID" use="optional"/>
351
- <xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
352
- <xsd:attribute name="HEIGHT" type="xsd:float" use="optional"/>
353
- <xsd:attribute name="WIDTH" type="xsd:float" use="optional"/>
354
- <xsd:attribute name="HPOS" type="xsd:float" use="optional"/>
355
- <xsd:attribute name="VPOS" type="xsd:float" use="optional"/>
356
- <xsd:attribute name="CONTENT" use="required">
357
- <xsd:simpleType>
358
- <xsd:restriction base="xsd:string">
359
- <xsd:whiteSpace value="preserve"/>
360
- </xsd:restriction>
361
- </xsd:simpleType>
362
- </xsd:attribute>
363
- <xsd:attribute name="STYLE" type="fontStylesType" use="optional"/>
364
- <xsd:attribute name="SUBS_TYPE" use="optional">
365
- <xsd:annotation>
366
- <xsd:documentation>Type of the substitution (if any).</xsd:documentation>
367
- </xsd:annotation>
368
- <xsd:simpleType>
369
- <xsd:restriction base="xsd:string">
370
- <xsd:enumeration value="HypPart1"/>
371
- <xsd:enumeration value="HypPart2"/>
372
- <xsd:enumeration value="Abbreviation"/>
373
- </xsd:restriction>
374
- </xsd:simpleType>
375
- </xsd:attribute>
376
- <xsd:attribute name="SUBS_CONTENT" type="xsd:string" use="optional">
377
- <xsd:annotation>
378
- <xsd:documentation>Content of the substiution.</xsd:documentation>
379
- </xsd:annotation>
380
- </xsd:attribute>
381
- <xsd:attribute name="WC" use="optional">
382
- <xsd:annotation>
383
- <xsd:documentation>Word Confidence: Confidence level of the ocr for this string. A value between 0 (unsure) and 1 (sure). </xsd:documentation>
384
- </xsd:annotation>
385
- <xsd:simpleType>
386
- <xsd:restriction base="xsd:float">
387
- <xsd:minInclusive value="0"/>
388
- <xsd:maxInclusive value="1"/>
389
- </xsd:restriction>
390
- </xsd:simpleType>
391
- </xsd:attribute>
392
- <xsd:attribute name="CC" type="xsd:string" use="optional">
393
- <xsd:annotation>
394
- <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>
395
- </xsd:annotation>
396
- </xsd:attribute>
397
- </xsd:complexType>
398
- <xsd:complexType name="PageSpaceType">
399
- <xsd:annotation>
400
- <xsd:documentation>A region on a page</xsd:documentation>
401
- </xsd:annotation>
402
- <xsd:sequence minOccurs="0" maxOccurs="unbounded">
403
- <xsd:group ref="BlockGroup"/>
404
- </xsd:sequence>
405
- <xsd:attribute name="ID" type="xsd:ID" use="optional"/>
406
- <xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
407
- <xsd:attribute name="HEIGHT" type="xsd:float" use="required"/>
408
- <xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
409
- <xsd:attribute name="HPOS" type="xsd:float" use="required"/>
410
- <xsd:attribute name="VPOS" type="xsd:float" use="required"/>
411
- </xsd:complexType>
412
- <xsd:simpleType name="PointsType">
413
- <xsd:annotation>
414
- <xsd:documentation>A list of points</xsd:documentation>
415
- </xsd:annotation>
416
- <xsd:restriction base="xsd:string"/>
417
- </xsd:simpleType>
418
- <xsd:complexType name="ShapeType">
419
- <xsd:annotation>
420
- <xsd:documentation>Describes the bounding shape of a block, if it is not rectangular.</xsd:documentation>
421
- </xsd:annotation>
422
- <xsd:choice>
423
- <xsd:element name="Polygon" type="PolygonType"/>
424
- <xsd:element name="Ellipse" type="EllipseType"/>
425
- <xsd:element name="Circle" type="CircleType"/>
426
- </xsd:choice>
427
- </xsd:complexType>
428
- <xsd:complexType name="PolygonType">
429
- <xsd:annotation>
430
- <xsd:documentation>A polygon shape.</xsd:documentation>
431
- </xsd:annotation>
432
- <xsd:attribute name="POINTS" type="PointsType" use="required"/>
433
- </xsd:complexType>
434
- <xsd:complexType name="EllipseType">
435
- <xsd:annotation>
436
- <xsd:documentation>An ellipse shape.</xsd:documentation>
437
- </xsd:annotation>
438
- <xsd:attribute name="HPOS"/>
439
- <xsd:attribute name="VPOS"/>
440
- <xsd:attribute name="HLENGTH"/>
441
- <xsd:attribute name="VLENGTH"/>
442
- </xsd:complexType>
443
- <xsd:complexType name="CircleType">
444
- <xsd:annotation>
445
- <xsd:documentation>A circle shape.</xsd:documentation>
446
- </xsd:annotation>
447
- <xsd:attribute name="HPOS"/>
448
- <xsd:attribute name="VPOS"/>
449
- <xsd:attribute name="RADIUS"/>
450
- </xsd:complexType>
451
- <xsd:attributeGroup name="formattingAttributeGroup">
452
- <xsd:annotation>
453
- <xsd:documentation>Formatting attributes. Note that these attributes are assumed to be inherited from ancestor elements of the document hierarchy.</xsd:documentation>
454
- </xsd:annotation>
455
- <xsd:attribute name="FONTFAMILY" type="xsd:string" use="optional">
456
- <xsd:annotation>
457
- <xsd:documentation>The font name.</xsd:documentation>
458
- </xsd:annotation>
459
- </xsd:attribute>
460
- <xsd:attribute name="FONTTYPE" type="fontTypeType" use="optional"/>
461
- <xsd:attribute name="FONTWIDTH" type="fontWidthType" use="optional"/>
462
- <xsd:attribute name="FONTSIZE" type="xsd:float" use="required">
463
- <xsd:annotation>
464
- <xsd:documentation>The font size, in points (1/72 of an inch).</xsd:documentation>
465
- </xsd:annotation>
466
- </xsd:attribute>
467
- <xsd:attribute name="FONTCOLOR" type="xsd:hexBinary" use="optional">
468
- <xsd:annotation>
469
- <xsd:documentation>Font color as RGB value</xsd:documentation>
470
- </xsd:annotation>
471
- </xsd:attribute>
472
- <xsd:attribute name="FONTSTYLE" type="fontStylesType" use="optional"/>
473
- </xsd:attributeGroup>
474
- <xsd:simpleType name="fontTypeType">
475
- <xsd:annotation>
476
- <xsd:documentation>Serif or Sans-Serif</xsd:documentation>
477
- </xsd:annotation>
478
- <xsd:restriction base="xsd:string">
479
- <xsd:enumeration value="serif"/>
480
- <xsd:enumeration value="sans-serif"/>
481
- </xsd:restriction>
482
- </xsd:simpleType>
483
- <xsd:simpleType name="fontWidthType">
484
- <xsd:annotation>
485
- <xsd:documentation>fixed or proportional</xsd:documentation>
486
- </xsd:annotation>
487
- <xsd:restriction base="xsd:string">
488
- <xsd:enumeration value="proportional"/>
489
- <xsd:enumeration value="fixed"/>
490
- </xsd:restriction>
491
- </xsd:simpleType>
492
- <xsd:complexType name="sourceImageInformationType">
493
- <xsd:annotation>
494
- <xsd:documentation>Information to identify the image file from which the OCR text was created.</xsd:documentation>
495
- </xsd:annotation>
496
- <xsd:sequence>
497
- <xsd:element name="fileName" type="xsd:string" minOccurs="0"/>
498
- <xsd:element name="fileIdentifier" type="fileIdentifierType" minOccurs="0" maxOccurs="unbounded"/>
499
- </xsd:sequence>
500
- </xsd:complexType>
501
- <xsd:complexType name="fileIdentifierType">
502
- <xsd:annotation>
503
- <xsd:documentation>A unique identifier for the image file. This is drawn from MIX.</xsd:documentation>
504
- <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>
505
- </xsd:annotation>
506
- <xsd:simpleContent>
507
- <xsd:extension base="xsd:string">
508
- <xsd:attribute name="fileIdentifierLocation">
509
- <xsd:annotation>
510
- <xsd:documentation>A location qualifier, i.e., a namespace.</xsd:documentation>
511
- </xsd:annotation>
512
- </xsd:attribute>
513
- </xsd:extension>
514
- </xsd:simpleContent>
515
- </xsd:complexType>
516
- <xsd:complexType name="ocrProcessingType">
517
- <xsd:annotation>
518
- <xsd:documentation>Information on how the text was created, including preprocessing, OCR processing, and postprocessing steps.</xsd:documentation>
519
- <xsd:documentation>Where possible, this draws from MIX's change history.</xsd:documentation>
520
- </xsd:annotation>
521
- <xsd:sequence>
522
- <xsd:element name="preProcessingStep" type="processingStepType" minOccurs="0" maxOccurs="unbounded"/>
523
- <xsd:element name="ocrProcessingStep" type="processingStepType"/>
524
- <xsd:element name="postProcessingStep" type="processingStepType" minOccurs="0" maxOccurs="unbounded"/>
525
- </xsd:sequence>
526
- </xsd:complexType>
527
- <xsd:complexType name="processingStepType">
528
- <xsd:annotation>
529
- <xsd:documentation>A processing step.</xsd:documentation>
530
- </xsd:annotation>
531
- <xsd:sequence>
532
- <xsd:element name="processingDateTime" type="dateTimeType" minOccurs="0">
533
- <xsd:annotation>
534
- <xsd:documentation>Date or DateTime the image was processed.</xsd:documentation>
535
- </xsd:annotation>
536
- </xsd:element>
537
- <xsd:element name="processingAgency" type="xsd:string" minOccurs="0">
538
- <xsd:annotation>
539
- <xsd:documentation>Identifies the organizationlevel producer(s) of the processed image.</xsd:documentation>
540
- </xsd:annotation>
541
- </xsd:element>
542
- <xsd:element name="processingStepDescription" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
543
- <xsd:annotation>
544
- <xsd:documentation>An ordinal listing of the image processing steps performed. For example, "image despeckling."</xsd:documentation>
545
- </xsd:annotation>
546
- </xsd:element>
547
- <xsd:element name="processingStepSettings" type="xsd:string" minOccurs="0">
548
- <xsd:annotation>
549
- <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>
550
- </xsd:annotation>
551
- </xsd:element>
552
- <xsd:element name="processingSoftware" type="processingSoftwareType" minOccurs="0"/>
553
- </xsd:sequence>
554
- </xsd:complexType>
555
- <xsd:complexType name="processingSoftwareType">
556
- <xsd:annotation>
557
- <xsd:documentation>Information about a software application. Where applicable, the preferred method for determining this information is by selecting Help --> About.</xsd:documentation>
558
- </xsd:annotation>
559
- <xsd:sequence>
560
- <xsd:element name="softwareCreator" type="xsd:string" minOccurs="0">
561
- <xsd:annotation>
562
- <xsd:documentation>The name of the organization or company that created the application.</xsd:documentation>
563
- </xsd:annotation>
564
- </xsd:element>
565
- <xsd:element name="softwareName" type="xsd:string" minOccurs="0">
566
- <xsd:annotation>
567
- <xsd:documentation>The name of the application.</xsd:documentation>
568
- </xsd:annotation>
569
- </xsd:element>
570
- <xsd:element name="softwareVersion" type="xsd:string" minOccurs="0">
571
- <xsd:annotation>
572
- <xsd:documentation>The version of the application.</xsd:documentation>
573
- </xsd:annotation>
574
- </xsd:element>
575
- <xsd:element name="applicationDescription" type="xsd:string" minOccurs="0">
576
- <xsd:annotation>
577
- <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>
578
- </xsd:annotation>
579
- </xsd:element>
580
- </xsd:sequence>
581
- </xsd:complexType>
582
- <xsd:simpleType name="dateTimeType">
583
- <xsd:union memberTypes="xsd:date xsd:dateTime xsd:gYear xsd:gYearMonth"/>
584
- </xsd:simpleType>
585
- <xsd:simpleType name="fontStylesType">
586
- <xsd:annotation>
587
- <xsd:documentation>List of any combination of font styles</xsd:documentation>
588
- </xsd:annotation>
589
- <xsd:restriction>
590
- <xsd:simpleType>
591
- <xsd:list>
592
- <xsd:simpleType>
593
- <xsd:restriction base="xsd:string">
594
- <xsd:enumeration value="bold"/>
595
- <xsd:enumeration value="italics"/>
596
- <xsd:enumeration value="subscript"/>
597
- <xsd:enumeration value="superscript"/>
598
- <xsd:enumeration value="smallcaps"/>
599
- <xsd:enumeration value="underline"/>
600
- </xsd:restriction>
601
- </xsd:simpleType>
602
- </xsd:list>
603
- </xsd:simpleType>
604
- <xsd:minLength value="1"/>
605
- </xsd:restriction>
606
- </xsd:simpleType>
607
- <xsd:complexType name="ComposedBlockType">
608
- <xsd:annotation>
609
- <xsd:documentation>A block that consists of other blocks</xsd:documentation>
610
- </xsd:annotation>
611
- <xsd:complexContent>
612
- <xsd:extension base="BlockType">
613
- <xsd:sequence minOccurs="0" maxOccurs="unbounded">
614
- <xsd:group ref="BlockGroup"/>
615
- </xsd:sequence>
616
- <xsd:attribute name="TYPE" type="xsd:string" use="optional">
617
- <xsd:annotation>
618
- <xsd:documentation>A user defined string to identify the type of composed block (e.g. table, advertisement, ...)</xsd:documentation>
619
- </xsd:annotation>
620
- </xsd:attribute>
621
- <xsd:attribute name="FILEID" type="xsd:string" use="optional">
622
- <xsd:annotation>
623
- <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>
624
- </xsd:annotation>
625
- </xsd:attribute>
626
- </xsd:extension>
627
- </xsd:complexContent>
628
- </xsd:complexType>
629
- <xsd:complexType name="IllustrationType">
630
- <xsd:annotation>
631
- <xsd:documentation>A picture or image.</xsd:documentation>
632
- </xsd:annotation>
633
- <xsd:complexContent>
634
- <xsd:extension base="BlockType">
635
- <xsd:attribute name="TYPE" type="xsd:string" use="optional">
636
- <xsd:annotation>
637
- <xsd:documentation>A user defined string to identify the type of illustration like photo, map, drawing, chart, ...</xsd:documentation>
638
- </xsd:annotation>
639
- </xsd:attribute>
640
- <xsd:attribute name="FILEID" type="xsd:string" use="optional">
641
- <xsd:annotation>
642
- <xsd:documentation>A link to an image which contains only the illustration.</xsd:documentation>
643
- </xsd:annotation>
644
- </xsd:attribute>
645
- </xsd:extension>
646
- </xsd:complexContent>
647
- </xsd:complexType>
648
- <xsd:complexType name="GraphicalElementType">
649
- <xsd:annotation>
650
- <xsd:documentation>A graphic used to separate blocks. Usually a line or rectangle. </xsd:documentation>
651
- </xsd:annotation>
652
- <xsd:complexContent>
653
- <xsd:extension base="BlockType"/>
654
- </xsd:complexContent>
655
- </xsd:complexType>
656
- <xsd:complexType name="TextBlockType">
657
- <xsd:annotation>
658
- <xsd:documentation>A block of text.</xsd:documentation>
659
- </xsd:annotation>
660
- <xsd:complexContent>
661
- <xsd:extension base="BlockType">
662
- <xsd:sequence minOccurs="0">
663
- <xsd:element name="TextLine" maxOccurs="unbounded">
664
- <xsd:annotation>
665
- <xsd:documentation>A single line of text.</xsd:documentation>
666
- </xsd:annotation>
667
- <xsd:complexType>
668
- <xsd:sequence>
669
- <xsd:sequence maxOccurs="unbounded">
670
- <xsd:element name="String" type="StringType"/>
671
- <xsd:element name="SP" minOccurs="0">
672
- <xsd:annotation>
673
- <xsd:documentation>A white space.</xsd:documentation>
674
- </xsd:annotation>
675
- <xsd:complexType>
676
- <xsd:attribute name="ID" type="xsd:ID" use="optional"/>
677
- <xsd:attribute name="WIDTH" type="xsd:float" use="optional"/>
678
- <xsd:attribute name="HPOS" type="xsd:float" use="optional"/>
679
- <xsd:attribute name="VPOS" type="xsd:float" use="optional"/>
680
- </xsd:complexType>
681
- </xsd:element>
682
- </xsd:sequence>
683
- <xsd:element name="HYP" minOccurs="0">
684
- <xsd:annotation>
685
- <xsd:documentation>A hyphenation char. Can appear only at the end of a line.</xsd:documentation>
686
- </xsd:annotation>
687
- <xsd:complexType>
688
- <xsd:attribute name="WIDTH" type="xsd:float" use="optional"/>
689
- <xsd:attribute name="HPOS" type="xsd:float" use="optional"/>
690
- <xsd:attribute name="VPOS" type="xsd:float" use="optional"/>
691
- <xsd:attribute name="CONTENT" use="required"/>
692
- </xsd:complexType>
693
- </xsd:element>
694
- </xsd:sequence>
695
- <xsd:attribute name="ID" type="xsd:ID"/>
696
- <xsd:attribute name="STYLEREFS" type="xsd:IDREFS" use="optional"/>
697
- <xsd:attribute name="HEIGHT" type="xsd:float" use="required"/>
698
- <xsd:attribute name="WIDTH" type="xsd:float" use="required"/>
699
- <xsd:attribute name="HPOS" type="xsd:float" use="required"/>
700
- <xsd:attribute name="VPOS" type="xsd:float" use="required"/>
701
- <xsd:attribute name="BASELINE" type="xsd:float" use="optional"/>
702
- <xsd:attribute name="CS" type="xsd:boolean" use="optional">
703
- <xsd:annotation>
704
- <xsd:documentation>Correction Status. Indicates whether manual correction has been done or not.</xsd:documentation>
705
- </xsd:annotation>
706
- </xsd:attribute>
707
- </xsd:complexType>
708
- </xsd:element>
709
- </xsd:sequence>
710
- <xsd:attribute name="language" type="xsd:language" use="optional"/>
711
- </xsd:extension>
712
- </xsd:complexContent>
713
- </xsd:complexType>
714
- </xsd:schema>