Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2015-12-03 01:02:42
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Textile doesn't match the letter Ö in a abbreviation
Don’t we have a Textile Forum?
I have a question: Why the letter Ö in a abbreviation isn’t matched although “classTextile.php” contains 'abr' => '\p{Lu}'
?
$this->regex_snippets = array(
'acr' => '\p{Lu}\p{Nd}',
'abr' => '\p{Lu}',
'nab' => '\p{Ll}',
'wrd' => '(?:\p{L}|\p{M}|\p{N}|\p{Pc})',
'mod' => 'u', # Make sure to mark the unicode patterns as such, Some servers seem to need this.
);
Offline
Re: Textile doesn't match the letter Ö in a abbreviation
I’m not quite sure if I understand the essence of your question but on Textpattern 4.5.7 with Textile 2.4.3 rendering this input:
Die ÖBB(Österreichische Bundesbahnen).
gives this output:
Die <abbr title="Österreichische Bundesbahnen"><span class="caps">ÖBB</span></abbr>.
I believe this works as expected.
Offline
#3 2015-12-03 23:18:39
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Textile doesn't match the letter Ö in a abbreviation
Thanks, wet.
It’s strange, in all my installations yes it works, only in one of a customer it doesn’t work. Is Textpattern 4.5.7 and Textile 2.4.3, but I see that it runs on PHP 5.2.17. Could that be the reason?
Offline
Re: Textile doesn't match the letter Ö in a abbreviation
Maybe a PCRE thing. I’ve heard some versions have flaky unicode support, but that’s clutching at straws as PHP 5.2.* shipped with PCRE 7.9(ish).
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#5 2015-12-03 23:42:24
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Textile doesn't match the letter Ö in a abbreviation
Thanks, Bloke.
Anyway, I’ll try to increase the PHP version.
Offline