Commit 2106b672 authored by Koichi Yasuoka's avatar Koichi Yasuoka
Browse files

"show CoNLL-U" button added

parent e7ecf4e7
Loading
Loading
Loading
Loading
+19 −4
Original line number Diff line number Diff line
<!DOCTYPE html><head><meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>CoNLL-U SVG Editor for 漢文 by 安岡孝一, July 18, 2018.</title>
<title>CoNLL-U SVG Editor for 漢文 by 安岡孝一, July 22, 2018.</title>
<script src="conllusvgview.js"></script>
<script src="conllusvgedit.js"></script>
<script src="conllusvgload.js"></script>
@@ -42,6 +42,17 @@ conllusvg.kanbun.mecabUD=function(textid,t){
    s=s+encodeURIComponent(t.value);
  conllusvg.loadRemote(textid,s,true);
}
conllusvg.kanbun.hideShow=function(textid,button){
  var tx=document.getElementById(textid);
  if(button.value=="hide CoNLL-U"){
    tx.style.display="none";
    button.value="show CoNLL-U";
  }
  else{
    tx.style.display="block";
    button.value="hide CoNLL-U";
  }
}
conllusvg.kanbun.consultCHISE=function(textid,z){
  var c=conllusvg.main[textid];
  var ix=c.event.index;
@@ -214,13 +225,17 @@ conllusvg.kanbun.divideForm=function(textid,z){
</script>
</head>
<body>
<table noborder><tr><td nowrap>
<table noborder style="position:fixed; top:0px; left:0px; padding:10px; background:white"><tr><td nowrap>
<input type="text" value="漢文" size=60 onchange="conllusvg.kanbun.mecabUD('conllu',this)" id="status" />
<input type="button" value="show CoNLL-U" onclick="conllusvg.kanbun.hideShow('conllu',this)" />
<input type="button" value="load CoNLL-U" onclick="conllusvg.loadLocal('conllu')" id="gitlab" />
<input type="button" value="save CoNLL-U" onclick="conllusvg.kanbun.saveLocal('conllu')" />
<text id="status" />
</td></tr></table>
<pre id="conllu" contentEditable="true" onfocusout="conllusvg.reparse('conllu')"></pre>
<pre>


</pre>
<pre id="conllu" style="display:none" contentEditable="true" onfocusout="conllusvg.reparse('conllu')"></pre>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" onload="conllusvg.edit(this,'conllu','deprel','upos','xpos');conllusvg.kanbun.checkURL('conllu','gitlab','status')">
</svg>
<select size=6 id="deprel" style="position:absolute; visibility:hidden">