Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2004-06-22 03:12:24

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: TextilePHP -- port of Choate's "Textile 2" available

I have updated it to version 0.2

It fixes the problem’s Brad was having and possibly some others. Also updated to the newest version of TextilePHP (2.0.3 Jun 6).

Offline

#17 2004-07-17 01:30:15

Spiller
New Member
From: Macedonia
Registered: 2004-02-24
Posts: 5

Re: TextilePHP -- port of Choate's "Textile 2" available

Too bad it doesn’t support Amazon and Imdb links like Brad’s version on MT. Hopefully someone will incorporate those too…

Great job greenrift:)

Offline

#18 2004-07-18 18:37:42

Logoleptic
Plugin Author
From: Kansas, USA
Registered: 2004-02-29
Posts: 482

Re: TextilePHP -- port of Choate's "Textile 2" available

Spiller wrote:

Too bad it doesn’t support Amazon and Imdb links like Brad’s version on MT. Hopefully someone will incorporate those too…

If you’ve tried this and it doesn’t work, you can submit a bug report asking Jim to add this feature.

Last edited by Logoleptic (2004-07-18 18:38:07)

Offline

#19 2004-09-10 15:09:44

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: TextilePHP -- port of Choate's "Textile 2" available

Just to add. Don’t forget to check your plugins code too. I use chh_article_custom who also includes classTextile.php.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#20 2004-09-11 18:02:33

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: TextilePHP -- port of Choate's "Textile 2" available

greenrift,

I found a bug in the processing. Try to add [underscore]0[underscore] to an article and “Textile” it with TextilePHP v0.2. It comes out as <em></em>.

Note: The “vanilla” Textile outputs the same line as [underscore]0[underscore].

Last edited by obeewan (2004-09-11 18:03:19)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#21 2004-09-11 23:39:13

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: TextilePHP -- port of Choate's "Textile 2" available

I have just installed textilephp instead of the native textile but i have problems with the charset. i use iso-8859-1 but none of the special char we have in denmark (æ, ø, å) are getting trough correctly they all gets converted to non-readable characters.

Any ideas?


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

#22 2004-09-12 00:19:52

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: TextilePHP -- port of Choate's "Textile 2" available

hafnius,

Works like a charm here with both swedish and the danish ones you listed.

Where do you use the iso-8859-1 charset, and why not the utf-8?

Did it work earlier when you had not installed TextilePHP?


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#23 2004-09-12 16:23:36

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: TextilePHP -- port of Choate's "Textile 2" available

Obeewan

“Did it work earlier when you had not installed TextilePHP?”

yes everything worked before

“Where do you use the iso-8859-1 charset, and why not the utf-8?”

i send of in the header of the page and i dont know why i dont use the utf-8 :)

i downloaded the textilephp again and now it works except for two things:

1. Local characters in capitals, ie Ø are parsed to its htmlentitie but shows in the browser like the htmlentitie. This happens regardless of the doctype charset i specify. This does not happen with ø only Ø. of course i could solve it by using the macro for Ø, ie {O/}, but that would be to cumbersome.

2. my <txp:tags> are not working anymore should i use something instead?

/Hafnius

Last edited by hafnius (2004-09-12 16:24:31)


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

#24 2004-09-12 22:32:58

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: TextilePHP -- port of Choate's "Textile 2" available

As you will see in my test article both works perfectly here. Strange.


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#25 2004-09-12 22:47:06

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: TextilePHP -- port of Choate's "Textile 2" available

Thanx for putting that up, Obeewan

In your testpage Ø gets converted to “&#216;” which the browser is happy with. At my end the same letter Ø is converted to “&Oslash;”

As you can see here

BTW i send the charset iso-8859-1 in the header so you wont see it in the source code. Changing the charset to utf-8 has no effect on this problem.

What is up here?


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

#26 2004-09-12 22:59:55

obeewan
Archived Plugin Author
From: Stockholm, Sweden
Registered: 2004-08-12
Posts: 319
Website

Re: TextilePHP -- port of Choate's "Textile 2" available

Do you add them as entities to your posts? Since & infront of the Oslash is written as <code>& amp;</code> (with no space, just added cuz of Textile) in the output. Personally I just copied and pasted into my article.

And I see no <code><meta http-equiv=“content-type” content=“text/html; charset=utf-8” /></code> either.

Last edited by obeewan (2004-09-12 23:00:20)


Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1

“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu

Offline

#27 2004-09-13 00:29:51

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: TextilePHP -- port of Choate's "Textile 2" available

Obeewan

“Do you add them as entities to your posts?”

Nope But i solved it – as you mention it was the ampersand (amp;) that was causing the prob so i forund on line 2636 in classTextile.textilephp.php:

“var $Have_Entities = 1;” which i changed to “var $Have_Entities = 0;”

And then the ampersands have gone – i am still left with the entities but they display fine :)

“And I see no < meta http-equiv=“content-type” content=“text/html; charset=utf-8” /> either.”

No i added it to the header in /publish.php around line 166 like this:

header(“Content-type: text/html; charset=iso-8859-1 Content-language: da”);

its the same result :)

So thats it – thanx for your help

/Hafnius

Last edited by hafnius (2004-09-13 00:31:48)


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

#28 2004-09-14 03:20:04

Cantide
Member
From: Wellington, New Zealand
Registered: 2004-03-03
Posts: 27
Website

Re: TextilePHP -- port of Choate's "Textile 2" available

I’ve just installed TextilePHP and am roaring through my site with definition lists left right and centre. One thing I’ve noticed is that articles which have TXP tags as part of them, well they’re just getting ignored, and printed out as plain text. Such as

<pre><txp:section_list />
<txp:article_custom section=“company” listform=“headings” /></pre>

Is anyone else having similar troubles?

Offline

#29 2004-09-14 16:35:43

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: TextilePHP -- port of Choate's "Textile 2" available

Yes Cantide…

Just found out i have to. Looking into it i found that Textilephp is makink the opening and closing brackets into html entities:

“<” becomes “&lt ;” check out the tags in the xhtml preview pane; thats why they are being ignored. Sifting through Textilephp i could not find any solution.

Any thoughts on this greatly appreciated !

/Hafnius

Last edited by hafnius (2004-09-14 20:38:26)


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

Board footer

Powered by FluxBB