The calibre command for converting mobi to epub is ebook-convert, and yes, it works, although not 100% -- sometimes heading structure doesn't come across correctly in the output document.ᐧ--On Wed, Feb 7, 2018 at 12:32 PM, dmccunney <dennis.mccunney@gmail.com> wrote:On Wed, Feb 7, 2018 at 12:20 PM, David Macfarlane <dmac-HuPk6NEp4MX2eFz/2MeuCQ@public.gmane.org> wrote:
> It would be helpful if pandoc could read .mobi files for conversion into
> .epub or whatever.
>
> I have pandoc v 2.1.1 and I tried .mobi input and it failed with "pandoc:
> Cannot decode byte '\x88': Data.Text.Internal.Encoding.decodeUtf8: Invalid Calibre (https://calibre-ebook.com) handles Mobi->ePub conversions.
> UTF-8 stream". I checked the documentation and it doesn't look like .mobi
> input is supported (yet).
Its primary purpose is to create and maintain an eBook database, but
it converts between supported formats. Calibre is written in Python,
and cross-platform, available for Windows, Linux, and OS/X.
I haven't tried it, but I believe the conversion can be done from the
command line, calling the conversion module directly instead of going
through the GUI.
(I've converted files I got in Mobi format to ePub without issue.)
______
Dennis
https://plus.google.com/u/0/105128793974319004519
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com .
To post to this group, send email to pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm .
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAF4AJDyOei .%3DMrvTo3%3DhS2C_Q4%3DG5L7na% 3Dpv4f%2BkxFnv8S0o0Zg%40mail. gmail.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com .
To post to this group, send email to pandoc-discuss@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ .CAJ4fGLtvWGW30OwP3sBCVAR% 2B567nyx4y6OikY7CVVx% 2B4Uh4pNQ%40mail.gmail.com