all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Reading books with org-mode
@ 2013-07-29 20:24 Kyle Sexton
  2013-07-31 12:09 ` Christian Wittern
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Sexton @ 2013-07-29 20:24 UTC (permalink / raw
  To: emacs-orgmode

Just wanted to share a tip I've been using that is pretty nice.  Convert
any epub/mobi technical books you are reading to org-mode files and read
them in Emacs.  Then you can do nice things like easily cut and paste
portions of the book to org-drill for flash cards or into capture
templates.

The conversion process is different for every book (imagine that), but
not too horrible.  Basically, Calibre -> htmlz -> unzip -> pandoc:

#+BEGIN_EXAMPLE
$ cp ~/Calibre\ Library/Metz*/Practi*/*.htmlz ./book.htmlz
$ unzip -q book.htmlz 
$ pandoc ./index.html -o book.org       
#+END_EXAMPLE

After that I usually have to global convert [[image/foo.png]] to
[[file:image/foo.png]] and add inlineimages to a start-up option on the
file.

--
Kyle Sexton

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reading books with org-mode
  2013-07-29 20:24 Reading books with org-mode Kyle Sexton
@ 2013-07-31 12:09 ` Christian Wittern
  2013-08-01 15:36   ` Kyle Sexton
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Wittern @ 2013-07-31 12:09 UTC (permalink / raw
  To: emacs-orgmode

Hi Kyle,

Thanks for sharing this, this is excellent.  I have been looking for a way 
to read epub books in Emacs and this is even better!

However, trying this out I noted that I can't seem to follow the (internal) 
links in the file, whatever I click on, it all ends up at the same place.  
The file seems to have the right voodoo in it to allow for the links to 
work, so it might be either my setup or a general org problem.  Do you see 
the same behaviour for links?

Christian

On 2013-07-30 05:24, Kyle Sexton wrote:
> Just wanted to share a tip I've been using that is pretty nice.  Convert
> any epub/mobi technical books you are reading to org-mode files and read
> them in Emacs.  Then you can do nice things like easily cut and paste
> portions of the book to org-drill for flash cards or into capture
> templates.
>
> The conversion process is different for every book (imagine that), but
> not too horrible.  Basically, Calibre -> htmlz -> unzip -> pandoc:
>
> #+BEGIN_EXAMPLE
> $ cp ~/Calibre\ Library/Metz*/Practi*/*.htmlz ./book.htmlz
> $ unzip -q book.htmlz
> $ pandoc ./index.html -o book.org
> #+END_EXAMPLE
>
> After that I usually have to global convert [[image/foo.png]] to
> [[file:image/foo.png]] and add inlineimages to a start-up option on the
> file.
>
> --
> Kyle Sexton
>
>


-- 
Christian Wittern, Kyoto

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Reading books with org-mode
  2013-07-31 12:09 ` Christian Wittern
@ 2013-08-01 15:36   ` Kyle Sexton
  0 siblings, 0 replies; 3+ messages in thread
From: Kyle Sexton @ 2013-08-01 15:36 UTC (permalink / raw
  To: Christian Wittern; +Cc: emacs-orgmode

Christian Wittern <cwittern@gmail.com> writes:

> Hi Kyle,
>
> Thanks for sharing this, this is excellent.  I have been looking for a
> way to read epub books in Emacs and this is even better!
>
> However, trying this out I noted that I can't seem to follow the
> (internal) links in the file, whatever I click on, it all ends up at
> the same place.  The file seems to have the right voodoo in it to
> allow for the links to work, so it might be either my setup or a
> general org problem.  Do you see the same behaviour for links?
>

I have the same problem.  Unfortunately the conversion isn't perfect,
but for me it's worth the little things like that.  I think the issue is
in the pandoc exporter, but it could also be in how Calibre is
generating the links for the htmlz.

-- 
Kyle Sexton

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-01 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29 20:24 Reading books with org-mode Kyle Sexton
2013-07-31 12:09 ` Christian Wittern
2013-08-01 15:36   ` Kyle Sexton

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.