Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[textile] on apostrophes and ellipses
I have a simple question: where can i edit the “quotation marks” and ‘apostrophes’ and “ellipsis” in the textpattern folder so they’d appear raw like plaintext? thakyou!:D
Last edited by wordgasm (2020-02-22 12:28:22)
Offline
Offline
Re: [textile] on apostrophes and ellipses
just the three – the quotation marks, apostrophes, and ellipses. I tried to edit classtextile.php from the lib folder, followed my common sense and simply erased the lines that does the replacement to these three, but nothing happened. T_T
Offline
Re: [textile] on apostrophes and ellipses
After editing classTextile.php, you have to save the articles again (the conversion of text using textile in articles happens only upon saving the article).
Offline
Re: [textile] on apostrophes and ellipses
mmmmkay. so everything I just asked is pointless since I have about 400 articles. Thanks anyway. :)
Offline
Re: [textile] on apostrophes and ellipses
you might be able to find and replace all via mysql. A programmer is needed here to let us know if the link I’m posting is ok to use for what you need.
Last edited by colak (2006-10-20 14:46:32)
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] on apostrophes and ellipses
I’m sorry but I don’t understand a programmer’s language. ekk. but if you would provide some guidelines that would be great. :)
Offline
Re: [textile] on apostrophes and ellipses
As I said I am not a programmer so one is needed to confirm… The way I understand the script and how it could be used in txp is:
update [textpattern] set [body] = replace([body],'[“]','["]');
Note
do not execute the script before a plugin or a txp developer here confirms that it is ok
Last edited by colak (2006-10-23 16:22:03)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#9 2006-10-21 08:00:48
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [textile] on apostrophes and ellipses
Not quite right, but close.
UPDATE textpattern SET Body_html = REPLACE(Body_html, '“', '"');
UPDATE textpattern SET Body_html = REPLACE(Body_html, '”', '"');
UPDATE textpattern SET Body_html = REPLACE(Body_html, '…', '...');
Just open up phpMyAdmin and run those (“SQL”) on your Textpattern database.
Offline
#10 2006-12-01 01:31:30
- jgdobbins
- New Member
- Registered: 2006-03-01
- Posts: 5
Re: [textile] on apostrophes and ellipses
"N4m Design & Immersive Imaging":javascript:FullScreen('http://www.n4mdesign.com/');
is turning into this on the resulting browser page:
N4m Design & Immersive Imaging');
The link doesn’t work. The highlight is there but but does not launch a new window and the corresponding page.
My service provider tells me it is not their doing (wrong character set) but something happening in the TextPattern script as it gets interpreted into html and writes the page. The offending character is apparently the apostrophe.
How can I fix this? Thanks,
John Dobbins
www.n4mdesign.com
(Edit: updated to display code properly. -Mary)
Last edited by Mary (2006-12-01 05:08:58)
Offline
#11 2006-12-01 05:11:01
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: [textile] on apostrophes and ellipses
I’m not sure what your problem has to do with what’s described in this thread. But, Textile expects a url, not a JavaScript protocol command; you’ll have to do your link in HTML yourself.
But, I would greatly advise that you don’t try opening a popup window in this manner. Better to do something like:
<a href="http://www.n4mdesign.com/" onclick="FullScreen(this.href); return false;">N4m Design & Immersive Imaging</a>
Offline
#12 2006-12-02 01:58:08
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline