Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: TextilePHP -- port of Choate's "Textile 2" available
Greenrift: it seems that this new version still ignores TXP tags. Will there be a version where it stops ignoring them, or does it not for a reason? I’m using utf-8, but unlike obeewan, it still ignores ‘em.
Also, is there any step-by-step instruction for adding your auto-acronym plugin to classTextile.php? I would love to be able to have more than one of your plugins working simultaneously.
Hafnius: SmartyPants works fine for me and I followed the instructions exactly. Is there some leftover in your TXP from your last round o’ hax that could be interfering?
Last edited by Cantide (2004-10-27 06:21:37)
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
You say that it ignores TXP tags, like txp:image and stuff? I’ll look into it, shouldn’t be terribly difficult to fix.
The auto acronym plugin won’t be added to my Textile2 class, and thats because Textile2 would require a lot of time, energy, headaches and mountain dew to figure out and add auto acronyms for. Regular textile was easy because it was all broken into nice functions with easy to read names, Textile2 is signifigantly more complex and confusing (or atleast seems so initially). Maybe in the future, or if someone wanted to figure out where exactly Textile2 handles acronyms and tell me.
Smartypants doesn’t need any additional configuration, but you will have to place the smartypants file into the textpattern/lib/ directory (where you put Textile2). Check to make sure that you’ve properly changed all the lines that call Textile.
Maybe someday I’ll write a script that searches through the current Textpattern release and SVN versions and outputs the lines that will need to be changed.
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
Yeah like txp:linklist.. anything I think. Just prints them as plain text. I hope it’s not just something stupid I’m doing on my setup. Thanks for the reply!
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
Bump! Did you ever find a fix to the ignoring of TXP tags, greenrift?
Offline
#50 2004-12-02 15:47:48
- Remillard
- Plugin Author

- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
Re: TextilePHP -- port of Choate's "Textile 2" available
For me there’s really no way to implement this until Textpattern tags (and plugin tags) are recognized and dealt with. I’m pretty interested in seeing if this is fixable.
Alternatively, might it be possible to rewrite Textile 2 along the lines of what Dean’s Textile class (the easy to read one ;-)) does? Maybe there’s a middle road somewhere.
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
It would take quite a lot of time to rewrite it to be more like Dean’s textile.
I think I have a way of making Textile2 ignore the TXP tags and then replace them after everything’s been processed.
Offline
#52 2004-12-02 16:06:30
- Remillard
- Plugin Author

- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
Re: TextilePHP -- port of Choate's "Textile 2" available
The other question I had after reading the Textile 2 documentation, are the differences between Textile and Textile 2 ever completely documented somewhere that you know of? (i.e. “Changed symbol x to symbol y. Fixed processing of symbol z. Added new symbol m.” etc?) Brad actually wrote out a pretty complete spec for Textile 2, but I had trouble finding a spec for Textile 1 so I’m not even sure of everything 1 is capable of.
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
I think I found an error in the way your plugin parses text
([underscore]note[underscore] this is a test)
should produce:
(note this is a test)
but in your plugin, the underscores remain instead of being converted to em tags
Last edited by bleveck (2005-01-20 00:54:56)
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
I also hacked TextilePHP for use with Textpattern. My changes are less involved (i.e. they use the TextilePHP implementation pretty much unchanged), and allow for insertion of custom macros.
I did use greenrift’s suggestion for making the Textile processor pluggable, but opted for a simpler modification to their Textile class.
Details here
‘Waste of a good apple.’ – Samwise Gamgee
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
Is this working for rc3? The link for greenrifts article is not working. If anyone has a working copy I would love to get one in the mail :)
Thanks!
Last edited by soulship (2005-05-22 01:33:56)
Offline
#56 2005-06-19 03:05:28
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: TextilePHP -- port of Choate's "Textile 2" available
bump
Last edited by Mary (2005-06-19 03:05:40)
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
I have a copy Mary, but it’s not working with the latest revisions. In fact it was looking quite ugly on one install.
Offline
Re: TextilePHP -- port of Choate's "Textile 2" available
I had given up on Textile way back when because it was horrendous at dealing with code samples (ie. disabling textile did not work too well). Anyway, I just started a new blog on TXP 4.0.1 and was following the instructions for greenrift’s hack from textpattern.net, but ran into some issues. Furthermore, greenrift’s link is gone so there’s no good starting point. I also noticed that the mod is a tad outdated in general and perhaps unclear to non-php-experts.
Additionally, I want PHP syntax coloring for the blog I’m developing. I’ve also just emailed Jim Riggs about whether he wants my modifications integrated into his development tree or if I should host them on my own.
[url=“http://templation.websaviour.com/”]Templation • Design Management System[/url]
Offline
#59 2005-10-04 07:58:18
- davidm
- Member

- From: Paris, France
- Registered: 2004-04-27
- Posts: 719
Re: TextilePHP -- port of Choate's "Textile 2" available
jiblet, I don’t know if this fit into Textile as such. Wouldn’t a Geshi plugin be the way to go ?
Maybe a plugin request would do it, many coders needing this kind of features…
Edit : made a quick search and you’ll be happy to know that there are no less than 2 plugins :
krl_geshiSyntaxHighlight
and jdt_geshi_code
:-)
Last edited by davidm (2005-10-04 08:00:59)
.: Retired :.
Offline