From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Want help for a helper function which send current link file under point to Kindle path. Date: Thu, 13 Jul 2017 08:29:12 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11479054612b8d055428072c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVS0n-0002Ae-E3 for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 20:29:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVS0m-0003J3-E2 for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 20:29:45 -0400 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:37619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVS0m-0003HA-6H for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 20:29:44 -0400 Received: by mail-wm0-x22b.google.com with SMTP id i127so9630339wma.0 for ; Wed, 12 Jul 2017 17:29:44 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode --001a11479054612b8d055428072c Content-Type: text/plain; charset="UTF-8" I want to write a helper function to send the link file (usually ebooks) under the point to Kindle path like (/run/media/username/Kindle/documents/). Hope this function can provide the following functionalities: - check whether the source file (ebook) exist in Kindle? - check the source file format, if not Kindle supported, then convert it with command `ebook-convert` which is comes from program "Calibre". I wander how to get the link actual path under the point? For example, org link like this: [[file:Data/Books/kk.epub][kk.epub]] [[file+sys:/home/username/Documents/kk2.mobi][kk2.mobi]] [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --001a11479054612b8d055428072c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I want to write a helper function to send the link file (u= sually ebooks) under the point to Kindle path like (/run/media/username/Kin= dle/documents/).
Hope this function can provide the following function= alities:

- check whether the source file (ebook) exist in Ki= ndle?
- check the source file format, if not Kindle supported, then co= nvert it with command `ebook-convert` which is comes from program "Cal= ibre".

I wander how to get the link actual path under t= he point?
For example, org link like this:

[[file:Dat= a/Books/kk.epub][kk.epub]]
[[file+sys:/home/username/Documents/kk2.mobi][kk2.mobi= ]]

[stardiviner]=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this world!>= ;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode): sta= rdiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild<= br>Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2= 433
Blog: ht= tp://stardiviner.github.io/
--001a11479054612b8d055428072c--