From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: why prepend "file://" to abs paths in html output? Date: Thu, 13 Jul 2017 14:39:40 +0200 Message-ID: <87eftkfr3n.fsf@nicolasgoaziou.fr> References: <87lgnz43qk.fsf@nicolasgoaziou.fr> <87h8yn3tsa.fsf@nicolasgoaziou.fr> <87bmou4u8a.fsf@nicolasgoaziou.fr> <874lumfqk7.fsf@gmail.com> <877ezh51ns.fsf@nicolasgoaziou.fr> <86y3rw2y1y.fsf@hierocles.phy.bnl.gov> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVdPf-0007ZE-Ec for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:40:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVdPa-0002v7-RY for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:40:11 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:52457) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dVdPa-0002cs-Lb for emacs-orgmode@gnu.org; Thu, 13 Jul 2017 08:40:06 -0400 In-Reply-To: (Kaushal Modi's message of "Mon, 10 Jul 2017 19:54:58 +0000") 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: Kaushal Modi Cc: Brett Viren , Carsten Dominik , Org Mode , Tim Cross Hello, Kaushal Modi writes: > #+HTML_LINK_ROOT: /tmp/site/static/ > > An =image.png= exists as =/tmp/site/static/images/image.png=. > > * This is how the image links should have worked with the link root already > specified > [[/images/image.png]] There is only one possible interpretation of this: look for the file at "/images/image.png", which probably doesn't exist. > - The =HTML_LINK_ROOT= should to appended to the front of the above link if > that > concatenated path is a valid one. > - Would also like =C-x C-o=, inline image display, etc. to work. > - So a thought.. should the link root specification be made exporter > agnostic? > * This works after adding support for =HTML_LINK_ROOT= .. > .. but > - The link path becomes too long. > - Need to hard-code the full path to the site/blog root directory before > each of > such links. > [[file:/tmp/site/static/images/image.png]] ISTM you are looking after link abbreviations. Regards, -- Nicolas Goaziou