First of all, we should talk to mathoid devs looking for a way to enable numbered equantions.
Then we could use a sort of label and maybe create an extension, but we have to know if we can show equations number or create anchors on math elements.
Another idea is creating a new element that just adds a number/ID to its contents. This would be more extensible than just for equations.
I agree. But we need something that works really good for math, to integrate it in OCG.
I have looked at the options here and I see two:
- Use the database calls directly. This would require some research on the organization of MediaWiki's database.
- Use WikiDB which is an extension that makes using MediaWiki's database easy. One issue with this is that it doesn't use git, it just makes you download a zip, which is hard to maintain.
WikiDB seems cool. What do you guys think?
The source code--it isn't hosted in a git repository, but you you have to download a zip, so it wouldn't work with our submodule workflow unless we make a repository ourselves.
Alright, so I learned how to use WikiDB. It is very easy to use, and very powerful.
Here is a quick demo I created.
Please note that I still need to iron out some formatting issues that have been plaguing me.
Good!! But I'd like to set the id for math inside dmath tag:
<dmath type=align id=quadratic formula>
It would be less verbos and dmath is our fork, no problem to change it :)
Alright, so I rewrote it to use the mediawiki database.
I have pushed to the repo, but I haven't updated the submodule yet because I have to update the scripts.
Sorry, I haven't worked on this in quite a while.
I will continue work on this this week, with updates of course :).
Sorry about the inactivity.