Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Macao Legacy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
Macao Legacy
Commits
f39c1b6d
Commit
f39c1b6d
authored
3 weeks ago
by
David Rouquet
Browse files
Options
Downloads
Patches
Plain Diff
enlever images d'écouteurs et ---
parent
9bf90aa0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tetras_extraction/macao_schema.ttl
+0
-0
0 additions, 0 deletions
tetras_extraction/macao_schema.ttl
tetras_extraction/script/src/transform.py
+5
-1
5 additions, 1 deletion
tetras_extraction/script/src/transform.py
with
5 additions
and
1 deletion
tetras_extraction/macao_schema.ttl
deleted
100644 → 0
+
0
−
0
View file @
9bf90aa0
This diff is collapsed.
Click to expand it.
tetras_extraction/script/src/transform.py
+
5
−
1
View file @
f39c1b6d
...
...
@@ -76,7 +76,11 @@ def postEditMD(str1):
###################################################
str1
=
str1
.
replace
(
r
"
\_
"
,
"
_
"
).
replace
(
r
"
-
"
,
"
\n
-
"
).
replace
(
r
"
| --- |
"
,
""
).
replace
(
r
"
|
"
,
""
)
str1
=
str1
.
replace
(
"
Ecoutez
"
,
"
Écoutez
"
).
replace
(
"
Ecouter
"
,
"
Écouter
"
).
replace
(
"
Enoncés
"
,
"
Énoncés
"
).
replace
(
r
"
A l
'
oral
"
,
r
"
À l
'
oral
"
).
replace
(
"
Enoncé
"
,
"
Énoncé
"
).
replace
(
"
A un bout
"
,
"
À un bout
"
).
replace
(
"
A l
"
,
"
À l
"
).
replace
(
"
Vous vous êtes trompé
"
,
"
Vous vous trompez
"
).
replace
(
"
Pas d
'
accord
"
,
"
Vous vous trompez
"
)
#str1 = str1.replace(r'<img class="inlineImage" src="/macao-hugo/media/ecouteur_macao.png" id="ecouteur_macao.png"/>', '')
#str1 = str1.replace(r'Écoutez et complétez :', '')
regexEcouteurs
=
re
.
compile
(
r
"
@IMAGESTART.*?ecouteur_macao.*?@IMAGEEND
"
)
str1
=
regexEcouteurs
.
sub
(
r
""
,
str1
)
...
...
@@ -146,7 +150,7 @@ Pour vous réécouter, cliquez sur la flèche
noire.
"""
,
""
)
str1
=
str1
.
replace
(
"
hauts-parleurs
"
,
"
flèches
"
)
str1
=
str1
.
replace
(
'
\n
<img class=
"
inlineImage
"'
,
'
<img class=
"
inlineImage
"'
)
str1
=
str1
.
replace
(
'
\n
---
\n
'
,
''
)
return
(
str1
,
commentaireInfo_md
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment