Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-21 20:06:34

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

[textile] Error in parsing *text* if line ends with cyrillic char

A никакиХ example. – provides <strong>
A никаких example. – doesn’t.

Edit: as i see forum uses good textile – see screenshot from textile site

The problem occures, as if i’m right, when string ends with cyrillic character “х”. When I use “Х” – it’s OK.

P.S. It’s char paramters over Windows Character Table.

P.P.S. Sorry for duplicating this error bug via http://textile.thresholdstate.com/ bug report :)

Last edited by the_ghost (2007-11-21 20:10:00)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#2 2007-11-21 20:22:31

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

P.P.S. Sorry for duplicating this error bug via http://textile.thresholdstate.com/ bug report :)

Actually, it should be reported via http://textile.thresholdstate.com/ – no requirement to do it here so ;)

Cheers!

Last edited by Gocom (2007-11-21 20:23:17)

Offline

#3 2007-11-21 21:26:12

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Victor, which TXP version are you using? I can’t reproduce this in the TXP 4.0.x development branch.

Offline

#4 2007-11-21 21:49:48

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

ruud wrote:

Victor, which TXP version are you using? I can’t reproduce this in the TXP 4.0.x development branch.

Version of Textpattern: 4.0.5 (r2466)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#5 2007-11-22 20:38:42

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

P.S. Another one bug: ABC(Alfabet) – works as ABC
But if I use cyrillic simbols – it doesn’t – SD(Дата память)

P.S. found discribing this problem myself here :)

Last edited by the_ghost (2007-11-22 20:40:29)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#6 2007-11-22 21:15:03

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

That has nothing to do with cyrillic symbols. The acronym regex only works with a minimum of 3 characters: ABC(Дата память)

In classTextile, that’s '/\b([A-Z][A-Z0-9]{2,})\b(?:[(]([^)]*)[)])/',. Changing that 2 into 1 would make it match 2 char abbreviations as well, but I can’t guarantee that this doesn’t have side effects.

As for the other problem you described in that other topic, have a look at the highly experimental solution I posted there.

Offline

#7 2007-11-22 21:41:47

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Thanks! I’ll try it later.
And what about strong behaviour?


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#8 2007-11-22 22:02:30

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

For the strong behaviour, try the classTextile.php that’s currently in the 4.0 development tree in SVN. That one works fine with the example you provided.

Offline

#9 2007-11-22 22:19:05

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Thanks for notice.


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#10 2008-04-07 08:32:47

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

New version of classTextile still has this bug :( Need to replace the х letter with code &#1093; – then it works.

Last edited by the_ghost (2008-04-07 08:41:04)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#11 2008-04-07 11:06:31

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

Victor, I’m doing this to reproduce:

  1. go to write tab
  2. in the main text-area, I enter: A *никаких* example.
  3. click ‘preview’ tab -> it shows bold.

Offline

#12 2008-04-07 15:25:59

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: [textile] Error in parsing *text* if line ends with cyrillic char

H… I’ve replaced the classTextile.php with version from svn. Doing like you wrote – no bolding :(


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

Board footer

Powered by FluxBB