<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<meta name="ocr-system" content="kraken"/>
		<meta name="ocr-capabilities" content="ocr_page ocr_line ocrx_word"/>
		{% if page.scripts %}
		<meta name="ocr-scripts" content="{{ page.scripts|join(' ') }}"/>
		{% endif %}
	</head>
	<body>
		<div class="ocr_page" title="bbox 0 0 {{ page.size|join(' ') }}; image {{ page.name }}" style="writing-mode: {{ page.writing_mode }};">
			{% for line in page.lines %}
			<span class="ocr_line" id="line_{{ line.index }}" title="bbox {{ line.bbox|join(' ') }}; x_bboxes {{ line.cuts|map('join', ' ')|join(' ') }}">
			{% for segment in line.recognition %}
				<span class="ocrx_word" id="segment_{{ segment.index }}" title="bbox {{ segment.bbox|join(' ') }}; x_confs {{ segment.confidences|join(' ') }}">{{ segment.text }}</span>
			{% endfor %}
			</span>
			<br/>
			{% endfor %}

		</div>
	</body>
</html>
