Re: BBCodeParser [Was: Mail conversation parser?]

From: Date: Tue, 21 Sep 2004 13:01:53 +0000
Subject: Re: BBCodeParser [Was: Mail conversation parser?]
References: 1 2 3 4 5  Groups: php.pear.dev php.pear.qa 
Request: Send a blank email to pear-dev+get-33513@lists.php.net to get a copy of this message
Hi, Tobias Schlitt wrote:
Another point is, that PAT has a nice looking BBCode class available, which maybe can be merged with our BBCode class (or even replace it?). http://blog.php-tools.de/archives/53_patBBCode_nearing_release.html
Sebastian (the maintainer of patBBCode) moved back to France last week and currently has not access to the net. So if someone is contacting him on this matter, you shouldn't wonder, that you get no reply. Basically, patBBCode is quite PEAR compliant. One would have to adjust class names and some coding styles. The huge advantage is, that patBBCode emulates SAX-absed parsing (I emulate it, using a simple preg_split) and s able to direct the BBCode handling to small classes that do whatever you like. These classe get the namespace, tagname and array of attributes. Furthermore it's possible to define templates for simple transformations. It is configurable in many ways, as there's an configuration reader class that can be replced (INI reader is available, as well as a reader that just checks in the filesystem, whether there's a file that defines the tag). I could help Sebastian port this to PEAR, if he's interested. I'll try to give him a call on this matter during the following week. I put some examples available at: http://examples.php-tools.net/patBBCode/examples/ (Not fully working, this is the latest CVS version) I PEAR-compliant package can be downloaded frm: http://snaps.php-tools.net/ Stephan

« previous php.pear.dev (#33513) next »