mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
OpenOffice -> LibreOffice
This commit is contained in:
parent
ce04d47398
commit
2709a3eb88
@ -671,9 +671,8 @@ produce clean HTML that will convert well. Note that Word produces really messy
|
|||||||
HTML, converting it can take a long time, so be patient. If you have a newer
|
HTML, converting it can take a long time, so be patient. If you have a newer
|
||||||
version of Word available, you can directly save it as .docx as well.
|
version of Word available, you can directly save it as .docx as well.
|
||||||
|
|
||||||
Another alternative is to use the free OpenOffice. Open your .doc file in
|
Another alternative is to use the free LibreOffice. Open your .doc file in
|
||||||
OpenOffice and save it in OpenOffice's format .odt. calibre can directly convert
|
LibreOffice and save it as .docx, which can be directly converted in calibre.
|
||||||
.odt files.
|
|
||||||
|
|
||||||
Convert TXT documents
|
Convert TXT documents
|
||||||
~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
@ -13,7 +13,7 @@ class ODTInput(InputFormatPlugin):
|
|||||||
|
|
||||||
name = 'ODT Input'
|
name = 'ODT Input'
|
||||||
author = 'Kovid Goyal'
|
author = 'Kovid Goyal'
|
||||||
description = _('Convert ODT (OpenOffice) files to HTML')
|
description = _('Convert ODT (LibreOffice) files to HTML')
|
||||||
file_types = {'odt'}
|
file_types = {'odt'}
|
||||||
commit_name = 'odt_input'
|
commit_name = 'odt_input'
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ class RTFInput(InputFormatPlugin):
|
|||||||
from calibre.ebooks.covers import message_image
|
from calibre.ebooks.covers import message_image
|
||||||
if self.default_img is None:
|
if self.default_img is None:
|
||||||
self.default_img = message_image('Conversion of WMF images is not supported.'
|
self.default_img = message_image('Conversion of WMF images is not supported.'
|
||||||
' Use Microsoft Word or OpenOffice to save this RTF file'
|
' Use Microsoft Word or LibreOffice to save this RTF file'
|
||||||
' as HTML and convert that in calibre.')
|
' as HTML and convert that in calibre.')
|
||||||
name = name.replace('.wmf', '.jpg')
|
name = name.replace('.wmf', '.jpg')
|
||||||
with lopen(name, 'wb') as f:
|
with lopen(name, 'wb') as f:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user