Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[issue] Footnote references next to Greek characters...
…just fail: παράδειγμα1
VC3 :: weblog :: my wishlist
Offline
#2 2005-09-14 08:47:43
- dsiem
- New Member
- Registered: 2004-10-09
- Posts: 3
Re: [issue] Footnote references next to Greek characters...
This is an issue with regular expressions and UTF-8 characters. Quote from http://www.pcre.org/pcre.txt:
The character escapes \b, \B, \d, \D, \s, \S, \w, and \W correctly test characters of any code value, but the characters that PCRE recognizes as digits, spaces, or word characters remain the same set as before, all with values less than 256. This remains true even when PCRE includes Unicode property support, because to do otherwise would slow down PCRE in many common cases. If you really want to test for a wider sense of, say, “digit”, you must use Unicode property tests such as \p{Nd}.
Other things like “foobar“(remove “”) don’t work either.
To fix this, somebody would have to replace all occurrences of \b, \w etc. with \p{…}.
Offline
Re: [issue] Footnote references next to Greek characters...
Argh, I just stumbled across the same trying to get some footnotes into a Sanskrit text (with non-alphanumeric characters like ṃ, ā, ḥ …). Apparently Textpattern doesn’t accept footnotes after punctuation marks either, which is a real drag.
Is there a chance this behaviour might change in the near future?
Thanks,
Offline