-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocument_formats.py
97 lines (93 loc) · 1.79 KB
/
document_formats.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
"""
Collection of document file formats.
"""
# Specify document filename extensions.
_document_file_formats = {
".html",
".htm",
".pdf",
".xml",
".txt",
".csv",
######################### MS Office formats #########################
".doc",
".docm",
".docx",
".dot",
".dotm",
".dotx",
".mht",
".mhtml",
".rtf",
".wps", # <== This format also used by WPS Office for writer document.
".xps",
".dbf",
".dif",
".prn",
".slk",
".xla",
".xlam",
".xls",
".xlsb",
".xlsm",
".xlsx",
".xlt",
".xltm",
".xltx",
".xlw",
".emf",
".pot",
".potm",
".potx",
".ppa",
".ppam",
".pps",
".ppsm",
".ppsx",
".ppt",
".pptm",
".pptx",
".thmx",
".wmf",
######################### LibreOffice formats #########################
".ods", # Spreadsheet.
".odt", # Document.
".ott", # Text template.
".odm", # Master document.
".oth", # HTML document template.
".ots", # Spreadsheet template.
".odg", # Drawing.
".otg", # Drawing template.
".odp", # Presentation.
".otp", # Presentation template.
".odf", # Formula.
".odb", # Database.
".oxt", # Extension.
######################### WPS Office formats #########################
".dps",
".dpt",
".et",
".ett",
".kuip",
".wpt",
".dsc",
".str",
######################### FreeOffice formats #########################
".tmdx",
".pmd",
".pmdx",
".pmv",
".pmvx",
".prd",
".prdx",
".prv",
".prvx",
".psw",
".pwd"
".pwt",
".tmd",
".tmv",
".tmvx"
}
def document_file_formats():
return _document_file_formats