Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 17th, 2007, 2:40 PM   #1
LOI Kratong
Professional Programmer
 
Join Date: May 2005
Location: Woo - Boot Sector!
Posts: 294
Rep Power: 4 LOI Kratong is on a distinguished road
Exclamation 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!
__________________
www.heldtogether.co.uk
LOI Kratong is offline   Reply With Quote
Old Feb 21st, 2007, 5:17 PM   #2
a thing
Unverified User
 
a thing's Avatar
 
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0 a thing is on a distinguished road
1. "released under GNU" makes no sense in that context. GNU is an OS.
2. You're reinventing the wheel. MediaWiki has all this.
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted.
Got 'Nux?—GNU/Linux and other free software support.
It's GNU/Linux, not just Linux.
a thing is offline   Reply With Quote
Old Feb 21st, 2007, 5:23 PM   #3
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
MediaWiki is a bit of a heavyweight, though.
Arevos is offline   Reply With Quote
Old Feb 22nd, 2007, 12:00 PM   #4
LOI Kratong
Professional Programmer
 
Join Date: May 2005
Location: Woo - Boot Sector!
Posts: 294
Rep Power: 4 LOI Kratong is on a distinguished road
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.
__________________
www.heldtogether.co.uk

Last edited by LOI Kratong; Feb 22nd, 2007 at 12:14 PM.
LOI Kratong is offline   Reply With Quote
Old Feb 22nd, 2007, 11:23 PM   #5
a thing
Unverified User
 
a thing's Avatar
 
Join Date: Aug 2005
Location: none
Posts: 146
Rep Power: 0 a thing is on a distinguished road
Quote:
Originally Posted by LOI Kratong View Post
mediawiki relies on a server farm, go figure..
They didn't state that very clearly. MediaWiki is designed well enough to power the gigantic WikiMedia projects, but it can run on a single server.

Quote:
Originally Posted by LOI Kratong View Post
The one I'm writing relies on a "one man and his dog" kinda show, with flat files and xml.
In that case, just set up a bunch of blogs.
__________________
Warning: My posts may change (dramatically) within the first 15 minutes they're posted.
Got 'Nux?—GNU/Linux and other free software support.
It's GNU/Linux, not just Linux.
a thing is offline   Reply With Quote
Old Feb 24th, 2007, 1:05 PM   #6
LOI Kratong
Professional Programmer
 
Join Date: May 2005
Location: Woo - Boot Sector!
Posts: 294
Rep Power: 4 LOI Kratong is on a distinguished road
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.
__________________
www.heldtogether.co.uk
LOI Kratong is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing a License for Open Source Project smith.norton Project Ideas 23 Oct 7th, 2006 3:27 AM
Open Source kp4621 Coder's Corner Lounge 51 May 19th, 2006 8:58 AM
How to meet these cross-platform project goals? mattengland C++ 1 Apr 3rd, 2006 4:01 AM
what open source code is good to read for a beginner? linuxpimp20 Other Programming Languages 22 Aug 30th, 2005 3:01 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:07 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC