For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > September 2004 > Re: [PEAR-DEV] BBCodeParser [Was: Mail conversation parser?]









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-DEV] BBCodeParser [Was: Mail conversation parser?]
Tobias Schlitt

2004-09-21, 8:58 am

Hi Stijn,
hi fellow QA'lers (yup, I'm back! ;)

Richard York wrote 09/21/2004 01:11 PM:

> Speaking of BBCodeParser, there hasn't been any development on that for
> a while and I'm afraid it won't be up to the task. (Maybe an issue for
> PEAR-QA?) For instance, it doesn't support quoted attributes very well,
> if at all. IIRC it chokes on quoted attributes. I did my own hacked
> version of it a month or so ago to support different BBCode dialects and
> put in more reliance on CSS, but haven't yet figured out the quoting
> algorithm. I'm not fantastic with regexs anyway or I might take on an
> update of that as well. I did try contacting the lead on that package
> some time back, but he never responded.


I noticed that BBCodeParsers development is very low some time ago,
what's indeed a pitty because we use the package on PEARWeb. The last
release is about a half year ago and there are 10 open bugs.

Stijn, are you still available for maintainance and further development?
Maybe you wann invent a co-maintainer or let us search one?

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/5...ng_release.html

Note that these are just some startup suggestions and should not sound
offensive in any way. They are just some thoughts on optimizing development.

With kind regards,
Toby
--
Tobias Schlitt GPG Key: 0xA6529579
a passion for php http://www.schlitt.info
Like to say "thank you"? - http://pear.php.net/wishlist.php/toby
Stephan Schmidt

2004-09-21, 3:57 pm

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/5...ng_release.html


Sebastian (the maintainer of patBBCode) moved back to France last w
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 w.

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com