Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-14 02:55:05

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

[issue] Footnote references next to Greek characters...

…just fail: παράδειγμα1

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

#3 2005-10-06 12:29:22

kellner
Member
Registered: 2004-02-27
Posts: 21
Website

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

Board footer

Powered by FluxBB