My experience has been that ePub->Mobi works better, but the ePub output from conversion can be massaged in Sigil ( https://github.com/Sigil-Ebook/Sigil/releases/tag/0.9.9) if needed. On Wed, Feb 7, 2018 at 12:45 PM, Fred Zimmerman wrote: > 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 > wrote: > >> On Wed, Feb 7, 2018 at 12:20 PM, David Macfarlane >> 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 >> > UTF-8 stream". I checked the documentation and it doesn't look like >> .mobi >> > input is supported (yet). >> >> Calibre (https://calibre-ebook.com) handles Mobi->ePub conversions. >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/ > msgid/pandoc-discuss/CAJ4fGLtvWGW30OwP3sBCVAR%2B567nyx4y6OikY7CVVx% > 2B4Uh4pNQ%40mail.gmail.com > > . > > For more options, visit https://groups.google.com/d/optout. > -- ______ 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAF4AJDycJq4agAnFaDLW3Kfi9WYf3wew403Px3EiN6Hyfm2Nxw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.