From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: Re: Want help for a helper function which send current link file under point to Kindle path. Date: Sat, 2 Dec 2017 14:01:52 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113dae54935182055f553a57" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eL0sb-0003LS-PD for emacs-orgmode@gnu.org; Sat, 02 Dec 2017 01:02:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eL0sa-00010r-J8 for emacs-orgmode@gnu.org; Sat, 02 Dec 2017 01:02:25 -0500 Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]:42554) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eL0sa-0000za-C0 for emacs-orgmode@gnu.org; Sat, 02 Dec 2017 01:02:24 -0500 Received: by mail-oi0-x244.google.com with SMTP id o64so8579896oia.9 for ; Fri, 01 Dec 2017 22:02:24 -0800 (PST) In-Reply-To: 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 --001a113dae54935182055f553a57 Content-Type: text/plain; charset="UTF-8" Does anyone knows how to get the link at the point in Org-mode? For example: Get the "Data/Books/kk.epub" part of [[file:Data/Books/kk.epub][kk.epub]] [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/ On Thu, Jul 13, 2017 at 8:29 AM, numbchild@gmail.com wrote: > 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/ > --001a113dae54935182055f553a57 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Does anyone knows how to get the link at the point in Org-= mode?
For example:
Get the "Data/Books/kk.epub" part of= [[file:Data/Books/kk.epub][kk.epub]]

[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(freeen= ode): stardiviner =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 @n= umbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8= E5 47C3 2433
Blog: http://stardiviner.github.io/

On Thu, Jul 13, 2017 at 8:29 AM, numbchild@gmail.com <<= a href=3D"mailto:numbchild@gmail.com" target=3D"_blank">numbchild@gmail.com= > wrote:
<= div class=3D"gmail_default" style=3D"font-family:trebuchet ms,sans-serif">I= want to write a helper function to send the link file (usually ebooks) und= er 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?

[[file:Data/Books/kk.epu= b][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): stardiviner =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
Key fingerpr= int =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433
Blog: http://stardivine= r.github.io/

--001a113dae54935182055f553a57--