-
Notifications
You must be signed in to change notification settings - Fork 12
/
ocr-gt-tools.pug
318 lines (297 loc) · 9.96 KB
/
ocr-gt-tools.pug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
doctype html
html(lang='de')
head
meta(charset='utf-8')
title OCR-GT
link(href='vendor.css', rel='stylesheet')
link(rel='shortcut icon', type='image/x-icon', href='favicon.ico')
link(href='ocr-gt-tools.css', rel='stylesheet')
//- meta(http-equiv="Content-Type",content="text/html;charset=utf-8")
body
//*
// Page info on the right
//*
script#tpl-rightSidebar(type='text/x-handlebars-template')
.panel.panel-success
.panel-heading
h4.panel-title
a(data-toggle='collapse', href='#page-comment') Seiten-Kommentar
#page-comment.panel-collapse.collapse.in
a.list-group-item(target='_blank', href='{{ this.url.hires-url }}')
img(src='{{ this.url.thumb-url }}')
textarea(placeholder="Seitenkommentar...") {{ page-comment }}
.panel.panel-info
.panel-heading
h4.panel-title
a(data-toggle='collapse', href='#work-info') Werk-Info
#work-info.panel-collapse.collapse.in
.list-group
a.list-group-item(target='_blank', href='{{ this.url.landing-page-url }}')
i.fa.fa-download
| Werk in Digitaler Bibliothek
| {{#each pages}}
a.list-group-item(href='\#{{ this.url.thumb-url }}')
i.fa.fa-history
| Seite {{this.ids.page}}
| {{/each}}
.panel.panel-info
.panel-heading
h4.panel-title
a(data-toggle='collapse', href='#page-info') Seiten-Info
#page-info.panel-collapse.collapse.in
.list-group
a#download-comments.list-group-item(target='_blank', href='{{ this.url.comment-url }}')
i.fa.fa-download
| Anmerkungen
a#download-correction.list-group-item(target='_blank', href='{{ this.url.correction-url }}')
i.fa.fa-download
| Korrektur
//*
// A cheatsheet entry
//*
script#tpl-cheatsheetEntry(type='text/x-handlebars-template')
tr(id="cheatsheet-{{ id }}")
td
a(target="_blank", href="https://github.com/UB-Mannheim/ocr-gt-tools/wiki/Special-Characters\#{{ id }}")
| {{ name.de }}
td {{{ sample }}}
td
button.code(data-clipboard-text="{{ recognition }}")
span.fa.fa-clipboard.clipboard
span.recognition {{ recognition }}
//*
// A line of page
//*
script#tpl-lineContainer(type='text/x-handlebars-template')
.row.line(id="line-{{ id }}")
script#tpl-line(type='text/x-handlebars-template')
.col-sm-1.button-col(data-target="#line-comment-{{ id }}")
.btn-group.btn-group-sm(role='group')
.btn-group(role='group')
a.btn.btn-default.toggle-line-comment(data-target="#line-comment-{{ id }}")
i.show-line-comment.fa.fa-commenting-o
i.hide-line-comment.fa.fa-map-o.hidden
.btn-group(role='group')
button.btn.btn-default.dropdown-toggle(data-toggle="dropdown", type='button', aria-haspopup="true", aria-expanded="false", tabindex="-1")
i.fa.fa-exclamation
span.caret
ul.dropdown-menu
li
a.btn.btn-default.add-comment(data-target="#line-comment-{{ id }}", data-tag="#text-italic")
i.fa.fa-italic
| Kursiv
li
a.btn.btn-warning.add-comment(data-target="#line-comment-{{ id }}", data-tag="#wrong-image-section")
i.fa.fa-exclamation-circle
| Fehler in Vorlage
.col-sm-1.select-col.hidden(data-target="#line-comment-{{ id }}")
input(type="checkbox")
.col-sm-11.lines-col
.panel.panel-default
ul.list-group
li.list-group-item.line-image
img(src="{{ image }}", height="30")
li.list-group-item.line-transcription
input(type='text', value='{{ transcription }}')
li.list-group-item.line-comment(id="line-comment-{{ id }}")
textarea(placeholder="Kommentar zu dieser Zeile") {{ comment }}
//*
// A row of history
//*
script#tpl-historyItem(type='text/x-handlebars-template')
tr
td {{ date }}
td
a(href="\#{{ url }}") {{ url }}
td {{ action }}
td {{ ip }}
//*
// Modal popup containing the history
//*
#history-modal.modal.fade(tabindex="-1")
.modal-admin
.modal-content
.modal-header
h2.modal-title Verlauf
button.close(type='button', data-dismiss='modal')
span ×
.modal-body
table.table
thead
tr
th Date
th URL
th Action
th IP
tbody
//*
// Help modal
//*
#cheatsheet-modal.modal.fade(tabindex="-1")
.modal-admin
.modal-content
.modal-header
h4.modal-title Eingabe Spickzettel
.cheatsheet-entry
input(type='text')
button.close(type='button', data-dismiss='modal')
span ×
.modal-body
table.table.table-condensed
tbody.cheatsheet
//*
// Will contain the raw HTML
//*
#raw-html.hidden
//*
// Will contain the toolbar for the multi select mode
//*
#select-bar.hidden
.panel-heading.clearfix
button.toggle-select-mode.close.pull-left(type='button', data-dismiss='modal')
span ×
.btn-group.pull-right
a.btn.btn-sm.btn-default.select-all
i.fa.btn-sm.fa-arrows-alt
| Alle auswählen
a.btn.btn-sm.btn-default.select-none
i.fa.btn-sm.fa-arrows-alt
| Auswahl aufheben
a.btn.btn-sm.btn-default.select-toggle
i.fa.btn-sm.fa-arrows-alt
| Auswahl umkehren
a.btn.btn-sm.btn-default.add-multi-comment(data-tag="#text-italic")
i.fa.btn-sm.fa-italic
| Kursiv
a.btn.btn-sm.btn-warning.add-multi-comment(data-tag="#wrong-image-section")
i.fa.btn-sm.fa-exclamation-circle
| Fehler in Vorlage
//*
// The navbar on the left side
//*
#toolbar.nav.navbar.navbar-default(role='navigation')
// Brand and toggle get grouped for better mobile display
.navbar-header
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-ex1-collapse')
span.sr-only Toggle navigation
// Collect the nav links, forms, and other content for toggling
.collapse.navbar-collapse.navbar-ex1-collapse
ul.nav.navbar-nav
li
button#save_button.btn.btn-success.disabled
span#wait_save.hidden
i.fa.fa-4x.fa-spinner.fa-pulse.fa-fw
span#disk
i.fa.fa-4x.fa-save.fa-fw
//- Info
li.dropdown.info
a.btn.dropdown-toggle(data-toggle='dropdown')
i.fa.fa-4x.fa-info-circle
ul.dropdown-menu.navbar-default
li
.btn-group.btn-group-vertical
a.btn.btn-default.pull-right(target="_blank", href="https://github.com/UB-Mannheim/ocr-gt-tools/wiki/Error-Tags")
i.fa.fa-exclamation
| Fehler-Kategorien
button.btn.btn-default(data-toggle="modal",data-target="#cheatsheet-modal",data-keyboard="true")
i.fa.fa-question
| Spickzettel
button.btn.btn-default(data-toggle="modal",data-target="#history-modal",data-keyboard="true")
i.fa.fa-history
| Verlauf
//- Zoom
li.dropdown.disabled.zoom
a.btn.dropdown-toggle(data-toggle='dropdown')
i.fa.fa-search-plus.fa-4x
ul.dropdown-menu.navbar-default
li
.btn-group.btn-group-vertical
button#zoom-in.btn.btn-default(type='button')
i.fa.fa-search-plus
| Größer
button#zoom-reset.btn.btn-default(type='button')
i.fa.fa-search
| Zurücksetzen
button#zoom-out.btn.btn-default(type='button')
i.fa.fa-search-minus
| Kleiner
//- Show/hide comments
li.dropdown.disabled.views
a.btn.dropdown-toggle(data-toggle='dropdown')
i.fa.fa-4x.fa-eye
ul.dropdown-menu.navbar-default
li
.btn-group.btn-group-vertical
button.set-view.btn.btn-default(type='button', data-target='*')
i.fa.fa-picture-o
i.fa.fa-commenting-o
i.fa.fa-align-left
| Vollansicht
button.set-view.btn.btn-default(type='button', data-target='.line-transcription,.line-image')
i.fa.fa-picture-o
i.fa.fa-align-left
| Bild + Text
button.set-view.btn.btn-default(type='button', data-target='.line-comment,.line-image')
i.fa.fa-picture-o
i.fa.fa-commenting-o
| Bild + Kommentar
button.set-view.btn.btn-default(type='button', data-target='.line-comment,.line-transcription')
i.fa.fa-align-left
i.fa.fa-commenting-o
| Text + Kommentar
button.set-view.btn.btn-default(type='button', data-target='.line-image')
i.fa.fa-picture-o
| Bild
button.set-view.btn.btn-default(type='button', data-target='.line-transcription')
i.fa.fa-align-left
| Text
button.set-view.btn.btn-default(type='button', data-target='.line-comment')
i.fa.fa-commenting-o
| Kommentar
li.dropdown.disabled.filter
a.toggle-select-mode.btn.dropdown-toggle(data-toggle='dropdown')
i.fa.fa-4x.fa-plus-square-o
//- Filter
li.dropdown.disabled.filter
a.btn.dropdown-toggle(data-toggle='dropdown')
i.fa.fa-4x.fa-sort
ul.dropdown-menu.navbar-default
li
.btn-group.btn-group-vertical
button#sort-line.btn.btn-default
i.fa.fa-sort
| Normale Sortierung (auf)
button#sort-line-desc.btn.btn-default
i.fa.fa-sort
| Umgekehrte Sortierung (ab)
button#sort-width.btn.btn-default
i.fa.fa-sort
| Nach Breite sortieren (auf)
button#sort-width-desc.btn.btn-default
i.fa.fa-sort
| Nach Breite sortieren (ab)
//*
//- Here be dragons
//*
.container-fluid
.row
.col-sm-9#root
#dropzone.jumbotron
span#wait-load.hidden
i.fa.fa-spinner.fa-pulse.fa-fw
| Grafik auf dem Dokument ablegen
br
| oder
br
| URL angeben:
br
div.input-group#load-image
input.input-lg.form-control(type='text')
span.input-group-btn
button.btn.btn-default.btn-lg(type="button") Los!
#file-correction
#waiting-animation.hidden
#right-sidebar.col-sm-3.panel-group
script(src='vendor.js')
script(src='ocr-gt-tools.js')
//- vim: sw=2 ts=2 noet ft=pug :