Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [textile] Textile 2.4 now available.
Hi Steve,
I copied/pasted the code of 2.4 in the existing file. This morning, I thought of reuploading/replacing it and all errors are gone.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [textile] Textile 2.4 now available.
Thanks, Steve. These are great enhancements.
Merged in r3778.
Offline
Re: [textile] Textile 2.4 now available.
Thanks a lot for the update, even though it’s mainly for the linebreaks in table cells :-)
Offline
Re: [textile] Textile 2.4 now available.
Hi Steve,
I’m using Txp 4.5 beta and trying out Textile footnotes. I’m seeing a little problem, I think. A test case…
The sun is reportedly hot[#bim]. And goat-toed high heels are presumably cruel[#bam].
note#bim. Note one.
note#bam. Note two.
notelist:1.
For the most part, the output is what you would expect, except instead of getting this, as expected…
I get this…
If I use notelist., the same problem exists except the values are just “a”, instead of the expected “a” and “b”.
Also, I guess I can put a list-style:none; on the output list, but wouldn’t it make sense to do that by default so there’s not the duplicate digits, one from the list item and the other from the link back? I would expect to see this for footnotes:
Different question: is it possible to have multiple footnote lists on a given article; e.g., at the end of each major section? It seemed not from the docs, though it didn’t specifically say.
Lastly, is there a new Textile reference existing somewhere, or in planning? Something that will replace the old Thresholdstate link in the UI? Not the Github source, or the text file doc, but something like a visual style guide? If not, would there be interest in creating one? (Something that might reduce the number of help enquiries in this forum, as well serve as a reference for authors everywhere.)
Thanks for maintaining Textile, Steve!
Offline
#20 2012-08-07 15:09:22
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: [textile] Textile 2.4 now available.
I just used the fact to find the above Textile sample for footnotes, and so I played around a little.
When I changed notelist:1. to notelist:a. I expected to see the #bim and #bam indices changing from 1/2 to a/b which didn’t happen. Did I have the wrong expectations?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#21 2012-08-07 20:48:56
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile 2.4 now available.
Hi Destry,
The output you see is correct. The :1 controls the numbering within the list of backrefs from each note into the text and as your example only has one reference to each note, each backref gets labelled as ‘1’ as it is the first backref into the main corpus in each case. Try this to see what I mean…
The sun is reportedly hot[#hot], just like freshly baked potatoes[#hot]. Ice is cold[#cold].
note#hot. Ouch.
note#cold. Brrr.
notelist:1.
Hopefully that should see the first note have two, sequentially numbered, backrefs into the text for the first note (#hot).
Regarding your request for multiple footnote lists: these are an experimental feature at present and if you’d like to try them out you can download this experimental version of classTextile.php and give it a try. Basically you name each notelist and when you define a note, you say which list it belongs in. usage example…
Here is some[#list1:some] text. And a little more.
note#list1:some. Some is an English word.
notelist. list1
If you don’t fully qualify which lists a note is to go in, it will be placed in the ‘un-named’ default list which will be spat out wherever you choose to type notelist. without a following name. Hope that helps.
Regarding a new reference, there isn’t anything public yet but I have started something recently.
Uli
Seems you have similar expectations to Destry about the sequencing of the backrefs — please refer to the first part of this reply.
— Steve
Offline
Re: [textile] Textile 2.4 now available.
Ah… okay. I see what you mean. And that would explain the ordered list numerals too.
I will try out the experiment file. Thanks.
Offline
Re: [textile] Textile 2.4 now available.
After upgrade, Textpattern 4.5.0 braked a few of links, followed by a colon, usually at line ends, e.g. ...as "Thomas said":link:
I have experimented a little on the Txstyle sandbox and got some slightly different results:
"link":url: |
"link":url: as a plain non-linked text |
"link":http://url: |
link to http://url/ without : |
"link":http://domain.tld/url: |
link to http://domain.tld/url%3A |
On Sitemonks (Textile v2.0 and 2.2) all links are correct (ending with a non-linked colon), as was on my site On.lt until TxP 4.5.0. Is that a feature (perhaps for handling non-ascii characters in i18n URLs), and should I always select URLs in [square brackets] before a colon?
Last edited by Vienuolis (2012-08-31 20:32:31)
Offline
#24 2012-08-31 21:11:40
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile 2.4 now available.
Hi Vienuolis
Is that a feature (perhaps for handling non-ascii characters in i18n URLs), and should I always select URLs in [square brackets] before a colon?
Let me just see if I understand your report properly.
| Your input | Your expected output |
"link":url: |
<a href="url">link</a>: |
"link":http://domain.tld/url: |
<a href="http://domain.tld/url">link</a>: |
…?
And yes, this might be caused by the URL encoding I added recently.
— Steve
Offline
Re: [textile] Textile 2.4 now available.
Yes, thanks for the quick respond. Brackets are not a problem, and URL encoding is a huge advance, thank you for the great job, very excited!
Offline
Re: [textile] Textile 2.4 now available.
Hi, Steve.
I think that the new Textile has caused some problems in the links we use to download files.
We usually upload files with blank spaces, as “Prueba de texto.rtf”, and TXP converts them to “Prueba+de+texto.rtf”. Until now, there wasn’t any problem with this encoding, and tags made with Textile, Textpattern and HTML worked fine. As an example these three encodings gave the same result:
Textile: "Prueba con espacios.rtf":http://www.avempace.com/file_download/2751/Prueba+con+espacios.rtf
Textpattern: <txp:file_download_link id="2751">Prueba con espacios.rtf</txp:file_download_link>
HTML <a href="/file_download/2751/Prueba+con+espacios.rtf">Prueba con espacios.rtf</a>
However, in the present moment, the first one, the one made with Textile encoding, doesn’t work, because something (the new Textile perhaps?) converts the plus sign in the entity “%2B”, so that it produces a wrong URL which gives a “404 Not found” message:
http://www.avempace.com/file_download/2751/Prueba%2Bcon%2Bespacios.rtf
We have already wrote a lot of pages with Textile, and we desire it would work fine again as it did. Is there some bug in the new Textile that will be solved in the future? Or has Textile changed forever and we must reencode all our download links again?
Thanks in advance, Steve.
Last edited by pompilos (2012-10-25 17:52:58)
Offline
#27 2012-10-26 16:02:56
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile 2.4 now available.
Hello Jose,
I’ll take a look at this when I get home tonight. It may well be that it’s the new mutlilingual link support that’s doing this.
— Steve
Offline
#28 2012-10-27 10:20:56
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile 2.4 now available.
Hello Jose, apologies for the delay. Could you try this to see if it fixes your issue please…
- Rename your existing classTextile.php file to something like classTextile.php.old
- Download this version and save it as classTextile.php in your installation
Let me know if it works for you.
— Steve
Offline
Re: [textile] Textile 2.4 now available.
Bravo, Steve!
It works fine now, as you can check up at the bottom of this page, before the comments form. Thank you very much.
Offline
#30 2012-10-27 14:38:34
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [textile] Textile 2.4 now available.
Jose, thanks for letting me know. I’ve pushed that fix to the dev branch now and it will be in the next release of Textile.
— Steve
Offline