Loading conllusvg/conllusvgview.js +11 −3 Original line number Diff line number Diff line // CoNLL-U SVG Viewer by Koichi Yasuoka, October 18, 2020. // CoNLL-U SVG Viewer by Koichi Yasuoka, January 10, 2024 // Nos. 1, 2, 4, 5, 7, 8 and 10 columns are used. "use strict"; var conllusvg=new Object(); Loading Loading @@ -191,6 +191,13 @@ conllusvg.makeNodes=function(textid){ f=k[1].text.split("-"); if(f.length==2&&k[2]!=null){ if(f[0]==c.nodes[i].id&&k[2].text!="_"){ w=c.nodes[i].form for(j=i+1;c.nodes[j]!=null;j++){ if(c.nodes[j].id-f[1]>0) break; w=w+c.nodes[j].form; } if(w!=k[2].text){ c.nodes[i].form=k[2].text; for(j=i+1;c.nodes[j]!=null;j++){ if(c.nodes[j].id-f[1]>0) Loading @@ -202,6 +209,7 @@ conllusvg.makeNodes=function(textid){ } } } } conllusvg.groupNodes=function(textid){ var c=conllusvg.main[textid]; var x,i,j; Loading Loading
conllusvg/conllusvgview.js +11 −3 Original line number Diff line number Diff line // CoNLL-U SVG Viewer by Koichi Yasuoka, October 18, 2020. // CoNLL-U SVG Viewer by Koichi Yasuoka, January 10, 2024 // Nos. 1, 2, 4, 5, 7, 8 and 10 columns are used. "use strict"; var conllusvg=new Object(); Loading Loading @@ -191,6 +191,13 @@ conllusvg.makeNodes=function(textid){ f=k[1].text.split("-"); if(f.length==2&&k[2]!=null){ if(f[0]==c.nodes[i].id&&k[2].text!="_"){ w=c.nodes[i].form for(j=i+1;c.nodes[j]!=null;j++){ if(c.nodes[j].id-f[1]>0) break; w=w+c.nodes[j].form; } if(w!=k[2].text){ c.nodes[i].form=k[2].text; for(j=i+1;c.nodes[j]!=null;j++){ if(c.nodes[j].id-f[1]>0) Loading @@ -202,6 +209,7 @@ conllusvg.makeNodes=function(textid){ } } } } conllusvg.groupNodes=function(textid){ var c=conllusvg.main[textid]; var x,i,j; Loading