1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-11-26 20:47:10 +00:00

Remove Des from title

This commit is contained in:
Yohann D'ANELLO 2020-10-03 11:03:22 +02:00
parent 9c53d89ad3
commit e09b503ee1

View File

@ -22,6 +22,7 @@ def generate_side_identifier(title, authors, subtitle=None):
title_normalized = title.upper() title_normalized = title.upper()
title_normalized = title_normalized.replace('', '\'') title_normalized = title_normalized.replace('', '\'')
title_normalized = re.sub(r'^DE ', '', title_normalized) title_normalized = re.sub(r'^DE ', '', title_normalized)
title_normalized = re.sub(r'^DES ', '', title_normalized)
title_normalized = re.sub(r'^LE ', '', title_normalized) title_normalized = re.sub(r'^LE ', '', title_normalized)
title_normalized = re.sub(r'^LA ', '', title_normalized) title_normalized = re.sub(r'^LA ', '', title_normalized)
title_normalized = re.sub(r'^LES ', '', title_normalized) title_normalized = re.sub(r'^LES ', '', title_normalized)