emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] export to html and relative links:


From: T. V. Raman
Subject: Re: [Orgmode] export to html and relative links:
Date: Sun, 13 Apr 2008 09:25:31 -0700

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 <address@hidden> 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 <address@hidden>
    >>>>>>> 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: address@hidden WWW:
    >> http://emacspeak.sf.net/raman/ AIM: emacspeak GTalk:
    >> address@hidden PGP:
    >> http://emacspeak.sf.net/raman/raman-almaden.asc Google:
    >> tv+raman IRC: irc://irc.freenode.net/#emacs

-- 
Best Regards,
--raman

      
Email:  address@hidden
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: address@hidden
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]