[dokuwiki] Re: Purple Numbers
- From: Anika Henke <anika@xxxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 19 May 2009 21:29:13 +0100
TNHarris wrote:
How to add a feature is a balance between the inconvenience to users who
want to use it, and the effort required to maintain it. (I still vote
for a plugin.)
Yep, basically I agree. But sometimes a feature is also implemented for
the sole reason that it's *cool*. ;-)
Seriously, if there really aren't that many users who will find this
useful, I can re-implement it as a plugin.
(That's also the wake up call for users who like to keep it. ;-) )
Can't say that I like the HIDs being generated. "HID2.13.2:7" is just
gibberish to me. I enjoy that DokuWiki favors human readability. So
perhaps the identifiers could use the section titles. If I see a link to
"linux:driver#usb.configuration.2:3" then I can tell immediately what is
being referred to.
Yes, the naming of the IDs is the part I am most willing to change.
(Because I don't like it that much myself.)
At first glance, your idea seems good, but when you think about it, it
isn't.
Your example "linux:driver#usb.configuration.2:3" assumes that any
*first level headline* gives the first part of the ID. What about pages
that have no first level headlines? And the IDs won't look much better,
just because there is the first headline in front instead of 'HID'. You
might have thought about using more levels. But where should we stop?
In the following example, what should the ID for the first paragraph in
dogs' behaviour be?
====== Animals ======
===== Mammals =====
==== Carnivores ====
=== Cats ===
== Physiology ==
== Behaviour ==
=== Dogs ===
== Physiology ==
== Behaviour ==
==== Primates ====
===== Fish =====
* #animals.mammals.carnivores.dogs.behaviour:1
* #animals.mammals.carnivores.dogs.behaviour1:1 (the '1' is there
because it's the second 'behaviour' headline and uses the ID DokuWiki
creates for this headline)
* #animals.1.1.2.2:1
* #animals.mammals.carnivores.2.1:1
* #animals.mammals.carnivores.dogs.behaviour:sec1
The last example seems to be the most semantic one. But what further
problems could evolve from such a solution?
If such a telling ID is necessary, is also highly depending on the
content. If I think in book terms, I would have a page per chapter and
would only need additional line numbers. If you decide to have several
chapters per page, you would not want line numbers from top to bottom,
but per chapter.
Could lists be ordered better? So the HID reflects the nesting of the
lists. "HID...:<listblockid>.<listitemid>"
I have read before that many purple number implementations take nested
lists into account. But I couldn't see the point of it. Well, okay, I
could see the general point, but didn't find it important enough to
implement it.
If you (and others?) feel strongly about this, I can implement it.
Many thanks for your valuable thoughts,
Anika
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts: