1
0
mirror of synced 2024-11-22 01:04:23 +01:00

Improve a bit Microsoft word support

This commit is contained in:
jvoisin 2020-05-17 16:53:36 +02:00
parent c8dc020dc5
commit d8b68ef68e

View File

@ -90,7 +90,9 @@ class MSOfficeParser(ZipParser):
r'^(?:word|ppt|xl)/_rels/document\.xml\.rels$', r'^(?:word|ppt|xl)/_rels/document\.xml\.rels$',
r'^(?:word|ppt|xl)/_rels/footer[0-9]*\.xml\.rels$', r'^(?:word|ppt|xl)/_rels/footer[0-9]*\.xml\.rels$',
r'^(?:word|ppt|xl)/_rels/header[0-9]*\.xml\.rels$', r'^(?:word|ppt|xl)/_rels/header[0-9]*\.xml\.rels$',
r'^(?:word|ppt|xl)/styles.xml$', r'^(?:word|ppt|xl)/styles\.xml$',
# TODO: randomize axId ( https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/089f849f-fcd6-4fa0-a281-35aa6a432a16 )
r'^(?:word|ppt|xl)/charts/chart[0-9]*\.xml$',
r'^xl//workbook.xml$', r'^xl//workbook.xml$',
r'^xl//worksheets/sheet[0-9]+.xml$', r'^xl//worksheets/sheet[0-9]+.xml$',
r'^ppt/slideLayouts/_rels/slideLayout[0-9]+\.xml\.rels$', r'^ppt/slideLayouts/_rels/slideLayout[0-9]+\.xml\.rels$',