OpenOffice -> LibreOffice

This commit is contained in:
Kovid Goyal 2022-02-09 08:48:12 +05:30
parent ce04d47398
commit 2709a3eb88
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 4 additions and 5 deletions

View File

@ -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
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

View File

@ -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'

View File

@ -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: