Commit 84e56976 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

remise en fonction du mandarin (chantier en cours)

parent e9f3c891
......@@ -19,7 +19,7 @@ phonColFile = "../phon2graph/data/api2class.json"
phonGraphFile = "../phon2graph/data/fidel_wikicolor.scsv" # "../phon2graph/data/phoneme-graphies_fr.scsv"
phonGraphFileEn = "../phon2graph/data/fidel_wikicolor_en_global.scsv" # ENGLISH
pinyin2apiFile = "../phon2graph/data/pinyin2api_v2.json" # MANDARIN
pinyin2apiFile = "../phon2graph/data/pinyin2api.json" # MANDARIN
api2classFile = "../phon2graph/data/api2class.json" # MANDARIN
pinyin2zhuyinFile = "../phon2graph/data/pinyin2zhuyin.json" # MANDARIN
......@@ -315,7 +315,7 @@ def traitementzh(mot):
for hanzindex, pintone in enumerate(pinparse):
if pintone[-1] in ['1', '2', '3', '4', '5'] and len(pintone)>1: # Si il y a un ton et que ce n'est pas qu'un chiffre, c'est que la pinyinisation a fonctionné
res = [mot[hanzindex]]
for el in pinyin2phon(pintone, pinyin2api, api2class, pinyin2zhuyin):
for el in pinyin2phon(pintone, pinyin2api, api2class):
res.append(el)
result.append(res)
else:
......
......@@ -54,6 +54,9 @@ function selectLang(lang){
// Region settings
document.getElementById('regionPriorityDiv').style.display = '';
thisRegion = "UK";
// Custom Settings
document.getElementById('customSettings').style.display = '';
}
......@@ -84,6 +87,9 @@ function selectLang(lang){
// Region settings
document.getElementById('regionPriorityDiv').style.display = 'none';
thisRegion = "FR";
// Custom Settings
document.getElementById('customSettings').style.display = '';
}
} else if (lang == "zh"){
......@@ -112,6 +118,9 @@ function selectLang(lang){
// Region settings
document.getElementById('regionPriorityDiv').style.display = 'none';
thisRegion = "CN";
// Custom Settings
document.getElementById('customSettings').style.display = 'none';
}
}
......
......@@ -98,14 +98,14 @@
</div>
</div>
<div class="accordion" id="accordionExample">
<div class="accordion" id="customSettings">
<div class="accordion-item">
<h2 class="accordion-header" id="headingTwo">
<button class="accordion-button collapsed myAccordion-btn langtitle" id="ti_btnCustom" style="border-radius: 50%;" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear-fill me-2" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#accordionExample">
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#customSettings">
<div class="accordion-body">
<p class="langspan" id="sp_customExplain"></p>
<span class="langspan" id="sp_customColBase"></span> <input type="color" id="colorPicker-phon_base" class="colorSetting" onchange="setCol('phon_base',this.value)">
......
Supports Markdown
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