Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Yesterday 16:42:06

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

Textile and non-English links

A recent mundane task for an AI bot flagged this scenario:

If a Chinese full stop immediately follows a Textile link, for example:

"付款方式":/chn/faq_payment。

Textile may treat the `。` as part of the URL, producing a malformed link with encoded Chinese punctuation.

Manually adding a space fixes it:

"付款方式":/chn/faq_payment 。

Can anyone corroborate this please and let me know if it affects other languages and/or punctuation characters? If so, we might be able to file a Textile bug and have it improve the regex link detector to handle multilingual punctuation.


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

Offline

#2 Yesterday 22:04:51

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,710
Website

Re: Textile and non-English links

Stef, as I have said for the past 20 years, inline Textile (links, <strong>, etc) is NOT compatible with Chinese, Japanese, Mongolian, to some extend Korean, and probably problematic with Arabic, Persian, Urdu, Hindi,…

Reason: the Textile parser need a white-space as a separator.


In low-power mode.
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#3 Today 00:49:09

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

Re: Textile and non-English links

I didn’t expect it to be a new thing, but don’t recall seeing a bug filed for it. Maybe I should have looked harder, sorry.

Apologies for wasting your time reminding me.


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

Offline

#4 Today 06:20:12

phiw13
Plugin Author
From: East Asia
Registered: 2004-02-27
Posts: 3,710
Website

Re: Textile and non-English links

Many many moons ago I communicated with the original developer™ of Textile about this issue (required white-space as boundary), that went nowhere (I don’t think it was here on the forum, but rather by email). I kinda lost interest in it, found workarounds (for a while MarkDown despite by dislike for it, it behaves less badly). Now mostly a couple of Textpattern short tags instead of using the Textile code (and a little help box on the side of write area, a little plugin thanks to Oleg).

Here is a little sample Japanese text illustrating a few issues: emps.l-c-n.com/notebook/japanese-with-textile

PS – in theory, for links one could use the <txp:link /> family, but lower level authors do not have access to the links panel

Last edited by phiw13 (Today 06:21:14)


In low-power mode.
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB