iiif_print 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.env +5 -0
  4. data/.fcrepo_wrapper +4 -0
  5. data/.github/release.yml +20 -0
  6. data/.github/workflows/branches.yml +24 -0
  7. data/.github/workflows/build-lint-test-action.yaml +33 -0
  8. data/.github/workflows/release_labels.yml +25 -0
  9. data/.gitignore +52 -0
  10. data/.rubocop.yml +177 -0
  11. data/.solr_wrapper +8 -0
  12. data/.travis.yml +49 -0
  13. data/CONTRIBUTING.md +181 -0
  14. data/Dockerfile +15 -0
  15. data/Gemfile +52 -0
  16. data/LICENSE +203 -0
  17. data/README.md +203 -0
  18. data/Rakefile +38 -0
  19. data/app/actors/iiif_print/actors/file_set_actor_decorator.rb +56 -0
  20. data/app/assets/config/iiif_print_manifest.js +2 -0
  21. data/app/assets/images/iiif_print/.keep +0 -0
  22. data/app/assets/javascripts/iiif_print/autocomplete_fix.js +33 -0
  23. data/app/assets/javascripts/iiif_print/ocr_search.js.erb +6 -0
  24. data/app/assets/javascripts/iiif_print.js +3 -0
  25. data/app/assets/stylesheets/iiif_print/_iiif_print.scss +4 -0
  26. data/app/assets/stylesheets/iiif_print/_issue_search.scss +13 -0
  27. data/app/assets/stylesheets/iiif_print/_issues_calendar.scss +18 -0
  28. data/app/assets/stylesheets/iiif_print/_newspapers_search.scss +38 -0
  29. data/app/assets/stylesheets/iiif_print/_search_results.scss +6 -0
  30. data/app/helpers/hyrax/iiif_helper.rb +22 -0
  31. data/app/helpers/iiif_print/application_helper.rb +5 -0
  32. data/app/helpers/iiif_print_helper.rb +64 -0
  33. data/app/indexers/concerns/iiif_print/child_indexer.rb +34 -0
  34. data/app/indexers/concerns/iiif_print/file_set_indexer.rb +29 -0
  35. data/app/mailers/iiif_print/application_mailer.rb +8 -0
  36. data/app/models/concerns/iiif_print/set_child_flag.rb +29 -0
  37. data/app/models/concerns/iiif_print/solr/document.rb +47 -0
  38. data/app/models/iiif_print/application_record.rb +6 -0
  39. data/app/models/iiif_print/derivative_attachment.rb +8 -0
  40. data/app/models/iiif_print/iiif_search_response_decorator.rb +17 -0
  41. data/app/models/iiif_print/ingest_file_relation.rb +14 -0
  42. data/app/models/iiif_print/pending_relationship.rb +7 -0
  43. data/app/presenters/iiif_print/iiif_manifest_presenter_behavior.rb +10 -0
  44. data/app/presenters/iiif_print/iiif_manifest_presenter_factory_behavior.rb +33 -0
  45. data/app/presenters/iiif_print/work_show_presenter_decorator.rb +29 -0
  46. data/app/renderers/hyrax/renderers/faceted_attribute_renderer_decorator.rb +18 -0
  47. data/app/search_builders/concerns/iiif_print/exclude_models.rb +17 -0
  48. data/app/search_builders/concerns/iiif_print/highlight_search_params.rb +14 -0
  49. data/app/services/iiif_print/manifest_builder_service_behavior.rb +97 -0
  50. data/app/services/iiif_print/pluggable_derivative_service.rb +120 -0
  51. data/app/views/catalog/_snippets_more.html.erb +16 -0
  52. data/app/views/hyrax/base/_representative_media.html.erb +9 -0
  53. data/app/views/hyrax/base/iiif_viewers/_universal_viewer.html.erb +8 -0
  54. data/app/views/hyrax/file_sets/_actions.html.erb +45 -0
  55. data/bin/rails +13 -0
  56. data/config/fcrepo_wrapper_test.yml +5 -0
  57. data/config/initializers/assets.rb +2 -0
  58. data/config/locales/iiif_print.de.yml +148 -0
  59. data/config/locales/iiif_print.en.yml +119 -0
  60. data/config/locales/iiif_print.es.yml +148 -0
  61. data/config/locales/iiif_print.fr.yml +149 -0
  62. data/config/locales/iiif_print.it.yml +142 -0
  63. data/config/locales/iiif_print.pt-BR.yml +148 -0
  64. data/config/locales/iiif_print.zh.yml +142 -0
  65. data/config/solr_wrapper_test.yml +9 -0
  66. data/config/test-fixture/solr-config/_rest_managed.json +3 -0
  67. data/config/test-fixture/solr-config/admin-extra.html +31 -0
  68. data/config/test-fixture/solr-config/elevate.xml +36 -0
  69. data/config/test-fixture/solr-config/mapping-ISOLatin1Accent.txt +246 -0
  70. data/config/test-fixture/solr-config/protwords.txt +21 -0
  71. data/config/test-fixture/solr-config/schema.xml +366 -0
  72. data/config/test-fixture/solr-config/scripts.conf +24 -0
  73. data/config/test-fixture/solr-config/solrconfig.xml +322 -0
  74. data/config/test-fixture/solr-config/spellings.txt +2 -0
  75. data/config/test-fixture/solr-config/stopwords.txt +58 -0
  76. data/config/test-fixture/solr-config/stopwords_en.txt +58 -0
  77. data/config/test-fixture/solr-config/synonyms.txt +31 -0
  78. data/config/test-fixture/solr-config/xslt/example.xsl +132 -0
  79. data/config/test-fixture/solr-config/xslt/example_atom.xsl +67 -0
  80. data/config/test-fixture/solr-config/xslt/example_rss.xsl +66 -0
  81. data/config/test-fixture/solr-config/xslt/luke.xsl +337 -0
  82. data/config/vendor/fits.xml +55 -0
  83. data/config/vendor/imagemagick-6-policy.xml +76 -0
  84. data/db/migrate/20181214181358_create_iiif_print_derivative_attachments.rb +12 -0
  85. data/db/migrate/20190107165909_create_iiif_print_ingest_file_relations.rb +11 -0
  86. data/db/migrate/20230109000000_create_iiif_print_pending_relationships.rb +11 -0
  87. data/docker-compose.yml +129 -0
  88. data/iiif_print.gemspec +43 -0
  89. data/lib/generators/iiif_print/assets_generator.rb +29 -0
  90. data/lib/generators/iiif_print/catalog_controller_generator.rb +32 -0
  91. data/lib/generators/iiif_print/install_generator.rb +52 -0
  92. data/lib/generators/iiif_print/templates/config/initializers/iiif_print.rb +22 -0
  93. data/lib/generators/iiif_print/templates/iiif_print.scss +1 -0
  94. data/lib/iiif_print/base_derivative_service.rb +113 -0
  95. data/lib/iiif_print/blacklight_iiif_search/annotation_decorator.rb +84 -0
  96. data/lib/iiif_print/catalog_search_builder.rb +31 -0
  97. data/lib/iiif_print/configuration.rb +99 -0
  98. data/lib/iiif_print/data/fileset_helper.rb +25 -0
  99. data/lib/iiif_print/data/path_helper.rb +40 -0
  100. data/lib/iiif_print/data/work_derivatives.rb +323 -0
  101. data/lib/iiif_print/data/work_file.rb +92 -0
  102. data/lib/iiif_print/data/work_files.rb +199 -0
  103. data/lib/iiif_print/data.rb +35 -0
  104. data/lib/iiif_print/engine.rb +77 -0
  105. data/lib/iiif_print/errors.rb +9 -0
  106. data/lib/iiif_print/image_tool.rb +119 -0
  107. data/lib/iiif_print/jobs/application_job.rb +8 -0
  108. data/lib/iiif_print/jobs/child_works_from_pdf_job.rb +107 -0
  109. data/lib/iiif_print/jobs/create_relationships_job.rb +78 -0
  110. data/lib/iiif_print/jp2_derivative_service.rb +118 -0
  111. data/lib/iiif_print/jp2_image_metadata.rb +81 -0
  112. data/lib/iiif_print/lineage_service.rb +41 -0
  113. data/lib/iiif_print/metadata.rb +125 -0
  114. data/lib/iiif_print/pdf_derivative_service.rb +42 -0
  115. data/lib/iiif_print/split_pdfs/child_work_creation_from_pdf_service.rb +75 -0
  116. data/lib/iiif_print/split_pdfs/pages_into_images_service.rb +130 -0
  117. data/lib/iiif_print/split_pdfs/pdf_image_extraction_service.rb +85 -0
  118. data/lib/iiif_print/text_extraction/alto_reader.rb +123 -0
  119. data/lib/iiif_print/text_extraction/hocr_reader.rb +172 -0
  120. data/lib/iiif_print/text_extraction/page_ocr.rb +87 -0
  121. data/lib/iiif_print/text_extraction/render_alto.rb +84 -0
  122. data/lib/iiif_print/text_extraction/word_coords_builder.rb +38 -0
  123. data/lib/iiif_print/text_extraction.rb +11 -0
  124. data/lib/iiif_print/text_extraction_derivative_service.rb +47 -0
  125. data/lib/iiif_print/text_formats_from_alto_service.rb +77 -0
  126. data/lib/iiif_print/tiff_derivative_service.rb +50 -0
  127. data/lib/iiif_print/version.rb +3 -0
  128. data/lib/iiif_print/works_controller_behavior.rb +9 -0
  129. data/lib/iiif_print.rb +136 -0
  130. data/lib/tasks/set_child_works.rake +22 -0
  131. data/spec/.keep.txt +1 -0
  132. data/spec/factories/ability.rb +6 -0
  133. data/spec/factories/newspaper_issue.rb +7 -0
  134. data/spec/factories/newspaper_page.rb +7 -0
  135. data/spec/factories/newspaper_page_solr_document.rb +12 -0
  136. data/spec/factories/newspaper_title.rb +8 -0
  137. data/spec/factories/uploaded_pdf_file.rb +9 -0
  138. data/spec/factories/uploaded_txt_file.rb +9 -0
  139. data/spec/factories/user.rb +13 -0
  140. data/spec/fixtures/files/4.1.07.jp2 +0 -0
  141. data/spec/fixtures/files/4.1.07.tiff +0 -0
  142. data/spec/fixtures/files/README.md +7 -0
  143. data/spec/fixtures/files/alto-2-0.xsd +714 -0
  144. data/spec/fixtures/files/broken-truncated.pdf +0 -0
  145. data/spec/fixtures/files/credits.md +16 -0
  146. data/spec/fixtures/files/lowres-gray-via-ndnp-sample.tiff +0 -0
  147. data/spec/fixtures/files/minimal-1-page.pdf +0 -0
  148. data/spec/fixtures/files/minimal-2-page.pdf +0 -0
  149. data/spec/fixtures/files/minimal-alto.xml +31 -0
  150. data/spec/fixtures/files/ndnp-alto-sample.xml +24 -0
  151. data/spec/fixtures/files/ndnp-sample1-json.json +1 -0
  152. data/spec/fixtures/files/ndnp-sample1-txt.txt +1 -0
  153. data/spec/fixtures/files/ndnp-sample1.pdf +0 -0
  154. data/spec/fixtures/files/ocr_alto.xml +202 -0
  155. data/spec/fixtures/files/ocr_alto_scaled_4pts_per_px.xml +202 -0
  156. data/spec/fixtures/files/ocr_color.tiff +0 -0
  157. data/spec/fixtures/files/ocr_gray.jp2 +0 -0
  158. data/spec/fixtures/files/ocr_gray.tiff +0 -0
  159. data/spec/fixtures/files/ocr_mono.tiff +0 -0
  160. data/spec/fixtures/files/ocr_mono_text_hocr.html +78 -0
  161. data/spec/fixtures/files/page1.tiff +0 -0
  162. data/spec/fixtures/files/sample-4page-issue.pdf +0 -0
  163. data/spec/fixtures/files/sample-color-newsletter.pdf +0 -0
  164. data/spec/fixtures/files/thumbnail.jpg +0 -0
  165. data/spec/helpers/hyrax/iiif_helper_spec.rb +65 -0
  166. data/spec/helpers/iiif_print_helper_spec.rb +43 -0
  167. data/spec/iiif_print/base_derivative_service_spec.rb +11 -0
  168. data/spec/iiif_print/blacklight_iiif_search/annotation_decorator_spec.rb +51 -0
  169. data/spec/iiif_print/catalog_search_builder_spec.rb +60 -0
  170. data/spec/iiif_print/configuration_spec.rb +67 -0
  171. data/spec/iiif_print/data/work_derivatives_spec.rb +245 -0
  172. data/spec/iiif_print/data/work_file_spec.rb +99 -0
  173. data/spec/iiif_print/data/work_files_spec.rb +237 -0
  174. data/spec/iiif_print/image_tool_spec.rb +109 -0
  175. data/spec/iiif_print/jobs/child_works_from_pdf_job_spec.rb +30 -0
  176. data/spec/iiif_print/jobs/create_relationships_job_spec.rb +17 -0
  177. data/spec/iiif_print/jp2_image_metadata_spec.rb +37 -0
  178. data/spec/iiif_print/lineage_service_spec.rb +13 -0
  179. data/spec/iiif_print/metadata_spec.rb +115 -0
  180. data/spec/iiif_print/split_pdfs/pages_into_images_service_spec.rb +6 -0
  181. data/spec/iiif_print/text_extraction/alto_reader_spec.rb +49 -0
  182. data/spec/iiif_print/text_extraction/hocr_reader_spec.rb +45 -0
  183. data/spec/iiif_print/text_extraction/page_ocr_spec.rb +84 -0
  184. data/spec/iiif_print/text_extraction/render_alto_spec.rb +54 -0
  185. data/spec/iiif_print/text_extraction/word_coords_builder_spec.rb +44 -0
  186. data/spec/iiif_print_spec.rb +51 -0
  187. data/spec/misc_shared.rb +111 -0
  188. data/spec/models/iiif_print/derivative_attachment_spec.rb +37 -0
  189. data/spec/models/iiif_print/ingest_file_relation_spec.rb +56 -0
  190. data/spec/models/solr_document_spec.rb +14 -0
  191. data/spec/presenters/iiif_print/iiif_manifest_presenter_behavior_spec.rb +19 -0
  192. data/spec/presenters/iiif_print/iiif_manifest_presenter_factory_behavior_spec.rb +49 -0
  193. data/spec/services/iiif_print/jp2_derivative_service_spec.rb +59 -0
  194. data/spec/services/iiif_print/pdf_derivative_service_spec.rb +66 -0
  195. data/spec/services/iiif_print/pluggable_derivative_service_spec.rb +178 -0
  196. data/spec/services/iiif_print/text_extraction_derivative_service_spec.rb +82 -0
  197. data/spec/services/iiif_print/text_formats_from_alto_service_spec.rb +127 -0
  198. data/spec/services/iiif_print/tiff_derivative_service_spec.rb +65 -0
  199. data/spec/spec_helper.rb +181 -0
  200. data/spec/support/controller_level_helpers.rb +28 -0
  201. data/spec/support/iiif_print_models.rb +127 -0
  202. data/spec/test_app_templates/blacklight.yml +9 -0
  203. data/spec/test_app_templates/fedora.yml +15 -0
  204. data/spec/test_app_templates/lib/generators/test_app_generator.rb +40 -0
  205. data/spec/test_app_templates/redis.yml +9 -0
  206. data/spec/test_app_templates/solr/conf/schema.xml +362 -0
  207. data/spec/test_app_templates/solr/conf/solrconfig.xml +322 -0
  208. data/spec/test_app_templates/solr.yml +7 -0
  209. data/tasks/iiif_print_dev.rake +34 -0
  210. data/tmp/.keep +0 -0
  211. metadata +605 -0
@@ -0,0 +1,714 @@
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>