Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
wikicolor
Commits
4b5905bc
Commit
4b5905bc
authored
Oct 02, 2022
by
Sylvain Coulange
🌼
Browse files
debug mandarin 'er' et v→ü
parent
2460abbc
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
REQUIREMENTS.txt
View file @
4b5905bc
...
...
@@ -8,10 +8,8 @@ Cython==0.29.21
Django==3.1.2
django-cors-headers==3.5.0
dnspython==2.0.0
en-core-web-md @ https://github.com/explosion/spacy-models/releases/download/en_core_web_md-2.3.1/en_core_web_md-2.3.1.tar.gz
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz
fr-core-news-md @ https://github.com/explosion/spacy-models/releases/download/fr_core_news_md-2.3.0/fr_core_news_md-2.3.0.tar.gz
fr-core-news-sm @ https://github.com/explosion/spacy-models/releases/download/fr_core_news_sm-2.3.0/fr_core_news_sm-2.3.0.tar.gz
idna==2.9
importlib-metadata==1.6.0
jieba==0.42.1
...
...
colorapp/textPhonographer.py
View file @
4b5905bc
...
...
@@ -317,7 +317,7 @@ def traitementzh(mot):
pinyinOutput
=
pinyin
.
get
(
mot
,
format
=
"numerical"
,
delimiter
=
" "
)
print
(
"Translittération automatique :"
,
pinyinOutput
)
# ni3 hao3
pinparse
=
pinyinOutput
.
split
(
' '
)
# ['ni3', 'hao3']
pinparse
=
pinyinOutput
.
replace
(
'v'
,
'ü'
).
split
(
' '
)
# ['ni3', 'hao3']
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é
...
...
@@ -345,7 +345,7 @@ def traitementzh2(mot):
pinyinOutput
=
pinyin
.
get
(
mot
,
format
=
"numerical"
,
delimiter
=
" "
)
print
(
"Translittération automatique :"
,
pinyinOutput
)
# ni3 hao3
pinparse
=
pinyinOutput
.
split
(
' '
)
# ['ni3', 'hao3']
pinparse
=
pinyinOutput
.
split
(
' '
)
.
replace
(
'v'
,
'ü'
)
# ['ni3', 'hao3']
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é
...
...
@@ -608,8 +608,8 @@ def addStat(app, module, ip, agent, country, lang):
'app'
:
app
,
'module'
:
module
,
'ip'
:
ip
,
'agent'
:
str
(
agent
)
,
'country'
:
str
(
country
)
,
'agent'
:
agent
,
'country'
:
country
,
'lang'
:
lang
}
users_appstats
.
insert_one
(
newStat
)
\ No newline at end of file
static/scripts/main.js
View file @
4b5905bc
...
...
@@ -517,7 +517,7 @@ function getPopUp() {
var
outputContent
=
document
.
getElementById
(
'
output
'
).
innerHTML
;
var
finalOutput
=
""
;
// contiendra la chaîne de caractères à copier coller
var
expFonte
=
"
font-family: Palatino,
T
im
es, Calibr
i;
"
;
var
expFonte
=
"
font-family:
Ubuntu,
Palatino,
S
im
Ka
i;
"
;
var
expCoulBase
=
"
color:#cccccc;
"
var
expSizeBase
=
"
font-size:30pt;
"
;
...
...
static/styles/phonochromie_alem_v4.css
0 → 100644
View file @
4b5905bc
This diff is collapsed.
Click to expand it.
static/styles/styles.css
View file @
4b5905bc
...
...
@@ -104,18 +104,20 @@
font-weight
:
300
;
font-style
:
italic
;
}
@font-face
{
font-family
:
'kaitiregular'
;
src
:
url('../fonts/simkai-webfont.woff2')
format
(
'woff2'
),
url('../fonts/simkai-webfont.woff')
format
(
'woff'
);
font-weight
:
normal
;
font-style
:
normal
;
@font-face
{
font-family
:
'SimKai'
;
src
:
url('../fonts/simkai.eot')
;
src
:
local
(
'SimKai'
),
local
(
'KaiTi'
),
url('../fonts/simkai.woff2')
format
(
"woff2"
),
url('../fonts/simkai.woff')
format
(
"woff"
),
url('../fonts/simkai.ttf')
format
(
"truetype"
);
font-weight
:
normal
;
font-style
:
normal
}
body
{
background-image
:
url(../im/arriereplan.gif)
;
font-family
:
Ubuntu
,
kaitiregular
,
Times
,
KaiTi
,
Calibri
;
font-family
:
Ubuntu
,
kaitiregular
,
SimKai
,
Times
,
KaiTi
,
Calibri
;
font-variant-ligatures
:
no-common-ligatures
;
font-size
:
14pt
;
text-align
:
center
;
...
...
@@ -234,7 +236,7 @@ svg { /* vient écraser le background black de phonochromie-alem.css*/
margin
:
auto
;
text-align
:
left
;
font-size
:
35pt
;
font-family
:
Ubuntu
,
Palatino
,
Kait
i
,
Times
,
Calibri
;
font-family
:
Ubuntu
,
Palatino
,
SimKai
,
KaiT
i
,
Times
,
Calibri
;
}
.outputBold
{
...
...
templates/base.html
View file @
4b5905bc
...
...
@@ -12,7 +12,7 @@
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css"
rel=
"stylesheet"
integrity=
"sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl"
crossorigin=
"anonymous"
>
<link
href=
"{% static 'styles/keyboard-dark.css'%}"
rel=
"stylesheet"
>
<link
href=
"{% static 'styles/loading.css'%}"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'styles/phonochromie_alem_v
3
.css'%}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'styles/phonochromie_alem_v
4
.css'%}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'styles/styles.css'%}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'styles/popup.css'%}"
>
...
...
templates/coloriseur.html
View file @
4b5905bc
...
...
@@ -32,6 +32,10 @@
<stop
offset=
"50%"
class=
"phon_t_h"
/>
<stop
offset=
"51%"
class=
"phon_s_retr"
/>
</linearGradient>
<linearGradient
id=
"gradient_arho"
x1=
"0"
x2=
"0"
y1=
"0"
y2=
"1"
>
<stop
offset=
"50%"
class=
"phon_a"
/>
<stop
offset=
"70%"
class=
"phon_rho"
/>
</linearGradient>
<pattern
id=
"zai"
patternUnits=
"userSpaceOnUse"
width=
"100"
height=
"100"
>
<rect
stroke=
"black"
stroke-width=
"0.5"
width=
"100px"
height=
"33px"
x=
"0"
y=
"0"
class=
"phon_t_hs"
/>
...
...
@@ -59,6 +63,9 @@
.phon_ts_slash
{
fill
:
url(#gradient_ts_slash)
;
}
.phon_arho
{
fill
:
url(#gradient_arho)
;
}
</style>
</svg>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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