emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: "François Pinard" <pinard@iro.umontreal.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Automatic inter Web-site linking ?
Date: Mon, 09 Apr 2012 14:53:14 +0200	[thread overview]
Message-ID: <874nstxe11.fsf@gnu.org> (raw)
In-Reply-To: <868vi9szoc.fsf@iro.umontreal.ca> ("François Pinard"'s message of "Fri, 06 Apr 2012 10:27:47 -0400")

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

      reply	other threads:[~2012-04-09 12:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06 14:27 Automatic inter Web-site linking ? François Pinard
2012-04-09 12:53 ` Bastien [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874nstxe11.fsf@gnu.org \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=pinard@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).