Conversion: Treat .docm the same as .docx files, ignoring any macros in the file. Fixes #1247565 [Calibre does not recognise Word files in docm format](https://bugs.launchpad.net/calibre/+bug/1247565)

This commit is contained in:
Kovid Goyal 2013-11-03 23:31:20 +05:30
parent 8f8e5ac6be
commit e993381e88
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ BOOK_EXTENSIONS = ['lrf', 'rar', 'zip', 'rtf', 'lit', 'txt', 'txtz', 'text', 'ht
'html', 'htmlz', 'xhtml', 'pdf', 'pdb', 'updb', 'pdr', 'prc', 'mobi', 'azw', 'doc',
'epub', 'fb2', 'djv', 'djvu', 'lrx', 'cbr', 'cbz', 'cbc', 'oebzip',
'rb', 'imp', 'odt', 'chm', 'tpz', 'azw1', 'pml', 'pmlz', 'mbp', 'tan', 'snb',
'xps', 'oxps', 'azw4', 'book', 'zbf', 'pobi', 'docx', 'md',
'xps', 'oxps', 'azw4', 'book', 'zbf', 'pobi', 'docx', 'docm', 'md',
'textile', 'markdown', 'ibook', 'iba', 'azw3', 'ps']
class HTMLRenderer(object):

View File

@ -11,8 +11,8 @@ from calibre.customize.conversion import InputFormatPlugin, OptionRecommendation
class DOCXInput(InputFormatPlugin):
name = 'DOCX Input'
author = 'Kovid Goyal'
description = 'Convert DOCX files (.docx) to HTML'
file_types = set(['docx'])
description = _('Convert DOCX files (.docx and .docm) to HTML')
file_types = {'docx', 'docm'}
options = {
OptionRecommendation(name='docx_no_cover', recommended_value=False,