Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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
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
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
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
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
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
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
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
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
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 х
– 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
Re: [textile] Error in parsing *text* if line ends with cyrillic char
Victor, I’m doing this to reproduce:
- go to write tab
- in the main text-area, I enter:
A *никаких* example.
- click ‘preview’ tab -> it shows bold.
Offline
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