Commit 198d7366 authored by Koichi Yasuoka's avatar Koichi Yasuoka
Browse files

support base64

parent 2dffdcec
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"  width="100%" height="100%" onload="viewerCheckURL('conllu');conllusvg.view(this,'conllu')" onresize="conllusvg.rewrite('conllu')">
<text id="conllu" fill="none" visibility="hidden">
# CoNLL-U SVG Viewer by 安岡孝一, February 12, 2019.
# CoNLL-U SVG Viewer by 安岡孝一, June 1, 2019.
# text = SVGによるUniversal Dependencies可視化ツール
1 SVG SVG PROPN NNP _ 3 obl _ SpaceAfter=No
2 に に ADP 助詞 _ 1 case _ SpaceAfter=No
@@ -21,7 +21,10 @@ function viewerCheckURL(textid){
    return;
  if(1>h.length-i)
    return;
  if(h.indexOf("%",i)>i)
    h=decodeURIComponent(h.slice(i+1))+"\n";
  else
    h=decodeURIComponent(escape(atob(h.slice(i+1).replace(/_/g,"/").replace(/-/g,"+"))))+"\n";
  if(tx.value==null)
    tx.textContent=h;
  else