Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 73729dbf authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

Ajout Fidel US Pronsci expérimental + adaptation de phon2graph_english en fonction

parent b2f91ea0
......@@ -126,6 +126,8 @@ async function getColorisation() {
// ici trouver code pour renvoyer txt brut
} else if (outText[i][0][0][0] == undefined){
console.log("undefined: index",i,outText[i][0][0])
} else {
if (outText[i][0][0][0].graph.match(/\n+/)){
for (h=0; h<outText[i][0][0][0].graph.length; h++) {
......@@ -349,7 +351,7 @@ function showAlignPop(tok) {
} else if (loc2stand[dicoTok[tok][i][1]] == "NZ"){
stand = "static/im/flag-nz.png";
}
tab = tab + "<tr onmousedown='selectAlign(\""+ tok + "\"," + i +")' onmouseup='supprAlignPopDiv();' title='"+dicoTok[tok][i][1]+"'><td><img style='width:35px' src='"+ stand +"'/></td><td>"+dicoTok[tok][i][0]+"</td></tr>";
tab = tab + "<tr onmousedown='selectAlign(\""+ tok + "\"," + i +")' onmouseup='supprAlignPopDiv();' title='"+dicoTok[tok][i][1]+": ["+dicoTok[tok][i][2]+"] "+dicoTok[tok][i][3]+"'><td><img style='width:35px' src='"+ stand +"'/></td><td>"+dicoTok[tok][i][0]+"</td></tr>";
}
tab = tab + "</table>";
alignPopDiv.innerHTML = tab;
......
......@@ -32,7 +32,7 @@ from phon2graph_english import decoupageEn # ENGLISH
phonColFile = "../phon2graph/data/api2class.json"
phonGraphFile = "../phon2graph/data/fidel_wikicolor.scsv" # "../phon2graph/data/phoneme-graphies_fr.scsv"
phonGraphFileEn = "../phon2graph/data/fidel_wikicolor_en.scsv" # ENGLISH
phonGraphFileEn = "../phon2graph/data/fidel_wikicolor_en_global.scsv" # ENGLISH
dicFile = "../wikiphon/dico_frwiktionary-20200301_v2.json"
#dicFileEn = "../wikiphon/dico_enWiktionary-20200704_v1.json" # ENGLISH
......@@ -233,19 +233,21 @@ def mimi(mot, lang):
else:
print("'", mot, "' non trouvé !")
result = [([('phon_inconnu',mot)],"","","Mot non trouvé dans le dictionnaire")]
# Rétablissement de la casse
for r in result:
for m in caseMemory:
cptlettre = 0
while cptlettre < len(mot):
for k,tupl in enumerate(r[0]):
cased = ''
for l in tupl[1]:
cased += l.upper() if cptlettre == m else l
cptlettre += 1
r[0][k] = (tupl[0],cased)
if len(r[0])>0:
for m in caseMemory:
cptlettre = 0
while cptlettre < len(mot):
for k,tupl in enumerate(r[0]):
#print("\t",tupl)
cased = ''
for l in tupl[1]:
cased += l.upper() if cptlettre == m else l
cptlettre += 1
r[0][k] = (tupl[0],cased)
return result
def getEntryByWord(m,mc,t,tc,lang):
......
......@@ -190,257 +190,46 @@ svg {
.phon_schwu { fill: var(--phon_schwu); color:var(--phon_schwu); stop-color:var(--phon_schwu);} /* pour l'anglais u/ʊ */
/* gradients 60% */
.phon_wa {
background:
-webkit-linear-gradient(var(--phon_w) 62%, var(--phon_a) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_wa_maj {
background:
-webkit-linear-gradient(var(--phon_w) 62%, var(--phon_a_maj) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_wa_maj_long {
background:
-webkit-linear-gradient(var(--phon_w) 62%, var(--phon_a_maj) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-decoration: underline var(--phon_a_maj);
}
.phon_wv_maj {
background:
-webkit-linear-gradient(var(--phon_w) 62%, var(--phon_v_maj) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_we_maj_nas {
background:
-webkit-linear-gradient(var(--phon_w) 62%, var(--phon_e_maj_nas) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ts {
background:
-webkit-linear-gradient(var(--phon_t) 62%, var(--phon_s) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ts_maj {
background:
-webkit-linear-gradient(var(--phon_t) 62%, var(--phon_s_maj) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_dz {
background:
-webkit-linear-gradient(var(--phon_d) 62%, var(--phon_z) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_dz_maj {
background:
-webkit-linear-gradient(var(--phon_d) 62%, var(--phon_z_maj) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ks {
background:
-webkit-linear-gradient(var(--phon_k) 62%, var(--phon_s) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ks_maj {
background:
-webkit-linear-gradient(var(--phon_k) 62%, var(--phon_s_maj) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_kw {
background:
-webkit-linear-gradient(var(--phon_k) 62%, var(--phon_w) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_gz {
background:
-webkit-linear-gradient(var(--phon_g) 62%, var(--phon_z) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_gz_maj {
background:
-webkit-linear-gradient(var(--phon_g) 62%, var(--phon_z_maj) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ij {
background:
-webkit-linear-gradient(var(--phon_i) 62%, var(--phon_j) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_h_maj_i {
background:
-webkit-linear-gradient(var(--phon_h_maj) 62%, var(--phon_i) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_nj {
background:
-webkit-linear-gradient(var(--phon_n) 62%, var(--phon_j) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ef {
background:
-webkit-linear-gradient(var(--phon_e) 62%, var(--phon_f) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ju_long {
background:
-webkit-linear-gradient(var(--phon_j) 62%, var(--phon_u) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-decoration: underline var(--phon_u);
}
.phon_schwju {
background:
-webkit-linear-gradient(var(--phon_j) 62%, var(--phon_schwu) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_arobasel {
background:
-webkit-linear-gradient(var(--phon_arobase) 62%, var(--phon_l) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_arobasem {
background:
-webkit-linear-gradient(var(--phon_arobase) 62%, var(--phon_m) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_arobasen {
background:
-webkit-linear-gradient(var(--phon_arobase) 62%, var(--phon_n) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_schwiz {
background:
-webkit-linear-gradient(var(--phon_schwi) 62%, var(--phon_z) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_schwaz {
background:
-webkit-linear-gradient(var(--phon_schwa) 62%, var(--phon_z) 60%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_wa { background:-webkit-linear-gradient(var(--phon_w) 62%, var(--phon_a) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_wa_maj { background: -webkit-linear-gradient(var(--phon_w) 62%, var(--phon_a_maj) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_wa_maj_long { background: -webkit-linear-gradient(var(--phon_w) 62%, var(--phon_a_maj) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-decoration: underline var(--phon_a_maj); }
.phon_wv_maj { background: -webkit-linear-gradient(var(--phon_w) 62%, var(--phon_v_maj) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.phon_we_maj_nas { background:-webkit-linear-gradient(var(--phon_w) 62%, var(--phon_e_maj_nas) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_ts { background:-webkit-linear-gradient(var(--phon_t) 62%, var(--phon_s) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_ts_maj { background:-webkit-linear-gradient(var(--phon_t) 62%, var(--phon_s_maj) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_dz {background:-webkit-linear-gradient(var(--phon_d) 62%, var(--phon_z) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_dz_maj { background:-webkit-linear-gradient(var(--phon_d) 62%, var(--phon_z_maj) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_ks { background:-webkit-linear-gradient(var(--phon_k) 62%, var(--phon_s) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_ks_maj {background:-webkit-linear-gradient(var(--phon_k) 62%, var(--phon_s_maj) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_kw { background: -webkit-linear-gradient(var(--phon_k) 62%, var(--phon_w) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_gz { background:-webkit-linear-gradient(var(--phon_g) 62%, var(--phon_z) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_gz_maj { background: -webkit-linear-gradient(var(--phon_g) 62%, var(--phon_z_maj) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_ij { background:-webkit-linear-gradient(var(--phon_i) 62%, var(--phon_j) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_h_maj_i { background:-webkit-linear-gradient(var(--phon_h_maj) 62%, var(--phon_i) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_nj { background:-webkit-linear-gradient(var(--phon_n) 62%, var(--phon_j) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_ef {background:-webkit-linear-gradient(var(--phon_e) 62%, var(--phon_f) 60%);-webkit-background-clip: text;background-clip: text;-webkit-text-fill-color: transparent;}
.phon_ju_long { background: -webkit-linear-gradient(var(--phon_j) 62%, var(--phon_u) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-decoration: underline var(--phon_u);}
.phon_schwju { background: -webkit-linear-gradient(var(--phon_j) 62%, var(--phon_schwu) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_arobasel { background: -webkit-linear-gradient(var(--phon_arobase) 62%, var(--phon_l) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_arobasem { background: -webkit-linear-gradient(var(--phon_arobase) 62%, var(--phon_m) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_arobasen { background: -webkit-linear-gradient(var(--phon_arobase) 62%, var(--phon_n) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_schwiz { background: -webkit-linear-gradient(var(--phon_schwi) 62%, var(--phon_z) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_schwaz { background: -webkit-linear-gradient(var(--phon_schwa) 62%, var(--phon_z) 60%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
/* gradient 70% */
.phon_ei_maj {
background:
-webkit-linear-gradient(var(--phon_e) 60%, var(--phon_i_maj) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_i_majarobase {
background:
-webkit-linear-gradient(var(--phon_i_maj) 60%, var(--phon_arobase) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_earobase {
background:
-webkit-linear-gradient(var(--phon_e) 60%, var(--phon_arobase) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_au_maj {
background:
-webkit-linear-gradient(var(--phon_a) 60%, var(--phon_u_maj) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_arobaseu_maj {
background:
-webkit-linear-gradient(var(--phon_arobase) 60%, var(--phon_u_maj) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_u_majarobase {
background:
-webkit-linear-gradient(var(--phon_u_maj) 60%, var(--phon_arobase) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_o_maji_maj {
background:
-webkit-linear-gradient(var(--phon_o_maj) 60%, var(--phon_i_maj) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ai_maj {
background:
-webkit-linear-gradient(var(--phon_a) 60%, var(--phon_i_maj) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ei_maj { background: -webkit-linear-gradient(var(--phon_e) 60%, var(--phon_i_maj) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_i_majarobase { background: -webkit-linear-gradient(var(--phon_i_maj) 60%, var(--phon_arobase) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_i_majr { background: -webkit-linear-gradient(var(--phon_i_maj) 60%, var(--phon_r_slash) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_earobase { background: -webkit-linear-gradient(var(--phon_e) 60%, var(--phon_arobase) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_au_maj { background: -webkit-linear-gradient(var(--phon_a) 60%, var(--phon_u_maj) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_arobaseu_maj { background: -webkit-linear-gradient(var(--phon_arobase) 60%, var(--phon_u_maj) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_u_majarobase { background: -webkit-linear-gradient(var(--phon_u_maj) 60%, var(--phon_arobase) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_o_maji_maj { background: -webkit-linear-gradient(var(--phon_o_maj) 60%, var(--phon_i_maj) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_ai_maj { background: -webkit-linear-gradient(var(--phon_a) 60%, var(--phon_i_maj) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
/* gradients triples */
.phon_ju_majarobase {
background:
-webkit-linear-gradient(var(--phon_j) 55%, var(--phon_u_maj) 65%, var(--phon_arobase) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_wai_maj {
background:
-webkit-linear-gradient(var(--phon_w) 58%, var(--phon_a) 58%, var(--phon_i_maj) 75%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.phon_ju_majarobase { background: -webkit-linear-gradient(var(--phon_j) 55%, var(--phon_u_maj) 65%, var(--phon_arobase) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
.phon_wai_maj { background: -webkit-linear-gradient(var(--phon_w) 58%, var(--phon_a) 58%, var(--phon_i_maj) 75%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;}
/*STYLES DES TRANSCRIPTIONS GRAPHIQUES*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment