|
From: Geoffrey T. D. <da...@us...> - 2001-03-07 16:43:39
|
Update of /cvsroot/phpwiki/phpwiki
In directory usw-pr-cvs1:/tmp/cvs-serv29551
Modified Files:
index.php
Log Message:
Recognize international characters in WikiWords.
We do this by using POSIX character classes (like [[:upper:]]) in the
perl regexps. Getting this to work involves calling setlocale().
(See comments in lib/config.php for more details.)
I suspect my current hacks will not work in all PHP environments. I'd
appreciate success/failure reports.
Index: index.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/index.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** index.php 2001/02/17 18:05:47 1.12
--- index.php 2001/03/07 16:45:19 1.13
***************
*** 177,181 ****
// Perl regexp for WikiNames ("bumpy words")
// (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well
! $WikiNameRegexp = "(?<![A-Za-z0-9])([A-Z][a-z]+){2,}(?![A-Za-z0-9])";
// InterWiki linking -- wiki-style links to other wikis on the web
--- 177,181 ----
// Perl regexp for WikiNames ("bumpy words")
// (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well
! $WikiNameRegexp = "(?<![[:alnum:]])([[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])";
// InterWiki linking -- wiki-style links to other wikis on the web
|