Commit d52ccd70 authored by Koichi Yasuoka's avatar Koichi Yasuoka
Browse files

Translit supported

parent d1a792fe
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
// CoNLL-U SVG Viewer by Koichi Yasuoka, February 6, 2019.
// Nos. 1, 2, 4, 5, 7, and 8 columns are used.
// CoNLL-U SVG Viewer by Koichi Yasuoka, July 4, 2019.
// Nos. 1, 2, 4, 5, 7, 8 and 10 columns are used.
"use strict";
var conllusvg=new Object();
conllusvg.main=new Array();
@@ -507,10 +507,10 @@ conllusvg.writeNodesSVG=function(textid){
	t.setAttribute("x",c.nodes[n].x*w/90);
      }
    }
    w=c.nodes[n].misc.match(/Gloss=[^|]+/);
    w=c.nodes[n].misc.match(/(Gloss|Translit)=[^|]+/);
    if(w!=null){
      t=document.createElementNS("http://www.w3.org/2000/svg","text");
      t.textContent=w[0].slice(6);
      t.textContent=w[0].slice(w[0].indexOf("=")+1);
      t.setAttribute("x",c.nodes[n].x);
      t.setAttribute("y",c.nodes[n].y+75);
      t.setAttribute("text-anchor","middle");