Skip to content
GitLab
Menu
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
GrammaColor
Commits
f15011e9
Commit
f15011e9
authored
Aug 28, 2020
by
Sylvain Coulange
Browse files
ajout bicolore pour pronoms adverbiaux
parent
f4144bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
static/js/coloriser.js
View file @
f15011e9
...
...
@@ -63,7 +63,7 @@ async function runSpacy() {
}
// pronoms adverbiaux (en et y)
else
if
(
data
.
outText
[
i
].
text
.
l
ower
()
==
"
en
"
||
data
.
outText
[
i
].
text
.
l
ower
()
==
"
y
"
&&
data
.
outText
[
i
].
pos
==
"
PRON
"
)
{
else
if
(
data
.
outText
[
i
].
text
.
toL
ower
Case
()
==
"
en
"
||
data
.
outText
[
i
].
text
.
toL
ower
Case
()
==
"
y
"
&&
data
.
outText
[
i
].
pos
==
"
PRON
"
)
{
result
=
result
+
'
<span style="color:
'
+
pos
[
"
PRON
"
].
color
+
'
;
'
+
stylesCommuns
...
...
Write
Preview
Supports
Markdown
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