-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfileread_zh.html
626 lines (570 loc) · 20 KB
/
fileread_zh.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
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>京都大学コーパスアノテーションツール</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<!-- lib -->
<script type="text/javascript" src="lib/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="lib/jquery-ui-1.10.1.custom.min.js"></script>
<script type="text/javascript" src="lib/jquery.layout-latest.min.js"></script>
<script type="text/javascript" src="lib/jquery.dropdownPlain.js" language="javascript"></script>
<script type="text/javascript" src="lib/jquery.contextMenu.js"></script>
<!-- js -->
<script type="text/javascript" src="js/setting_zh.js"></script>
<script type="text/javascript" src="js/layout.js"></script>
<script type="text/javascript" src="js/tree.js"></script>
<script type="text/javascript" src="js/parse.js"></script>
<script type="text/javascript" src="js/JumanGrammer.js"></script>
<script type="text/javascript" src="js/RelationFrame.js"></script>
<script type="text/javascript" src="js/WmrphFrame.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/escapeSelector.js"></script>
<!-- css -->
<link rel="stylesheet" type="text/css" href="css/jquery-ui.1.10.1.css" />
<link rel="stylesheet" type="text/css" href="css/layout-default-latest.css" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="css/jquery.contextMenu.css" />
<script type="text/javascript">
$(document).ready(function () {
$('#dialogdemo1').dialog({
autoOpen: false,
title: 'タグ編集',
closeOnEscape: false,
modal: true,
<!-- minHeight: 'auto', -->
autoResize: true,
close: function (event) {
$('.active').removeClass('active');
$('.active-ne').removeClass('active-ne');
},
buttons: {
閉じる: function () {
$(this).dialog('close');
myRelationFrame.switch_select_mode(false);
},
},
});
$('#dialogdemone').dialog({
autoOpen: false,
title: 'タグ編集',
closeOnEscape: false,
modal: true,
autoResize: true,
buttons: {
タグ削除: function () {
myRelationFrame.delete_ne_tag();
$(this).dialog('close');
},
閉じる: function () {
$(this).dialog('close');
},
},
close: function (event) {
$('.active').removeClass('active');
$('.active-ne').removeClass('active-ne');
},
open: function (event) {
$(event.target).addClass('active');
},
});
$('#conj-input-dialog').dialog({
autoOpen: false,
title: '活用形入力',
closeOnEscape: false,
modal: true,
autoResize: true,
m_num: '',
buttons: {
設定: function () {
conj_input_dialog_done(this);
$(this).dialog('close');
},
キャンセル: function () {
$(this).dialog('close');
},
},
});
$('input.memo_tag').blur(function () {
var memo = $(this).val();
myRelationFrame.memo_mode($(this).id, memo, 'メモ');
});
$('#memo').blur(function () {
file_memo_blur();
});
$('#next-dialog').dialog({
autoOpen: false,
title: '次の文へ移動',
closeOnEscape: false,
modal: true,
autoResize: true,
buttons: {
キャンセル: function () {
$(this).dialog('close');
},
保存して次の文へ移動: function () {
myRelationFrame.write_sentence();
<!-- 編集フラグが更新された=アップデート完了 -->
var checkDone = function () {
if (modify_flag == '*') {
$('body').css('cursor', 'progress');
setTimeout(function () {
checkDone();
}, 100);
} else {
$('body').css('cursor', 'default');
myRelationFrame.jump(1);
}
};
checkDone();
$(this).dialog('close');
},
変更を破棄して次の文へ移動: function () {
myRelationFrame.undo();
myRelationFrame.jump(1);
initFlag();
$(this).dialog('close');
},
},
});
$('#prev-dialog').dialog({
autoOpen: false,
title: '前の文へ移動',
closeOnEscape: false,
modal: true,
autoResize: true,
buttons: {
キャンセル: function () {
$(this).dialog('close');
},
保存して前の文へ移動: function () {
myRelationFrame.write_sentence();
<!-- 編集フラグが更新された=アップデート完了 -->
var checkDone = function () {
if (modify_flag == '*') {
$('body').css('cursor', 'progress');
setTimeout(function () {
checkDone();
}, 100);
} else {
$('body').css('cursor', 'default');
myRelationFrame.jump(-1);
}
};
checkDone();
$(this).dialog('close');
},
変更を破棄して前の文へ移動: function () {
myRelationFrame.undo();
myRelationFrame.jump(-1);
initFlag();
$(this).dialog('close');
},
},
});
$('#quit-dialog').dialog({
autoOpen: false,
title: '終了',
closeOnEscape: false,
modal: true,
autoResize: true,
buttons: {
終了をキャンセル: function () {
$(this).dialog('close');
},
保存して終了: function () {
if (myRelationFrame.write_sentence()) {
<!-- 編集フラグが更新された=アップデート完了 -->
var checkDone = function () {
if (modify_flag == '*') {
$('body').css('cursor', 'progress');
setTimeout(function () {
checkDone();
}, 100);
} else {
$('body').css('cursor', 'default');
notify_quit();
}
};
checkDone();
$(this).dialog('close');
}
},
変更を破棄して終了: function () {
myRelationFrame.undo();
notify_quit();
$(this).dialog('close');
},
},
});
$('#wrong-tree-dialog').dialog({
autoOpen: false,
title: '構文木の修正が必要です。',
closeOnEscape: false,
modal: true,
autoResize: true,
buttons: {
キャンセル: function () {
$(this).dialog('close');
},
},
});
}); <!-- ready -->
$(document).on('click', '.tag', function () {
myRelationFrame.click_cell(this);
});
$(document).on('click', '.treeCorner', function () {
myRelationFrame.click_corner(this);
});
$(document).on('mouseover', '.tag_sub_span', function () {
myRelationFrame.highlight_target(this, true);
});
$(document).on('mouseleave', '.tag_sub_span', function () {
myRelationFrame.highlight_target(this, false);
});
$(document).on('click', '.ui-dialog-titlebar-close', function () {
myRelationFrame.switch_select_mode(false);
});
$(document).on('click', '.ne_button', function () {
myRelationFrame.ne_mode(this.id);
});
$(document).on('click', '.ne_radio', function () {
$('.ne#accordion').accordion({ active: 1 });
var ne_tag_index = $(this).attr('id');
if (ne_tag_index == NETags.length - 1) {
myRelationFrame.populate_ne_opt();
} else {
myRelationFrame.clear_ne_opt();
}
netag = NETags[ne_tag_index];
$('#ne_input_title').text(netag);
});
$(document).on('click', '.ui-dialog .dialog-close', function (e) {
$(this).closest('#dialogdemo1').dialog('close');
});
$(document).on('click', '#editable-table .bnst', function (e) {
outerLayout = $('body').layout(layoutOptions);
myRelationFrame.clickBnst(this);
});
$(document).on('click', 'a.tagselect', function () {
select_tag(this);
});
$(document).on('click', '.title_bnst', function () {
// .title .bnst
select_sentence_tag(this);
});
$(document).on('click', '#delbtn', function () {
$($('.delcheck:checked').get().reverse()).each(function () {
var index = $(this).attr('id');
delete_tag(index);
});
});
$(document).on('click', 'img.edit_ok', function () {
var index = $(this).attr('id');
//var input = $(this).val();
edit_tag(index);
});
$(document).on('click', 'a.nearly', function () {
var index = $(this).attr('id');
edit_nearly_tag(0, index);
});
$(document).on('click', 'a.equalopt1', function () {
var index = $(this).attr('id');
edit_nearly_tag(1, index);
});
$(document).on('click', 'a.equalopt2', function () {
var index = $(this).attr('id');
edit_nearly_tag(2, index);
});
$(document).on('click', 'a.kaku', function () {
var kaku = $(this).text();
$(this).addClass('disabled');
add_col(kaku);
});
$(document).on('click', 'a.mode', function () {
var mode = $(this).attr('id');
change_mode(mode);
});
$(document).on('click', '#editable-table .tree', function (event) {
var type = 'D';
if (event.ctrlKey || event.metaKey) {
type = 'P';
} else if (event.shiftKey) {
type = 'I';
} else if (event.altKey) {
type = 'A';
}
var id = $(this).attr('id');
m = id.match(/(\d+)_(\d+)/);
if (m) {
var i = m[1];
var j = m[2];
myRelationFrame.reset_dpnd(i, j, type);
}
});
<!-- NE OPTの詳細 -->
$(document).on('change', '.ne_opt_check', function (event) {
myRelationFrame.update_ne_opt();
});
$(document).on('change', '.ne_opt_radio', function (event) {
myRelationFrame.update_ne_opt();
});
</script>
</head>
<body>
<div class="ui-layout-center">
<div class="ui-layout-center">
<p>
<span class="tit">編集ページ</span>
<!-- <img src="prev_of.png" class="prev"><img src="next_of.png" class="next" /> -->
<img
class="prev"
src="css/images/prev_of.png"
onmouseover="this.src='css/images/prev_on.png'"
onmouseout="this.src='css/images/prev_of.png'"
onClick="preSentence()"
align="middle"
/>
<img
class="next"
src="css/images/next_of.png"
onmouseover="this.src='css/images/next_on.png'"
onmouseout="this.src='css/images/next_of.png'"
onClick="nextSentence()"
align="middle"
/>
<input type="text" size="20" id="searchText" />
<img
src="css/images/search_of.png"
onmouseover="this.src='css/images/search_on.png'"
onmouseout="this.src='css/images/search_of.png'"
value="検索"
id="findBtn"
onclick="search()"
align="middle"
/>
</p>
<div id="fileinfo">
<div id="comment"></div>
<div id="memoContainer">MEMO:<input id="memo" type="text" size="40" /></div>
</div>
<div id="sentence"></div>
<div id="bnst-frame" class=".clear">
<div id="menu-bar">
<ul class="dropdown">
<!-- 格追加 -->
<li>
<img
src="css/images/menu_02_of.png"
onmouseover="this.src='css/images/menu_02_on.png'"
onmouseout="this.src='css/images/menu_02_of.png'"
align="middle"
/>
<ul class="tool" id="case_list"></ul>
</li>
<li>
<img
src="css/images/menu_03_of.png"
onmouseover="this.src='css/images/menu_03_on.png'"
onmouseout="this.src='css/images/menu_03_of.png'"
align="middle"
/>
<ul class="tool" id="compound_case_list"></ul>
</li>
<li>
<img
id="modify_mode"
src="css/images/menu_04_of.png"
onmouseover="this.src='css/images/menu_04_on.png'"
onmouseout="this.src='css/images/menu_04_of.png'"
align="middle"
/>
<ul class="tool">
<li><a class="mode" id="OVERWRITE">修正</a></li>
<li><a class="mode" id="ADD_AND">追加(AND)</a></li>
<li><a class="mode" id="ADD_OR">追加(OR)</a></li>
<li><a class="mode" id="ADD_QUESTION">追加(?)</a></li>
</ul>
</li>
</ul>
<div id="undoRedo">
<input type="button" value="UNDO" id="undoBtn" onclick="undoTree()" />
<input type="button" value="REDO" id="redoBtn" onclick="redoTree()" />
</div>
</div>
<div class="clear"></div>
<div id="out"></div>
<input
type="image"
src="css/images/save_of.png"
onmouseover="this.src='css/images/save_on.png'"
onmouseout="this.src='css/images/save_of.png'"
value="save"
id="saveBtn"
onclick="save()"
/>
<input
type="image"
src="css/images/end_of.png"
onmouseover="this.src='css/images/end_on.png'"
onmouseout="this.src='css/images/end_of.png'"
value="quit"
id="quitBtn"
onclick="quit()"
/>
</div>
<div id="next-dialog" size="auto">
<p>Saveされていません</p>
<p></p>
</div>
<div id="prev-dialog" size="auto">
<p>Saveされていません</p>
<p></p>
</div>
<div id="quit-dialog" size="auto">
<p>Saveされていません</p>
<p></p>
</div>
<div id="wrong-tree-dialog" size="auto">
<p>交差しないように構文木を修正してください。</p>
<p></p>
</div>
</div>
<!-- 形態素・文節情報 -->
<div class="ui-layout-south" id="wmrph">
<p class="tit">形態素・文節操作</p>
<img
src="css/images/comp_of.png"
onmouseover="this.src='css/images/comp_on.png'"
onmouseout="this.src='css/images/comp_of.png'"
id="wmrph_ok"
/>
<img
src="css/images/add_of.png"
onmouseover="this.src='css/images/add_on.png'"
onmouseout="this.src='css/images/add_of.png'"
id="wmrph_add"
/>
<div id="wmrph_content"></div>
<div id="conj-input-dialog">
<input type="text" size="20" id="conj-textbox" />
<p>活用型:活用形という形で入力してください<br />(例:「母音動詞:基本形」)</p>
<p></p>
</div>
</div>
</div>
<!-- 全文表示画面 -->
<div class="ui-layout-west">
<p>
<span class="tit">全文表示</span>
<!-- <div align="center"> -->
<img
src="css/images/rl_of.png"
onmouseover="this.src='css/images/rl_on.png'"
onmouseout="this.src='css/images/rl_of.png'"
class="reloadBtn"
onClick="javascript:reloadData()"
/>
</p>
<!-- </div> -->
<div id="all-sentence"></div>
</div>
<!-- jQuery UI Widjet -->
<div id="dialogdemo1">
<!-- <ul id="menu"> -->
<div id="accordion">
<h3>構文木操作</h3>
<div>
<li id="dialog-tree-select" onclick="select_tree_tag()"><a href="#">タグ選択</a></li>
<!-- class="dialog-close" -->
<li id="dialog-menu-cancel" onclick="cancel_tree_tag()" class="ui-state-disabled">
<a href="#">キャンセル</a>
</li>
<div id="tag_edit_list"></div>
</div>
<h3 class="delete">削除</h3>
<div id="tag_delete_list"></div>
<h3>選択</h3>
<div id="basic_tag_list">
<li><a href="#" class="tagselect">著者</a></li>
<li><a href="#" class="tagselect">読者</a></li>
<li>
<a href="#" class="tagselect">不特定:人</a>
<input
type="text"
name="name"
id="people_count"
style="width: 20%"
class="text ui-widget-content ui-corner-all"
value=""
/>
</li>
<li>
<a href="#" class="tagselect">不特定:物</a>
<input
type="text"
name="name"
id="things_count"
style="width: 20%"
class="text ui-widget-content ui-corner-all"
value=""
/>
</li>
<li>
<a href="#" class="tagselect">不特定:状況</a>
<input
type="text"
name="name"
id="status_count"
style="width: 20%"
class="text ui-widget-content ui-corner-all"
value=""
/>
</li>
<li><a href="#" class="tagselect">前文</a></li>
<li><a href="#" class="tagselect">後文</a></li>
<li><a href="#" class="tagselect">対象外</a></li>
<li><a href="#" class="tagselect">なし</a></li>
<br />
<li class="tagselect_other">文外 その他</li>
<li>
<input
type="text"
name="name"
id="free_tag"
style="width: 60%"
class="text ui-widget-content ui-corner-all"
value=""
/>
<img
class="setBtn"
src="css/images/set_of.png"
onmouseover="this.src='css/images/set_on.png'"
onmouseout="this.src='css/images/set_of.png'"
onclick="select_free_tag()"
/>
</li>
</div>
<h3 class="semiequal">≒</h3>
<div id="tag_nearly_list"></div>
<h3 class="equalopt">構文</h3>
<div id="tag_equalopt1_list"></div>
<h3 class="equalopt">役職</h3>
<div id="tag_equalopt2_list"></div>
</div>
</div>
<div id="dialogdemone">
<div class="ne" id="accordion">
<h3>選択</h3>
<div id="ne_tag_list"></div>
<h3 id="ne_input_title">入力</h3>
<div id="ne_tag_detail">
<div id="ne_opt_tag_list">
<!-- <h4>OPTIONAL詳細</h4> -->
</div>
<div id="ne_tag_input"></div>
</div>
</div>
</div>
</body>
</html>