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

#13 2008-04-07 16:15:51

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,
where does that 11 come from in the preview?
which PHP version is installed on the server?

I’ve tried to reproduce it with the exact same two lines you’re using… but it keeps working here.
Can anyone else reproduce this problem? Copy the following two lines in a fresh article and click ‘preview’:

A *никакиХ* example.
A *никаких* example.

Offline

#14 2008-04-07 16:34:13

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 – 11 is article’s title :)
Tried again in new article – nothing :(

Here is part of diagnostic:

Textpattern version: 4.0.5 (r2466)
Last Update: 2007-11-04 19:39:33/2007-11-04 18:44:30
Document root: /home/u78707/uromax.ru/www
$path_to_site: /home/u78707/uromax.ru/www
Textpattern path: /home/u78707/uromax.ru/www/textpattern
Permanent link mode: section_title
open_basedir: /home/u78707/
upload_tmp_dir: /home/u78707/uromax.ru/tmp/
Temporary directory path: /home/u78707/uromax.ru/www/textpattern/tmp
web_domain: uromax.ru
PHP version: 5.2.5
Register globals: 1
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server Local Time: 2008-04-07 20:33:13
MySQL: 5.0.45-log
Locale: en_US.UTF-8
Server: Apache
Apache version: Apache
PHP Server API: apache
RFC 2616 headers: 
Server OS: FreeBSD 6.2-RELEASE-p1

But! Tried just at txp from another server – and it works!

Here is diagnostic of another server’s txp install:

Версия Textpattern: 4.0.5 (r2466)
Последнее обновление: 2007-07-18 22:02:04/2007-07-29 09:51:11
Document root: /h/okoshkiby/htdocs
$path_to_site: /h/okoshkiby/htdocs
Путь к Textpattern: /h/okoshkiby/htdocs/textpattern
Режим постоянных ссылок: section_title
Папка для временных файлов: /h/okoshkiby/htdocs/textpattern/tmp
URL сайта: www.okoshki.by
Версия PHP: 4.4.4-9+lenny1
Register globals: 1
gd_library: gd_info: 2.0 or higher, GIF, JPG, PNG
Время на сервере: 2008-04-07 19:36:45
MySQL: 5.0.45-5-log
Локализация: ru_RU.UTF-8
Сервер: Apache/2.2.6 (Debian) mod_ssl/2.2.6 OpenSSL/0.9.8g mod_jk/1.2.18
PHP Server API: cgi-fcgi
Заголовки RFC 2616: 
ОС сервера: Linux 2.6.22.16-vs2.2.0.6ext
Активные плагины: rss_admin_show_adv_opts-0.1, ob1_title-2.1, rus_tag_library-0.5, asy_wondertag-0.5, cbs_category_list-0.9, chh_if_data-0.10, glx_if-0.6.4m, wow_menu-1.02, cbs_navigation_menu-0.4, prad_image_index-0.4.0, aam_zcr_clearcache-0.12, fpx_image_import-0.3, asy_jpcache-0.9.8, rss_admin_db_manager-4.3, rss_thumbpop-0.7, smd_lib-0.21c, smd_slimbox-0.25a, rss_live_search-0.7m, upm_insert_tab-0.3, bos_image_display-0.44, rss_auto_excerpt-0.5, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6m, smd_gallery-0.32, rvm_css-0.3

It’s in russian, sorry. But you can see PHP version

Last edited by the_ghost (2008-04-07 16:40:22)


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

#15 2008-04-07 18:39:10

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,461
Website GitHub

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

fwiw, both strings get bolded for me on a stock 4.0.6 with PHP 4.4.4. Maybe something in a later PHP then?

Last edited by Bloke (2008-04-07 18:40:31)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Online

Board footer

Powered by FluxBB