mirror of
https://github.com/simon987/sist2.git
synced 2025-12-10 22:18:54 +00:00
OOXML files support
This commit is contained in:
@@ -99,4 +99,11 @@ make -j 4
|
||||
cd ..
|
||||
mv zstd/lib/libzstd.a .
|
||||
|
||||
# xml2
|
||||
cd libxml2
|
||||
./autogen.sh --without-zlib --without-lzma
|
||||
make
|
||||
cd ..
|
||||
mv libxml2/.libs/libxml2.a .
|
||||
|
||||
cd ..
|
||||
|
||||
@@ -56,6 +56,12 @@ arc_filter = (
|
||||
"application/x-lzop",
|
||||
)
|
||||
|
||||
doc = (
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
||||
)
|
||||
|
||||
cnt = 1
|
||||
|
||||
|
||||
@@ -74,6 +80,8 @@ def mime_id(mime):
|
||||
mime_id += " | 0x10000000"
|
||||
elif mime in arc_filter:
|
||||
mime_id += " | 0x08000000"
|
||||
elif mime in doc:
|
||||
mime_id += " | 0x04000000"
|
||||
elif mime == "application/x-empty":
|
||||
return "1"
|
||||
return mime_id
|
||||
|
||||
Reference in New Issue
Block a user