Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[textile] Textile 2 with French specifics
If anyone is interested, you’ll find here both an updated classTextile.php and a diff .patch file (from the latest Textile lib available at this time, rev2145) for French typographic rules (mostly using a lot of non-breaking spaces, and the «» quotes).
I’ve also converted most HTML entities to the “real” utf-8 corresponding character.
It might help if you are looking to do something similar for your own language (there’s a little explanation in English in the file).
Offline
#2 2007-02-23 01:46:01
- sbo
- Member
- Registered: 2006-06-06
- Posts: 47
Re: [textile] Textile 2 with French specifics
Is this patch still working for french TXP websites ?
If yes, could you be more specific on how to setit up ?
When i try your classTextile.php, TXP complains with an error message in diagnostics.
Thanks.
Stéphane.
Offline
Re: [textile] Textile 2 with French specifics
Yup it work, I have it live a several websites.
What’s your current version of Textpattern?
What are the errors?
Offline
#4 2007-02-23 17:29:59
- sbo
- Member
- Registered: 2006-06-06
- Posts: 47
Re: [textile] Textile 2 with French specifics
Textpattern · 4.0.4
In ‘/www/mywebsite/textpattern/lib/’
mv classTextile.php classTextile.php.OLD
Replaced by your ‘classTextile.php’ file (révision 2145 – Français)
- Diagnostics -
Vérifications:
————————————
Vous utilisez des fichiers en développement sur un serveur public: /lib/classTextile.php
————————————
I see no difference on the screen :
http://moncarnetdenotes.com (if you want to check online)
I am not sure i did right with the patch file; i just ignored it.
Thank you,
Stéphane.
Last edited by sbo (2007-02-23 17:30:52)
Stéphane.
Offline
Re: [textile] Textile 2 with French specifics
The diagnostic warning is ok, that’s not an error.
If you want the new Textile to apply to an article, you’ll need to re-save that article (Textpattern doesn’t apply Textile on the fly, but at the Saving stage, to cache and store the results).
Offline
#6 2007-02-23 17:37:49
- sbo
- Member
- Registered: 2006-06-06
- Posts: 47
Re: [textile] Textile 2 with French specifics
Great!
This is a crucial patch for french websites.
Thank you for the great job,
Stéphane.
Stéphane.
Offline
#7 2007-02-23 17:42:09
- sbo
- Member
- Registered: 2006-06-06
- Posts: 47
Re: [textile] Textile 2 with French specifics
I have tried on one article; result is perfect; but everytime i do a ‘save’, i get theese error messages on the top of the screen :
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714
What did i miss ?
Last edited by sbo (2007-02-23 17:42:38)
Stéphane.
Offline
Re: [textile] Textile 2 with French specifics
Strange, I haven’t change anything in that line. It might be something in the basic Textile file (before the changes).
You want want to try update it to the last version of Textile (use Subversion to keep the French patch applied, or apply the patch to a clean last version), or check the forums to see if somone has the same issue.
Myself, I don’t (on 4 or 5 websites).
Offline
#9 2007-02-23 18:47:52
- sbo
- Member
- Registered: 2006-06-06
- Posts: 47
Re: [textile] Textile 2 with French specifics
Well; for now i see no way out … I will investigate tonight.
Another bad point :
When i write in textile l’électron or jusqu’à, i get : l‘électron and jusqu‘à
Weird isn’t it ? This happens only before an accented letter (l’ordinateur would be OK).
Do you know how to solve this issue ?
Thank you.
I will let you know if i find a solution for the error messages i get.
Stéphane.
Stéphane.
Offline
#10 2007-02-25 23:19:20
- sbo
- Member
- Registered: 2006-06-06
- Posts: 47
Re: [textile] Textile 2 with French specifics
I have tried again tonight to re-publish articles on my blog using your ‘classTextile.php’.
It took my just a few seconds to realize that every time “it meets” a <i> (ex. [textile]: the important thing to notice is … or The important thing to notice is…), it returns this error : “Notice: Undefined offset: 7 in /mywebsite/textpattern/lib/classTextile.php on line 714”.
If ou have 10 <i>, you get this error 10 times …
Hope this will help for debugging.
Stéphane.
Stéphane.
Offline
Re: [textile] Textile 2 with French specifics
It’s possible yup. But again, as far as I know, not related to the patch.
Did you tried with a no-patched version of the same svn revision ?
Offline
Re: [textile] Textile 2 with French specifics
Is somebody here have this patch ?
The link is no longer working.
Thanks in advance !
Offline