![]() |
Need help adding to Open Source Project!
Hey guys, over the past month or so I have been developing my own wiki software (many of you will have seen it in the current projects section). It utilises a set of classes called Text_Wiki which are part of the PEAR project. I really like the usability etc. and basically would like to add to the project.
Text_Wiki parses wikitext (a simple syntax) and renders it in html, easy! What I though would be neat is if the users had the ability to insert a mathematical formula to their pages. With a bit of hunting I came up with the PhpMathPublisher package written by some French guy, released under GNU. No problems so far. This takes anything between <m></m> tags and creates a pretty image of it. Sweet. I even got as far as looking at the source code (which I had already tinkered with so I knew what was involved) and thinking this won't be too hard. Then I hit the problems: I tried simply copying the parse page for html and changing the regular expression from <html> to <m>. By introducing known errors I am positive that this page is called, but the render page is definitely not called. I am looking for someone(s) to help me trawl through the classes and figure out what needs doing. I repeat I am looking for someone who is good with Classes, not PHP. Okay now we have that cleared up I tell you about my progress. Initially I tried playing with code myself, this didn't work. I posted on the dedicated (yet deserted) mailing list, got no response. I posted on a number of dedicated php forums, no one was really interested in what I was doing. I have even emailed the author a few times but he hasn't responded yet (although I still live in hope that he is on holiday as his blog hasn't been update since the end of last month :o ). If you could possibly help me, here is the cvs of the project. The particular pages of interest: Basically all that needs to go in the render function is: [PHP]require "../Math/mathpublisher.php5"; $output = mathfilter($options['text'],"15","../Math/img"); return $output;[/PHP] I would really appreciate getting some help on this, and if we're successful, who knows, maybe we could get it in the next release, or even release the entire wiki to rival other lightweight versions (!!) :beard: But for now any help on the problem at hand would be much appreciated! |
1. "released under GNU" makes no sense in that context. GNU is an OS.
2. You're reinventing the wheel. MediaWiki has all this. |
MediaWiki is a bit of a heavyweight, though.
|
I meant to write GNU GPL, and no, mediawiki relies on a server farm, go figure.
The one I'm writing relies on a "one man and his dog" kinda show, with flat files and xml. |
Quote:
Quote:
|
Yes thank you oh wise one!
Now if we can get back to the op, the question is rendering mathematical equations, not how I should go about my project, for which I have extensively researched and concluded that nothing currently available suits my needs. Has anyone managed to have a quick browse through the links above? Thanks. |
| All times are GMT -5. The time now is 2:01 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC