Page 1 of 2
textile
Posted: Sun Dec 25, 2005 11:31 am
by alio
hello everybody, i've recently switched from WP to serendipity, but before I god used to textile "language" and i don't like WYSIWYG editors. so I've installed markup:textile plugin but it ain't working properly.
for instance: headers and paragraphs tags remain unchaned (h1., h2., ... as well as p>., p<.)
is there any way how to make it working?
Re: textile
Posted: Mon Dec 26, 2005 8:57 pm
by garvinhicking
We might use an older version of the textile markup language, which may not support all the latest and greatest tags?
However, the textile plugin is used VERY little by Serendipity Users, and I for myself also don't use it -- so we could use someone who maintains that plugin and updates its library?
Best regards,
Garvin
Re: textile
Posted: Mon Dec 26, 2005 9:30 pm
by Guest
garvinhicking wrote:We might use an older version of the textile markup language, which may not support all the latest and greatest tags?
However, the textile plugin is used VERY little by Serendipity Users, and I for myself also don't use it -- so we could use someone who maintains that plugin and updates its library?
Best regards,
Garvin
which one could you recommend?

Re: textile
Posted: Mon Dec 26, 2005 9:34 pm
by garvinhicking
Have you had a look at GeSHI? Or BBCode? Or WikiMarkup?
Regards,
Garvin
Posted: Sat Aug 05, 2006 7:54 pm
by alex100
Did someone ever update textile yet?
I am used to work with textile and regard it to be just GREAT!

and much easier to use than anything else. F. e. with BBCode i have to type
19 characters for a list with 3 itmes. With textile i have to type
3 characters. 3:19 that is a lot
Umlautproblems (or ß) i never had with textile... publishing code with textile is a bit tricky though.
Posted: Tue Aug 08, 2006 3:33 pm
by judebert
Not that I'm aware of. I don't see anything on the SourceForge.net trackers, either.
I know that all our developers are overworked right now, with some sufferring from heat exhaustion.
Care to take a stab at it? We'd love to include your solution.
Posted: Tue Aug 08, 2006 3:35 pm
by garvinhicking
Hi!
I must admit I never touched the textile plugin. It had an ugly bunch of functions in it that did not work within the class context of s9y plugins.
We had to take a lot of effort to rewrite the textile library so that it calls $this->... instead of the function name only.
And I'm afraid that updating will revert all of this and introduce all of the painful work again. I'd like to leave that for a developer who actually uses textile
Best regards,
Garvin
Posted: Tue Aug 08, 2006 5:48 pm
by alex100
garvinhicking wrote: I'd like to leave that for a developer who actually uses textile
That makes sense. Unfortunately i am no coder otherwise i would not have asked. If i ever come across someone knowing textile very well, i will ask.
Posted: Wed Aug 09, 2006 10:22 am
by garvinhicking
Hi Alex!
Sure, it wasn't meant towards you! I just don't want to break anything. If you happen to find somebody, I would be thrilled to work with him.
Best regards,
Garvin
Posted: Sun Aug 27, 2006 1:10 pm
by MatthiasLeisi
judebert wrote:Care to take a stab at it? We'd love to include your solution.
OK, I did a little digging in plugins/serendipity_events_textile/textile.php. It seems that the global variables for the various regexes (regices?

) were not available properly through the
globals keyword.
With the following:
* add a "function myglobals()"
* call it from within "function textile()"
* replace the calls to the non-existing function "pba" with "textile_pba"
all "extras" of Textile formatting (alignment etc) work again:
Code: Select all
182a183,198
> function myglobals() {
> global $textile_hlgn, $textile_vlgn, $textile_clas, $textile_lnge, $textile_styl,
> $textile_cspn, $textile_rspn, $textile_a, $textile_s, $textile_c, $textile_pnct;
> $textile_hlgn = "(?:\<(?!>)|(?<!<)\>|\<\>|\=|[()]+)";
> $textile_vlgn = "[\-^~]";
> $textile_clas = "(?:\([^)]+\))";
> $textile_lnge = "(?:\[[^]]+\])";
> $textile_styl = "(?:\{[^}]+\})";
> $textile_cspn = "(?:\\\\\d+)";
> $textile_rspn = "(?:\/\d+)";
> $textile_a = "(?:$textile_hlgn?$textile_vlgn?|$textile_vlgn?$textile_hlgn?)";
> $textile_s = "(?:$textile_cspn?$textile_rspn?|$textile_rspn?$textile_cspn?)";
> $textile_c = "(?:$textile_clas?$textile_styl?$textile_lnge?|$textile_styl?$textile_lnge?$textile_clas?
|$textile_lnge?$textile_styl?$textile_clas?)";
> $textile_pnct = '[\!"#\$%&\'()\*\+,\-\./:;<=>\?@\[\\\]\^_`{\|}\~]';
> }
>
184c200
<
---
> myglobals();
298d313
< $tatts = textile_pba($matches[1],'table');
299a315
> $tatts = textile_pba($matches[1],'table');
302c318
< $ratts = pba($rmtch[1],'tr');
---
> $ratts = textile_pba($rmtch[1],'tr');
310c326
< $textile_catts = pba($textile_cmtch[1],'td');
---
> $textile_catts = textile_pba($textile_cmtch[1],'td');
Thanks,
-- Matthias
[/list]
Posted: Sun Aug 27, 2006 1:31 pm
by garvinhicking
Hi!
Thanks a lot, I just fixed this!
Best regards,
Garvin
Re: textile
Posted: Sun Aug 27, 2006 6:50 pm
by stm999999999
garvinhicking wrote:Have you had a look at GeSHI? Or BBCode? Or WikiMarkup?
GeSHI is a markup language? I found only GeSHI as a syntax highlighter!?
Posted: Sun Aug 27, 2006 7:14 pm
by stm999999999
there is still a problem with textile (which seems be great!

) and the media library:
the library makes such code:
Code: Select all
<!--s9ymdb:152--><img width='550' height='367' style="border: 0px; padding-left: 5px; padding-right: 5px;" src="/uploads/artikel/homepage-dna.png" alt="" />
The !--s9ymdb:152-- seems to be a problem, because it outputs:
<!-<del>s9ymdb:166</del>-><img width='350' heig...
So s9ymdb:166 is displayed before the image .-(
You can see, what textile makes, here:
http://rpc.textpattern.com/help/?item=intro
http://www.textism.com/tools/textile/index.php
As I see, the problem can beo solved by a little change in the code of teh library:
Not
<!--s9ymdb:152-->
but
<!-- s9ymdb:152 -->
with a space between. Is this possible?
Because textile realy seems to be nice: easy lists, <p>xx</p> around each paragraph instead of the nl2br-plugin ...
BTW: Is there any documentation for the serendipity-text-markup?
Posted: Sun Aug 27, 2006 7:35 pm
by garvinhicking
Hi!
Great suggestion. Altering the s9ymdb was no problem, just committed.
BTW: Is there any documentation for the serendipity-text-markup?
I'm afraid there isn't. You would need to look into the code to get it - it was there before I came around, and I never fully understood the rules in that plugin *g*
best regards,
Garvin
Posted: Sun Aug 27, 2006 8:09 pm
by stm999999999
Great suggestion. Altering the s9ymdb was no problem, just committed.
Whats about old-styled-articles? I know, to make it work with textile, I have to make the spaces in old articles by hand, but: If someone do not make this (because he do not want to use textile at all), does the patched library recognice the old style, too?
BTW: Is there any documentation for the serendipity-text-markup?
I'm afraid there isn't. You would need to look into the code to get it - it was there before I came around, and I never fully understood the rules in that plugin *g*
Oh, a little Jannis' secret?
