[dokuwiki] Re: Problems with links to sections
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Wed, 23 Aug 2006 00:43:35 +0100
refer bug #882
Preben Randhol wrote:
Hi
Is there any technical reasons why one don't simply use the titlename?
I mean one can convert it with rawurlencoding and replace spaces with
underscores, but I don't understand why one need to force ASCII. Many
pages will be written in UTF-8 so why not keep it?
I think this was to try and keep the links as readable as possible -
therefore trying to limit any entity encoding.
Secondly why do one have to create a unique number to attach to
the id? This makes it impossible to link to certain sections in other
pages (especially if one don't use English). I can understand in the
cases that somebody makes two section with the same name in a page that
the TOC won't work, but isn't it better that the user sees that one
need to have unique section names? I don't think this is a problem in
any case...
As I mentioned in the bug comment, there is a long term plan to include
the table of contents in the metadata. Page metadata is a much smaller
and more accessible file, making a fragment-id look up a possibility.
Right now the toHeaderLink() is applied indiscriminately to create all
header ids. I think it would be a good idea to match the processing to
the $conf[deaccent] setting - thereby allowing users of languages with
predominantly non-ascii characters to set $conf[deaccent] = 0 and have
virtually any character in their fragment identifier.
Cheers,
Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Problems with links to sections
- From: Preben Randhol
- References:
- [dokuwiki] Problems with links to sections
- From: Preben Randhol
Other related posts:
- » [dokuwiki] Problems with links to sections
- » [dokuwiki] Re: Problems with links to sections
- » [dokuwiki] Re: Problems with links to sections
- » [dokuwiki] Re: Problems with links to sections
- » [dokuwiki] Re: Problems with links to sections
- » [dokuwiki] Re: Problems with links to sections
- » [dokuwiki] Re: Problems with links to sections
- » [dokuwiki] Re: Problems with links to sections
- » [dokuwiki] Re: Problems with links to sections
Hi
Is there any technical reasons why one don't simply use the titlename?
I mean one can convert it with rawurlencoding and replace spaces with
underscores, but I don't understand why one need to force ASCII. Many
pages will be written in UTF-8 so why not keep it?
the id? This makes it impossible to link to certain sections in other
pages (especially if one don't use English). I can understand in the
cases that somebody makes two section with the same name in a page that
the TOC won't work, but isn't it better that the user sees that one
need to have unique section names? I don't think this is a problem in
any case...
- [dokuwiki] Re: Problems with links to sections
- From: Preben Randhol
- [dokuwiki] Problems with links to sections
- From: Preben Randhol