corretto bug in filtri sintattici

This commit is contained in:
cesare 2023-02-17 10:42:05 +01:00
parent 084b547e6b
commit f0eb195ea4
2 changed files with 12 additions and 9 deletions

View File

@ -37,7 +37,8 @@ document.addEventListener("dblclick", function(e){
}
if (tmpsent==lsentid){
getDimensionsDiv()
//getDimensionsDiv()
showMinimap()
return
}
@ -46,15 +47,17 @@ document.addEventListener("dblclick", function(e){
var main=runtime1.module(commarc, name => {
if (name === "sentenceStructArcs") {
return new Inspector(document.querySelector("#displayinfo"));
return new Inspector(document.querySelector("#displayinfo"));
}
});
//main.redefine("links", d3.csv("https://hdnlab1.isti.cnr.it/d3search/node_modules/commarcdiag/files/parsint_mod_completo_pre_new_4.csv", d3.autoType));
if (lisid!=''){
var mywidth=document.getElementById('displaycanto').offsetWidth
let svgwidth=Math.min((mywidth-65), 800)
console.log('here graph '+lisid+' '+lsentid)
main.redefine('width', 605);
main.redefine("lisid", lisid);
@ -73,11 +76,10 @@ document.addEventListener("dblclick", function(e){
collection[i].style.color = colorssp(mapsynttypestopalette[synttp]);
}
//collection[i].style.removeProperty('color');
//collection[i].style.removeProperty('color');
}
getDimensionsDiv()
showMinimap()
}
else
return

View File

@ -642,7 +642,8 @@ function buildSintacticClause(clause, parsedquery, whereind) {
parsedquery.where.at(-1).triples.push(myf);
}
if (typeS != null && typeS != ".+") {
myf = buildsyntClause(macrotipi_sint[typeS])
var alltipi = Object.assign(macrotipi_sint, tipi_sint);
myf = buildsyntClause(alltipi[typeS])
parsedquery.where.at(-1).triples.push(myf);
}
return parsedquery
@ -1245,7 +1246,7 @@ var macrotipi_sint =
"macro escl": "hasClauseType:Esclamativa",
"macro esclu": "hasClauseType:Esclusiva",
"macro finale": "hasClauseType:Finale",
"macro inter": "hasClauseType:Interrogativa",
"macro inter princ": "hasClauseType:Interrogativa",
"macro ipotet": "hasClauseType:Ipotetica",
"macro iussi": "hasClauseType:Iussiva",
"macro limitat": "hasClauseType:Limitativa",