-
Notifications
You must be signed in to change notification settings - Fork 23
/
index.html
231 lines (192 loc) · 9.66 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!doctype HTML>
<html lang="en">
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/notie/3.2.0/notie.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.9.0/themes/prism.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.9.0/themes/prism-coy.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.min.css" />
<link rel="stylesheet" href="ocr-fileformat.css"/>
<link rel="icon" type="image/png" sizes="32x32" href="favicon.png">
<title>OCR Fileformat</title>
</head>
<body>
<!-- Static navbar -->
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">OCR Fileformat</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a data-toggle="tab" href="#transform">Transform</a></li>
<li class=""><a data-toggle="tab" href="#validate">Validate</a></li>
<li><a data-toggle="tab" href="#help">Help</a></li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</nav>
<div class="container">
<section class="tab-content">
<div class="tab-pane active" id="transform">
<div class="row">
<div class="col-xs-3">
<!-- Nav tabs -->
<ul class="nav nav-tabs nav-justified" role="tablist">
<li role="presentation" class="active">
<a role="tab" data-toggle="tab" href="#transform-url-tab" tabindex=-1>URL</a>
</li>
<li role="presentation">
<a role="tab" data-toggle="tab" href="#transform-file-tab" tabindex=-1>Upload</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<!-- Tab panes -->
<div class="tab-content input">
<div role="tabpanel" class="tab-pane active" id="transform-url-tab">
<input id="transform-url"
class="form-control"
type="url"
placeholder="http://example.org/xml"
style="width:100%" />
</div>
<div role="tabpanel" class="tab-pane" id="transform-file-tab">
<input id="transform-file"
class="form-control"
type="file"
style="width:100%" />
</div>
</div>
</div>
<div class="col-xs-6">
<div class="form-inline formats" role="form">
<select id="transform-from" class="form-control" disabled>
<option disabled selected value> -- input -- </option>
</select>
<select id="transform-to" class="form-control" disabled>
<option disabled selected value> -- output -- </option>
</select>
<button id="transform-submit" class="btn btn-success" disabled>
Transform
<span class="hidden glyphicon glyphicon-refresh spinning"></span>
</button>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div id="transform-result" class="result hidden">
<div class="btn-group btn-group-sm" role="group">
<a class="btn btn-default btn-primary download">
<span class="glyphicon glyphicon-download"> </span>Download
</a>
</div>
<pre>
<code class="language-markup">
<code></code>
</code>
</pre>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="validate">
<div class="row">
<div class="col-xs-6">
<!-- Tab panes -->
<div class="tab-content input">
<div role="tabpanel" class="tab-pane active" id="validate-url-tab">
<input id="validate-url"
class="form-control"
type="url"
placeholder="http://example.org/xml"
style="width:100%" />
</div>
<div role="tabpanel" class="tab-pane" id="validate-file-tab">
<input id="validate-file"
class="form-control"
type="file"
style="width:100%" />
</div>
</div>
<!-- Nav tabs -->
<ul class="nav nav-tabs nav-justified" role="tablist">
<li role="presentation" class="active">
<a role="tab" data-toggle="tab" href="#validate-url-tab" tabindex=-1>URL</a>
</li>
<li role="presentation">
<a role="tab" data-toggle="tab" href="#validate-file-tab" tabindex=-1>Upload</a>
</li>
</ul>
</div>
<div class="col-xs-6">
<div class="form-inline formats" role="form">
<select id="validate-format" class="form-control">
<option disabled selected value> -- format -- </option>
</select>
<button id="validate-submit" class="btn btn-success" disabled>
Validate
<span class="hidden glyphicon glyphicon-refresh spinning"></span>
</button>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="result hidden" id="validate-result">
<pre>
<code class="language-markup">
<code></code>
</code>
</pre>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="help">
<h3>Examples</h3>
<h4>ABBYY FineReader</h4>
<ul>
<li><a href="https://digi.bib.uni-mannheim.de/~stweil/ocr-praxis/Testseiten/abbyy/417576986_0031.xml">https://digi.bib.uni-mannheim.de/~stweil/ocr-praxis/Testseiten/abbyy/417576986_0031.xml</a></li>
</ul>
<h4>hOCR</h4>
<ul>
<li><a href="https://cdn.rawgit.com/kba/ocr-fileformat-samples/master/samples/hocr/1.1/wetzel_reisebegleiter_1901_0021.hocr">https://cdn.rawgit.com/kba/ocr-fileformat-samples/master/samples/hocr/1.1/wetzel_reisebegleiter_1901_0021.hocr</a></li>
<li><a href="https://digi.bib.uni-mannheim.de/~stweil/ocr-praxis/0001-tesseract.hocr">https://digi.bib.uni-mannheim.de/~stweil/ocr-praxis/0001-tesseract.hocr</a></li>
</ul>
<h4>ALTO</h4>
<ul>
<li><a href="http://chroniclingamerica.loc.gov/lccn/sn86069133/1910-10-31/ed-1/seq-1/ocr.xml">http://chroniclingamerica.loc.gov/lccn/sn86069133/1910-10-31/ed-1/seq-1/ocr.xml</a></li>
<li><a href="https://digi.bib.uni-mannheim.de/~stweil/ocr-praxis/Testseiten/alto/417576986_0031.xml">https://digi.bib.uni-mannheim.de/~stweil/ocr-praxis/Testseiten/alto/417576986_0031.xml</a></li>
<li><a href="https://rawgit.com/kba/ocr-fileformat-samples/master/samples/alto/2.0/wetzel_reisebegleiter_1901_0021.alto">https://rawgit.com/kba/ocr-fileformat-samples/master/samples/alto/2.0/wetzel_reisebegleiter_1901_0021.alto</a></li>
</ul>
<h4>PAGE XML</h4>
<ul>
<li><a href="https://raw.githubusercontent.com/PRImA-Research-Lab/PAGE-XML/master/documentation/example/SimplePage.xml">https://raw.githubusercontent.com/PRImA-Research-Lab/PAGE-XML/master/documentation/example/SimplePage.xml</a></li>
<li><a href="https://raw.githubusercontent.com/PRImA-Research-Lab/PAGE-XML/master/pagecontent/examples/aletheiaexamplepage.xml">https://raw.githubusercontent.com/PRImA-Research-Lab/PAGE-XML/master/pagecontent/examples/aletheiaexamplepage.xml</a></li>
</ul>
<h3>Source Code</h3>
<a href="https://github.com/UB-Mannheim/ocr-fileformat">https://github.com/UB-Mannheim/ocr-fileformat</a>
</div>
</section>
</div>
<a class="github-fork-ribbon left-bottom"
href="https://github.com/UB-Mannheim/ocr-fileformat"
title="Fork me on GitHub">Fork me on GitHub</a>
<script src="https://code.jquery.com/jquery-2.2.4.js" integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!-- <script src="https://cdn.rawgit.com/rndme/download/master/download.min.js"></script> -->
<script src="https://rawgit.com/notifyjs/notifyjs/master/dist/notify.js"></script>
<script src="ocr-fileformat.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.9.0/prism.min.js" integrity="sha512-KnX1xdVSdEHliREuSgUX9kgmit/Wk63n4X3cjoWfISEVsi2Qi2NW88dYyKXCCS8YcFMgzHywK3BIafTfhK2Tig==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</body>
</html>