From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Re: Accessing the communication channel from a link exporter Date: Fri, 02 Sep 2016 21:03:18 +0530 Message-ID: References: <87inuf1sn8.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfqTT-0001nI-4O for emacs-orgmode@gnu.org; Fri, 02 Sep 2016 11:33:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfqTP-0005vx-UX for emacs-orgmode@gnu.org; Fri, 02 Sep 2016 11:33:47 -0400 Received: from [117.218.232.8] (port=41212 helo=systemreboot.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfqTP-0005vO-BM for emacs-orgmode@gnu.org; Fri, 02 Sep 2016 11:33:43 -0400 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: John Kitchin Cc: org-mode-email --=-=-= Content-Type: text/plain > I think this is the kind of thing you can use a filter for But, it gets more complicated than that. I have XMP metadata (license, caption, etc.) stored in the image files as well. And, in order to export that, I need the path to the source image file. So, my image link exporter needs the :base-directory to find the source image file. If I try to get the XMP metadata from the published image file, then I introduce a race condition with the export of the org file becoming dependent on the image file already being published. Perhaps, filters could be useful. I need to think about it. So far, I have generally stayed away from filters because they can only get the HTML as text, and have to use some kind of regex to operate on it. HTML is structured data, and it would have been good if it was available in some kind of S-form tree structure. It would have saved me the trouble of parsing the HTML, and I could have used a library like xmlgen to generate it. Regards, Arun Isaac --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXyZu+AAoJEC4l7othgCuzntwIAKl302WUrnQlBZKHlmCjXYUs nmxZMzvL68HSnmlwdnGGXoZRbgzsqQfQCWHrkl6Ee/j5XDOhuxFLd/IReFj/S/kY bwCwVJ1WNFwnyRtr2464CQEaPPCPRizM4xm/xyyGMp4LO9JB5Xj3AQE/3ywOoDav cEjGRVFjMy8vXgtE38rB71JptkBFgxx2vLO1Si0ogHUcUqcDIHnjnjXm9nBt6F6A O0PBt1cbzNRyT6AJCvyu7J/SqS1+cLImUmkHBz6NH/IQ/NfovndROTu0R8fBTPU5 qDG8fiTOWTDU0oKw+MXWRw0FwH/dqwJtJ9+gB326AMi2AgiRr62HT9YI/N5LD9A= =ft78 -----END PGP SIGNATURE----- --=-=-=--