Feature Requests
Andrew Stacey 118 posts |
This is a thread for feature requests for Instiki. |
Andrew Stacey 118 posts |
(I’m really just trying out the features of the forum, but may as well do so in a “useful” way.)
That’s all for now! |
Andrew Stacey 118 posts |
Here’s another random idea: to make it easier for people to contribute to a wiki (thinking particularly of the nLab), howabout a javascript annotation system? Some people might find it a bit daunting to edit a whole page just to correct a minor spelling mistake, but could leave a quick note so that the next person who does edit the page can see what outstanding notes there are. Just a random idea - I haven’t thought it through very much. (But I did a little search to see that it was, at least, technically possible via javascript.) |
admin
Administator
63 posts
edited 13 years ago |
Hmmm.
|
Andrew Stacey 118 posts |
Ah, number 2 is fantastic. I hadn’t spotted that (I’ve been particularly bad at monitoring the RSS feeds since my feed reader blew up). I’ll try that. |
Andrew Stacey 118 posts |
Just tested adding IALs to lists. Definitely useful, but I’d add one minor modification: the ability to use
would work. At the moment, I have a hack that uses the numbering system for theorems and so forth to get this to work, putting the class |
distler Moderator 123 posts |
I’m not sure I understand. If an element has an explicit id, because you gave it a I think your motivation is to have something that converts to LaTeX.
The latter is a bit awkward, as there can be several ordered-lists on a page. We’d need a separate counter for each one, no? |
Andrew Stacey 118 posts |
Actually, I’m going the other way. I’m going from LaTeX to Instiki. So the source file has
Now we should be able to refer to 1 and 2. I won’t know if that worked until I save the reply, though! Anyway, it certainly does work on Instiki. I don’t need another list in the CSS because the counters are already produced by the browser working on the list. All I need is for maruku to count the entries in the list, and for that I just need the dummy (Okay, time to see if that list worked.) |
Andrew Stacey 118 posts |
Yes, it worked! And to finish the thought, since I’m generating this from a LaTeX source, it can automatically handle adding the dummy CSS classes. |
distler Moderator 123 posts |
I bridle, only at referring to these as “dummy.” I thought that the whole mechanism I invented with those classes was very clever. And even more versatile than I had originally envisioned. Not “dummy” at all…. |
Andrew Stacey 118 posts |
Ah, another UK/US distinction. Something that is a “dummy” is not necessarily “dumb”. A “dummy” simply means a fake (although it’s not as pejorative), a “stand in”. Had I meant to be rude, I would have said “dumb CSS classes”. |
distler Moderator 123 posts |
I am familiar with the usage (there’s not a UK/US distinction). I was making a lame attempt at humour, whilst making the serious point that these CSS classes are used for styling (generated content), and as structural hooks (for converting the |
Andrew Stacey 118 posts |
Is the following possible? I tried a couple of things, but don’t know enough to know if what I tried was all that there was. Given that instiki can be installed as a gem, can I install a system-wide version of the code and then run it as a user, with each user having their own separate instiki process, but sharing the code? |
distler
Moderator
123 posts
edited 13 years ago |
Instiki cannot be installed as a Gem. There’s an old (~0.10.x) version, which worked as a Gem, and which is probably still floating around (on the internets, nothing ever really disappears). But that was long before my time, and I have not even thought about packaging the current version as a Gem. Of course, under Passenger, you can run multiple instances of a Rails application (including Instiki), under different subdirectories (or subdomains, if you have virtual hosts enabled). (At least with Instiki, that would require separate copies of the code, as each instance would have to point to its own database (in |
Andrew Stacey 118 posts |
Okay. So simpler just to have separate copies of the code. I guess what I’m stumbling around with this is some way to make the update cycle a little simpler. At the moment, I update a live instiki installation from golem, and with the I can easily do that with the bzr stuff, but how would it work with the gems? Perhaps if the live versions weren’t bzr repositories but were more simply synced with the offline version in some fashion (thinking a bit like how
would that work, do you think? Or is this another case of me thinking something is important which really isn’t. |
distler Moderator 123 posts |
As far as I can tell, updating the application files on a running Rails application (in production mode) has no effect, until the application is restarted. I, honestly, haven’t thought about the bundled Gems, but I expect the answer is the same. In any case, But I don’t think that’s your issue… |
Andrew Stacey 118 posts |
Here’s something I’d find useful: allowing for anchors in wikilinks. So that I could type I feel that there is a qualitative difference between a wikilink and a hyperlink, and links to anchors on particular pages should be in the wikilink category. |
distler
Moderator
123 posts
edited 13 years ago |
Indeed, there is. And that’s why there are no anchors allowed. If page “Foo” has multiple WikiLinks to [[Bar]], there’s still only one corresponding entry in the database. That could no longer be true if “Foo” could link to [[Bar]] and to [[Bar#baz]]. What you want is a hyperlink, and Markdown provide a syntax for hyperlinks which permits anchors. Update:On reflection, I suppose that allowing the presence of anchors doesn’t strictly conflict with having just one entry in the database. I should think some more … |
Andrew Stacey 118 posts |
It would still just be one entry in the database. But it would mean that there actually was an entry in the database if “Foo” only links to an anchor on “Bar”. Having to do it via hyperlinks would mean that the pages weren’t officially linked. My idea (no idea how practical) would be:
So then at the point of sorting out the database, instiki doesn’t care about the anchors and just registers the link to page “Bar”. |
Andrew Stacey 118 posts |
(Hopefully minor) feature request: this came up in a discussion on citing the nLab. It would be convenient to have the current revision number displayed on the page somewhere obvious. Perhaps the footer could read:
I know it’s easy to deduce - take the number after “Back in time” and add 1 - which is why I said “convenient” rather than anything stronger. |
Bernhard Sta... 4 posts |
As far as I can see, there’s a lot of discussion about notational conventions on nLab, e.g. in the article on comma categories. However, there’s a huge number of articles that would have to changed if some notation actually was to be consistently adopted. I haven’t made any scientific investigations, but it seems clear to me that this hinders improvement of notation. Good notation is essential for making mathematics intuitive and useable, so wouldn’t it make sense to add powerful features for expressing and experimenting with notations? A first step would be separating data and presentation, e.g. writing “\commacategory{F}{G}” or similar (not necessarily itex) instead of “F \downarrow G”. The concrete notation would be specified at a separate stage. This could happen
If this was done in every article, changing notations would become a matter of seconds. This would of course mean that in the case of nLab, some thousands of articles have to be changed (maybe some heuristics could be used to speed this up), but that has to be done only once and then hopefully never again. Future search-and-replace style global “refactorings” for generalizing or normalizing notation would become possible, too. The major technical challenge I see would be finding a good mechanism for specifying abstract notations. The rest should be pretty straightforward. What do you think about this? |
admin Administator 63 posts |
That sounds like a request for macro-support in itex. For a variety of reasons, that’s unlikely to happen. On the other hand, perhaps you have something else in mind … |
Andrew Stacey 118 posts |
I, for one, would be against this. It would actually hinder collaboration as everyone would have to learn the local conventions every time they wanted to edit a page, and stuff that worked on one wouldn’t work on another. |
Bernhard Sta... 4 posts |
What I mean is a research-friendly facility
I’m sure there’s a solution for that: A vocabulary could be modelled in a distributed fashion much like OWL ontologies or XML Schema Definitions, which allow for importing other “vocabularies” (ontologies/schemata). One could even imagine a versioning and migration scheme to implement the global refactorings I mentioned in my first post. I haven’t thought this through, but that might even be a practical application of basic category theory ;) BTW this also has the advantage that a user doesn’t have to learn the language again and again. |
distler Moderator 123 posts |
Is this a feature that is implemented somewhere? Your short description is slightly … underspecified. So looking at an actual implementation would be helpful to me, in deciding whether this is something to implement in Instiki. |
Andrew Stacey 118 posts |
The issue of needing ids to keep theorem numbers in step has been raised (again). Mike came up with a suggestion which seems reasonable on first reading which is that instiki (or whichever part of it is appropriate) adds an automatic id if one isn’t present, much in the way that the table of contents part does. So if I write
then instiki adds an automatic id, say |
admin Administator 63 posts |
I’m not quite sure what the issue is.
your theorems still get numbered (correctly, I hope). Since there’s no label, there’s no easy way to refer to this theorem, but maybe you don’t care. And if you do care, wouldn’t you want to avoid the fragility associated to an automatically-generated I must be misunderstanding… |
Andrew Stacey
118 posts
edited almost 13 years ago |
Take a look at http://ncatlab.org/nlab/show/Sandbox (feel free to ignore the request, I put that there to ensure that no-one messed with them before you’d seen it). Each theorem has Does the same issue happen here. Let’s experiment: TheoremThe first letter of the English alphabet is A. TheoremThe second letter of the English alphabet is B. TheoremThe third letter of the English alphabet is C. TheoremThe fourth letter of the English alphabet is D. TheoremThe fifth letter of the English alphabet is E. TheoremThe sixth letter of the English alphabet is F. Theorem 1 refers to A, Theorem 3 to C, and Theorem 6 to F. Yes, so it’s the same here. Thus, no need to check the Sandbox. Here’s the source of what I just typed:
|
admin
Administator
63 posts
edited almost 13 years ago |
Ah. That is indeed a bug. Fixed (in Instiki and Heterotic Beast, too). Thanks. |
Andrew Stacey 118 posts |
Wrong thread, then! |