From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Automatic inter Web-site linking ? Date: Mon, 09 Apr 2012 14:53:14 +0200 Message-ID: <874nstxe11.fsf@gnu.org> References: <868vi9szoc.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHE4g-0005cJ-KY for emacs-orgmode@gnu.org; Mon, 09 Apr 2012 08:52:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHE4e-00068H-Tl for emacs-orgmode@gnu.org; Mon, 09 Apr 2012 08:52:02 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:49125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHE4e-00067p-KK for emacs-orgmode@gnu.org; Mon, 09 Apr 2012 08:52:00 -0400 Received: by wibhj13 with SMTP id hj13so1811288wib.12 for ; Mon, 09 Apr 2012 05:51:58 -0700 (PDT) In-Reply-To: <868vi9szoc.fsf@iro.umontreal.ca> (=?iso-8859-1?Q?=22Fran=E7o?= =?iso-8859-1?Q?is?= Pinard"'s message of "Fri, 06 Apr 2012 10:27:47 -0400") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?iso-8859-1?Q?Fran=E7ois?= Pinard Cc: emacs-orgmode@gnu.org Hi François, pinard@iro.umontreal.ca (François Pinard) writes: > Currently, here is what I would > like to achieve: whenever there is a "file:*.org" link which is not > translatable with the current algorithms, there is presumably some code > somewhere, able to determine the site (from org-publish-project-alist) > that would publish that referenced file. If that site is found, and if > the site has a :top-url attribute, its value could provide a base to > build the proper URL to translate the link. Would remain to hook the > link conversion, likely within the current code in org-html.el; but as > of now, I do not understand it enough to do (or at least, do cleanly). Did you try using link abbreviations? >From the manual: ,---- | 4.6 Link abbreviations | ====================== | | Long URLs can be cumbersome to type, and often many similar links are | needed in a document. For this you can use link abbreviations. An | abbreviated link looks like this | | [[linkword:tag][description]] `---- If that doesn't fit your need because you need internal links to get you to the Org page, then I'll need a more "actionable" example. HTH, thanks, -- Bastien