emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: raman@users.sf.net
Cc: emacs-orgmode@gnu.org
Subject: Re: export to html and relative links:
Date: Sun, 13 Apr 2008 19:19:00 +0200	[thread overview]
Message-ID: <83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl> (raw)
In-Reply-To: <18434.13307.199469.747272@gargle.gargle.HOWL>

Hmmmm,

this is *such* a good idea, that I will implement this retroactively
into all versions since ... 2.0 or so?  Abracadabra! Done.

In fact, it has been working just so for a very long time.

file:foo.html   -> href="foo.html"
file:foo.org    -> href="foo.html"

The second line assumes that the org file foo.org will also
be converted to an html file in the publishing process....

Also, I was mistaken earlier:

http:foo.html  becomes   href="http:foo.html" and not href="foo.html"

so this actually cannot be used for a local link.

So what remains from this exchange?  Should we accept links
that look like absolute file names (including ./foo.html) as
equivalent to file:./foo.html ?

- Carsten

On Apr 13, 2008, at 6:25 PM, T. V. Raman wrote:

>
> I think writing http:foo.html is a bad idea because typing that
> string in other contexts is sort of meaningless as a URL.
> Until now, everything one types in org-mode sort of has meaning
> elsewhere. If you want it to look like a url in this case too
> then I'd suggest file:foo.html -- rther than http:file.html.
>
> I  did not suggest that earlier because it's more chars to type,
> but that's not a huge concern since emacs does the typing, and we
> could always augment c-c c-l to enable authoring of relative
> links with file completion.
>
> so file:a/b/c.html would become href="a/b/c.html" in the
> generated html.
>
>>>>>> "Carsten" == Carsten Dominik <dominik@science.uva.nl> writes:
>    Carsten> On Apr 13, 2008, at 5:33 PM, T. V. Raman wrote:
>    Carsten>
>>> I've not tried http:foo.html -- but I suggest doing that
>>> to author a relative URL is a bad idea.
>    Carsten>
>    Carsten> Can you explain why you think that this is a bad
>    Carsten> idea?  Educate me!  What is wrong with writing
>    Carsten> http:foo.html ??????
>    Carsten>
>    Carsten> - Carsten
>    Carsten>
>>>
>>
>> I tried ./foo.html and that didn't work either. One compromise
>>> would be to get ./foo.html to link to a relative url,
>>> while foo.html continues to link to a local anchor
>>>
>>>>>>>> "Carsten" == Carsten Dominik <dominik@science.uva.nl>
>>>>>>>> writes:
>    Carsten> On Apr 13, 2008, at 6:49 AM, T. V. Raman wrote:
>    Carsten>
>>>>> Hi,
>>>>>
>>>>> org-export turns links of the form [[foo][link to
>>>>> relative url foo]]
>>>>>
>>>>> ends up creating links of the form <a
>>>>> href="#foo">...</a>
>>>>>
>>>>> this means that it becomes impossible to write
>>>>> hyperlinks that are relative URLs.
>    Carsten>
>    Carsten> Hi Raman,
>    Carsten>
>    Carsten> the url goes into the first pair of square brackets,
>    Carsten> the description into the second.  If you put
>    Carsten> something into the first bracket pair that does not
>    Carsten> look lie a url, it will be treated as an internal
>    Carsten> link.
>    Carsten>
>    Carsten> Have you tried to use something like
>    Carsten>
>    Carsten> [[http:foo.html][link to relative url]]
>    Carsten>
>    Carsten> ?
>    Carsten>
>    Carsten> - Carsten
>>>
>>> -- 
>>> Best Regards, --raman
>>>
>>>
>>> Email: raman@users.sf.net WWW:
>>> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
>>> tv.raman.tv@gmail.com PGP:
>>> http://emacspeak.sf.net/raman/raman-almaden.asc Google:
>>> tv+raman IRC: irc://irc.freenode.net/#emacs
>
> -- 
> Best Regards,
> --raman
>
>
> Email:  raman@users.sf.net
> WWW:    http://emacspeak.sf.net/raman/
> AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
> PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
> Google: tv+raman
> IRC:    irc://irc.freenode.net/#emacs

  reply	other threads:[~2008-04-13 17:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-13  4:49 export to html and relative links: T. V. Raman
2008-04-13  5:37 ` Carsten Dominik
2008-04-13 15:33   ` T. V. Raman
2008-04-13 15:54     ` Carsten Dominik
2008-04-13 16:25       ` T. V. Raman
2008-04-13 17:19         ` Carsten Dominik [this message]
2008-04-13 18:48           ` T. V. Raman
2008-04-13 19:35             ` Carsten Dominik
2008-04-13 20:32               ` T. V. Raman
2008-04-13 21:37                 ` Carsten Dominik
2008-06-24  6:38             ` Carsten Dominik
2008-06-24  8:36               ` Paul R
2008-06-24  9:39                 ` Carsten Dominik
2008-06-24  9:45                   ` Paul R

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=83DA18C3-10D2-4286-95BE-8E81EA1D0652@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=raman@users.sf.net \
    /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).