mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
8f8e5ac6be
commit
e993381e88
@ -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',
|
'html', 'htmlz', 'xhtml', 'pdf', 'pdb', 'updb', 'pdr', 'prc', 'mobi', 'azw', 'doc',
|
||||||
'epub', 'fb2', 'djv', 'djvu', 'lrx', 'cbr', 'cbz', 'cbc', 'oebzip',
|
'epub', 'fb2', 'djv', 'djvu', 'lrx', 'cbr', 'cbz', 'cbc', 'oebzip',
|
||||||
'rb', 'imp', 'odt', 'chm', 'tpz', 'azw1', 'pml', 'pmlz', 'mbp', 'tan', 'snb',
|
'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']
|
'textile', 'markdown', 'ibook', 'iba', 'azw3', 'ps']
|
||||||
|
|
||||||
class HTMLRenderer(object):
|
class HTMLRenderer(object):
|
||||||
|
@ -11,8 +11,8 @@ from calibre.customize.conversion import InputFormatPlugin, OptionRecommendation
|
|||||||
class DOCXInput(InputFormatPlugin):
|
class DOCXInput(InputFormatPlugin):
|
||||||
name = 'DOCX Input'
|
name = 'DOCX Input'
|
||||||
author = 'Kovid Goyal'
|
author = 'Kovid Goyal'
|
||||||
description = 'Convert DOCX files (.docx) to HTML'
|
description = _('Convert DOCX files (.docx and .docm) to HTML')
|
||||||
file_types = set(['docx'])
|
file_types = {'docx', 'docm'}
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
OptionRecommendation(name='docx_no_cover', recommended_value=False,
|
OptionRecommendation(name='docx_no_cover', recommended_value=False,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user