PDA

View Full Version : How does PhpDig epure text?


Edomondo
03-02-2005, 05:46 AM
I had a closer look at PhpDig code and couldn't find how does PhpDig epure texts.
I'm wondering how it strips the text into keywords.

phpdigEpureText() removes dots (periods) and multiple spaces. However, I was unable to get to know how it removes other punctuation marks (comma, semi-colon...)

I would like to exclude multi-byte punctuation marks used in Japanese from keywords stored in the DB.

Any help, please.

Charter
03-03-2005, 08:17 AM
PhpDig v.1.8.8 RC1 strips punctuation off the front and back of a 'word' where a 'word' is defined by space breaks. There are a couple of spots where this occurs. Search the PhpDig files for [\x00 to find the spots.