Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
wikicolor
Commits
84e56976
Commit
84e56976
authored
Nov 08, 2021
by
Sylvain Coulange
Browse files
remise en fonction du mandarin (chantier en cours)
parent
e9f3c891
Changes
3
Show whitespace changes
Inline
Side-by-side
colorapp/textPhonographer.py
View file @
84e56976
...
...
@@ -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
:
...
...
static/scripts/interface.js
View file @
84e56976
...
...
@@ -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
'
;
}
}
...
...
templates/coloriseur.html
View file @
84e56976
...
...
@@ -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)"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment