Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2015-12-03 16:18:59

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

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

#4 2015-12-03 23:33:40

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

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

Board footer

Powered by FluxBB