From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/19487 Path: news.gmane.org!.POSTED!not-for-mail From: dmccunney Newsgroups: gmane.text.pandoc Subject: Re: Request for .mobi input Date: Wed, 7 Feb 2018 12:51:32 -0500 Message-ID: References: <3ec97804-2145-47d6-9311-1e834333d2b7@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043b00f88464620564a2f434" X-Trace: blaine.gmane.org 1518025827 29628 195.159.176.226 (7 Feb 2018 17:50:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Feb 2018 17:50:27 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCG4HSUM4EARBTXZ5TJQKGQEMKMKJSA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Feb 07 18:50:23 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot0-f183.google.com ([74.125.82.183]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ejTrF-0006gF-Sn for gtp-pandoc-discuss@m.gmane.org; Wed, 07 Feb 2018 18:50:10 +0100 Original-Received: by mail-ot0-f183.google.com with SMTP id r48sf845757otb.0 for ; Wed, 07 Feb 2018 09:52:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1518025935; cv=pass; d=google.com; s=arc-20160816; b=ASA6jdoWaO1xfYLfocLgNv3vl3uuuOv0NqwRE/dCCpRde3BNNjqMjIYTrCcRwZQczN neFA4uPjcoTHKdWl72WXP5NG+4UQwzGX/W6Ky/J2mJOnLO6zRHmZisOJPRrOWCUjCJ/5 5uZoUEOa/vCFcE6KrD2hD/EK827pRtudQke3ec+ocNBxB4+7305gublCmXEHHcor0kHT 0A5FVT/0i2UzDg7fFEzCwtH6rJg3MaH4c/mQX4I+7CYKG4izHl85VGw0xiv2GiCCVFV6 wwE+nZU5H2eIV/vSVHnrdcX4wl4BFUorUXVmjvgDV7bqXyg+33f93u6+QYaFlzzLDzNh /qyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:references:in-reply-to:mime-version:arc-authentication-results :arc-message-signature:sender:dkim-signature:dkim-signature :arc-authentication-results; bh=hE7qIWJy4qwIhN20DW8FK3gv9jClb7yMX2kqrWTqWyI=; b=cDG+fkahsPV/TLXUx2BBDlcaaNEaukCGWLHSgKAkd9DIuvt0iY3CBLxl7uPL4aDRmt 9fYBP+RMKMPAo415bTW2XVtzYkh+mIfNE9+lKC5qIdUmrLQpgEa3O4c7KoRzdT6SSznH DjC8Hzdz3tPA7yJKZ2pK2TZTJpQQd/rJJVlyBL6Ijdys6G6plLXKVSc72SFToJmMx5zQ AeGcjbuUZODOPwc0O1DIRaYBVpinmi3XBwwYC88nUN72e2VMfn7FFGqa51xTvqAK3+1R KOQQt6AmlbJBvQKq7ggg/r6e4mNRBcgdij7L18i++g0c/OpG75jCAS0E1gteI3pfw++4 fB7g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZxrnWvoR; spf=pass (google.com: domain of dennis.mccunney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c0d::235 as permitted sender) smtp.mailfrom=dennis.mccunney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:in-reply-to:references:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=hE7qIWJy4qwIhN20DW8FK3gv9jClb7yMX2kqrWTqWyI=; b=a25Z95Px5PAkRidgimJXa7oIw8ZX+7YnW8ipSi9B4mPB9moLoXoLFUARUk+VFlAZD+ KMOck1ju9z05UFNvA6SlgzUyFBE48HkIYv/9vOxGR6MdtP1kWb50chtZv8ufRDLB6Mhp tyzkSMNFfhzw/qPHVjULtcClfjiqhBOAW/MR+/f45ProXxUYuxE1h6h0ZA1Q0heEkDN4 yhRyNuEMWSYTZV6ErmZcEchdnhKBfb4hBXZVJOqdTifqUthuTN9v3sgtZ/wVAxzOWpQk KsjqJW4nExTdMQP+cW/C1DAI/dSINPjVAFGYVGsRLsxLGezvoOAGpNBS+4XsLWf0X/0N fWlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=hE7qIWJy4qwIhN20DW8FK3gv9jClb7yMX2kqrWTqWyI=; b=a+TTWfn7ge2NESvGvxkri5Oew2sLaI2qQNi9EyNJXY46J2pJUDOH6FJM+Uh4vJ85vZ aM+BCV9luGa6w3WKJokDcbfubSTpgKwZhLjQDxD04g8GqHYVBSIuA6vORy0PGdHstrVn /zmxaMPmoSiADCRGu6L8MUR8geO4DqQxnhvk+MAGRvxrZM9dFI1Z2aWzC31FyUAHe/RK xrrEeqnwdkRsbNGQAv/tNs2ssE9AYn+Z9YFhFQwyfASYFvckf0ax7LIFmA0rBC3V9qh2 mJQUceg13kH9EoVORMHeLh/6vXZ3Ax/wswNx/VdsVVqolOXugZgn6VyIKoUQ8UB0rZwB GfPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:in-reply-to:references:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=hE7qIWJy4qwIhN20DW8FK3gv9jClb7yMX2kqrWTqWyI=; b=NEu9/WIdo3GZNap3K6eKDKxGGpsu2wBr/AZQUym9riW+DxZwaya6d54OcbsjbnthuN hyZ/0tq4A835kyTDj+HoNkhyW9rqhZ0rAL0HcYsvZctYieaK+EaSLIKLdZOqHLMUkEHn IGVcSdVVYi4KSeyTbOmIKDBzoJ7TkO/q+zK18C/C8VYp7G9Br+iLPIgyxk6Bv62QP0df 6/1KT248k8vTodUAB2SaT6PvEAX0UtQFM9zDP4F3RCoKmUtHux8xIHJm1b5qU5Uc1Zvn VT5tzYWsfo7AD4ZdDAJ/xu+JgPFmWIcD0O9z+EGsH2uiUllhe0NOv4UyFFVGlknAYguk RTtQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APf1xPAWp5Oosjq5oSFXBIgmgKQZd5R+zeBJQu20vOma08Xdjf7ao1Po /LqMM+VhP9h81pPDKPwrhx4= X-Google-Smtp-Source: AH8x224H1vErOcwNGke6OVcM+tTPwsuzDSfkHqCn/dBb7YWeQbl2C622ac/IV/MNs+vfBfwHspyNzA== X-Received: by 10.157.40.82 with SMTP id h18mr310889otd.13.1518025935226; Wed, 07 Feb 2018 09:52:15 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.202.57.130 with SMTP id g124ls278218oia.12.gmail; Wed, 07 Feb 2018 09:52:14 -0800 (PST) X-Received: by 10.202.219.198 with SMTP id s189mr3178467oig.83.1518025933994; Wed, 07 Feb 2018 09:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518025933; cv=none; d=google.com; s=arc-20160816; b=VoK+YlkrjO8tSN1gglAZy1bSv7T4CM3r/14QbpDbWzuHgjhixipQy93T+T+pWy72NZ LuJqKdJmP1fbaj+NpvgZPBmlf3lPxMBbrvb9O3rk1HunPa5XrALrNkwyDRHJmcPssOV1 TGhjF52IlrV/G09xwgC2HLGg23hEXTkLYxu5diK+GWjGyZ4OzKVjrxyr/wAfyFneomj4 3emF5uSrbOXx+J68SoXTj06dRRV+FtYdSXstn1dt02pf+0Amr+dbQyNik4PYptQ01f8J +N6sMNzYIQ4q7vslLYD+9/Sm1+0OJWHSVZHDCPvLfWhdqY0A+cdsWZ8p/cMfy72t4tIB x9xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=exX3iCbILKgQ6o+xkhO5gudMbcitGPAN5ZKg1ypnbi0=; b=KHDqBXPslY858GaKoTa8AGKw0ZT9jXx7PLQ4LMNiiij3dxQ9axJZUngeRlhRrjBYcD Jr6IZ3imLUSNlYpNLuX4HSD02Z1adupoxQk4Ue6mXPjOwzSFWkisQt1Al4wihbPiMLii IjA7pGHMmRn5ZAqLDG/XgwKtzXMvljC06wwPJWX4cBKs7IC95hUUhmMaGecZM26w2iES iRyGyiE+98ek0DqKknyUX2elGVPKwaqH4kzylmG9aigGAD3oYJmf3fbBZZWxqLdezsuQ EhhzUtWa3ZGkOLMtMaDOmXFg1vkucTlINFTOKIRA5UMUjnjtdqormhcPylbG4O4THmVJ Y31A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZxrnWvoR; spf=pass (google.com: domain of dennis.mccunney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c0d::235 as permitted sender) smtp.mailfrom=dennis.mccunney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com. [2607:f8b0:400d:c0d::235]) by gmr-mx.google.com with ESMTPS id 16si117800oiq.3.2018.02.07.09.52.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 09:52:13 -0800 (PST) Received-SPF: pass (google.com: domain of dennis.mccunney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c0d::235 as permitted sender) client-ip=2607:f8b0:400d:c0d::235; Original-Received: by mail-qt0-x235.google.com with SMTP id u6so2333354qtg.13 for ; Wed, 07 Feb 2018 09:52:13 -0800 (PST) X-Received: by 10.200.6.5 with SMTP id d5mr10429156qth.134.1518025933348; Wed, 07 Feb 2018 09:52:13 -0800 (PST) Original-Received: by 10.140.88.49 with HTTP; Wed, 7 Feb 2018 09:51:32 -0800 (PST) In-Reply-To: X-Original-Sender: dennis.mccunney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZxrnWvoR; spf=pass (google.com: domain of dennis.mccunney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:400d:c0d::235 as permitted sender) smtp.mailfrom=dennis.mccunney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:19487 Archived-At: --f403043b00f88464620564a2f434 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. > =E1=90=A7 > > 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 in= to >> > .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 Group= s >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n >> 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. > --=20 ______ Dennis https://plus.google.com/u/0/105128793974319004519 --=20 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 e= mail 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.g= mail.com. For more options, visit https://groups.google.com/d/optout. --f403043b00f88464620564a2f434 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My experience has been that ePub->Mobi works better, = but the ePub output from conversion can be massaged in Sigil (https://github.com/S= igil-Ebook/Sigil/releases/tag/0.9.9) if needed.

On Wed, Feb 7, 2018 at 12:45 PM= , Fred Zimmerman <wfzimmerman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
The calibre c= ommand for converting mobi to epub is ebook-convert, and yes, it works, alt= hough not 100% -- sometimes heading structure doesn't come across corre= ctly in the output document.
3D""=E1=90=A7

On Wed, Feb 7, 2018 at 12:32 PM, dmccunney <dennis.mccunney@= gmail.com> wrote:
On Wed, Feb 7, 201= 8 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
> UTF-8 stream". I checked the documentation and it doesn't loo= k like .mobi
> input is supported (yet).

Calibre (https://calibre-ebook.com) handles Mobi->ePub conver= sions.
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/105128793974319004= 519

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail 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/CAJ4= fGLtvWGW30OwP3sBCVAR%2B567nyx4y6OikY7CVVx%2B4Uh4pNQ%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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CAF4AJDycJq4agAnFaDLW3Kfi9WYf3wew403Px3Ei= N6Hyfm2Nxw%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--f403043b00f88464620564a2f434--