Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-05-28 07:06:06

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,395
Website

inputting special characters in the title of a post – tetragram

We were playing with using tetragram characters in a post. Textpattern doesn’t seem to like those at all:

  • inputting the raw character ( U+1D319) — and everything that follows it – is swallowed and vanishes upon saving for both the title and the body.
  • inputting the equivalent html entity (& #119577;) works only for the body of the post, it still gets swallowed for the title.

Does anyone has a suggestion on how to handle this ? Disabling Textile for the post doesn’t help at all.

(edit – the same happens here on the forums… upon hitting ‘submit’. Preview works fine, see that post)

Last edited by phiw13 (2010-05-28 07:07:57)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#2 2010-05-28 16:42:59

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: inputting special characters in the title of a post – tetragram

I’ve gotten around this by making a “formatted title” custom field, which (if it exists for a given article) is displayed instead of the real title on the front end.

Textpattern’s article title field is limited in what it can include (no HTML, special entities, etc.) I think because of how it is used by the database, in feeds, etc.

Offline

#3 2010-05-29 13:26:48

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,395
Website

Re: inputting special characters in the title of a post – tetragram

Hmm, nice idea, thanks Jason. A custom field kinda works for the front-end (as long as you don’t forget about the escape attribute…); with some bits of a <txp:if_custom_field it replaces the title nicely, both in contents part and in the browser title-bar/tab.
The url-title can be worked around with percentage encodings, although no browser that I know do the sane thing and show the character in the url.

There is still an issue, though: the custom field is not used as a title in the feed. At least I haven’t found a way so far.

—-
(anybody has an idea as to why it is impossible to use the raw character, only the html entity works? Is that because MySQL is not yet ready to handle characters in the SMP – supplementary multilingual plane ? Wordpress appears to have the same issue.)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB