[Tiki-devel] Issues with unallowed characters in anchor names

Volker Wysk <post-hhF2Jplw28UoZk/[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi!

There's a problem with the allowed characters in anchor names. Only A-Z, a-z 
and 0-9 are allowed. First, a small issue. The Aname plugin and the
generation of anchors from headings cope differently with unallowed
characters. The Aname plugin replaces every sequence of unallowed characters
with one underscore. Whereas the generation of anchors for headings
completely deletes the unallowed characters.

For your information: Here, in the source code of the Aname plugin, is the
motivation for getting rid of the "unallowed" characters:

"the following replace is necessary to maintain compliance with XHTML 1.0
Transitional and the same behavior as tikilib.php and ALINK. This will
change when the world arrives at XHTML 1.0 Strict."

I think that both should handle it the same way. Preferably the way the
Aname plugin does it.


Now, there's a bigger, more important issue, when specifying links to
subsections of wiki pages: ((page|#subsection|label)).

When translating such a link to HTML, the subsection part should receive the
same treatment as the one, which the Aname plugin gives it. This way, you
could specify the normal, unmutilated subsection name and get working links.
You wouldn't need to figure out what the subsection will be called in the
HTML.


I hope I've made myself clear. Two places of the Tiki source code will have
to be modified: the anchor creation from the headings and the handling of
the subsection when generating HTML links from wiki links.

Cheers,
Volker

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmLcNLMACgkQ+K4ydFOs
HoXoSg/9GzUUB1vWGZ0Jzlk1DYF6k9uDPWZbXIwsnqNYoy6YVEHH6eRa2HUwHc+i
eGjOvyJVph3+tdb8aQ42qsRbcVrKprA7vNXY0FFocwLzbiFW/3Uwv/AsDEjbK3i6
/gAYSXVBQi+4awwF6k9LkQooZQXVvIILS/kFWpGxwJEN8lUY1Z12T2UUVRcrNs3Y
lem1P+JUFb0vTOyt6h5YarmxtXg8kaudRKmyT2YQPqighwflz5eq/qmB3wdPh2fT
pLLjIh20r6cjFJTUbniTN9V1oj9jfOdV8pod6MYSkzNAxpdZJR+LpaCx+n4yA2L7
nUo0wChW7xyyQOVdFoQHAdaTcUoM1f6IIcnhOkAyHc0Mtr9Y3IDN+cTVguaqvDtu
DZ8PeILzeYrjYEgCVhnPRVtvnfYfTk+2z0XYtwURMrmovvi1rQqbv/dt7K64Z6N6
vR2+ELXrmwecPHMyew51rxaq93L/K/fAC4QmGn5fe1SfhkMsD3p8b+4eniUbV33Q
bOhnJ6itgmU/YVT9HAL79DzlYYLYXHaW/25VLythxM8q7Xhh5akML/7Cl1S5DZ6S
BBfTyuMpD6QpcojTWUYZAJgasRCSFNSAtC+WYY32KDQLldRbYpMXPUJdpbMebGR4
Nu0uT/BTztER8miAwaexEWvZx4CS0j768TL+6GR1osVWdohhSKg=
=gD7h
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.