Commit becca1e7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify for LibreOffice 4.3.

XXX still some tests related to get metadata fail.
parent b5cd79de
......@@ -134,13 +134,15 @@ class MimeMapper(object):
raise ValueError(stdout)
filter_dict, type_dict = json.loads(stdout)
ooo_disable_filter_list = kw.get("ooo_disable_filter_list") or [] + [
'writer_jpg_Export', # Seems not working from cloudooo in Libre Office 4.2.0.4.
'writer_png_Export', # Seems not working from cloudooo in Libre Office 4.2.0.4.
]
ooo_disable_filter_list = kw.get("ooo_disable_filter_list") or []
# The following two export filters seem not working from cloudooo
# in Libre Office 4.2.0.4 but works fine in Libre Office 4.3.0.4.
# 'writer_jpg_Export',
# 'writer_png_Export',
ooo_disable_filter_name_list = kw.get("ooo_disable_filter_name_list") or [] + [
'Text', # Use 'Text Encoded' instead
'Text (StarWriter/Web)', # Use 'Text Encoded (Writer/Web)' instead
'Text', # Use 'Text - Choose Encoding' instead
'Text (StarWriter/Web)', # Use 'Text - Choose Encoding (Writer/Web)' instead
]
for filter_name, value in filter_dict.iteritems():
if filter_name in ooo_disable_filter_list:
......
......@@ -34,13 +34,14 @@ text_expected_tuple = (
('doc', 'Microsoft Word 97/2000/XP/2003'),
('ms.docx', 'Microsoft Word 2007/2010/2013 XML'),
('docx', 'Office Open XML Text'),
('fodt', 'Flat XML ODF Text Document'),
('html', 'HTML Document (Writer)'),
# ('jpg', 'JPEG - Joint Photographic Experts Group'),
('jpg', 'JPEG - Joint Photographic Experts Group'),
('odt', 'ODF Text Document'),
('pdf', 'PDF - Portable Document Format'),
# ('png', 'PNG - Portable Network Graphic'),
('png', 'PNG - Portable Network Graphic'),
('rtf', 'Rich Text'),
('txt', 'Text Encoded'),
('txt', 'Text - Choose Encoding'),
)
global_expected_tuple = (
......@@ -50,6 +51,7 @@ drawing_expected_tuple = (
('bmp', 'BMP - Windows Bitmap'),
('emf', 'EMF - Enhanced Metafile'),
('eps', 'EPS - Encapsulated PostScript'),
('fodg', 'Flat XML ODF Drawing'),
('gif', 'GIF - Graphics Interchange Format'),
('html', 'HTML Document (Draw)'),
('jpg', 'JPEG - Joint Photographic Experts Group'),
......@@ -75,13 +77,14 @@ web_expected_tuple = (
('pdf', 'PDF - Portable Document Format'),
('sxw', 'OpenOffice.org 1.0 Text Document (Writer/Web)'),
('txt', 'Text (Writer/Web)'),
('txt', 'Text Encoded (Writer/Web)'),
('txt', 'Text - Choose Encoding (Writer/Web)'),
)
presentation_expected_tuple = (
('bmp', 'BMP - Windows Bitmap'),
('emf', 'EMF - Enhanced Metafile'),
('eps', 'EPS - Encapsulated PostScript'),
('fodp', 'Flat XML ODF Presentation'),
('gif', 'GIF - Graphics Interchange Format'),
('html', 'HTML Document (Impress)'),
('jpg', 'JPEG - Joint Photographic Experts Group'),
......@@ -110,6 +113,7 @@ presentation_expected_tuple = (
spreadsheet_expected_tuple = (
('csv', 'Text CSV'),
('fods', 'Flat XML ODF Spreadsheet'),
('html', 'HTML Document (Calc)'),
('ods', 'ODF Spreadsheet'),
('pdf', 'PDF - Portable Document Format'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment