Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: r1861: new quote handling
Okay, that’s fine. So I’m looking forward to version 4.0.5 or 4.1 :)
I’ve got a question: For now, I’m going to update one of my plugins, nhn_typotuner, during the next months. It can be used to change English to German typography. Is there a way to skip the glyphs function? In other words: I’d like Textile to convert everything but the glyphs.
Offline
#14 2006-10-03 23:53:21
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: r1861: new quote handling
The clean approach would be to extend the Textile class, and override its methods (either glyphs() or TextileThis()) to work the way you want.
Alex
Offline
Re: r1861: new quote handling
Is “extending” similar to “hacking” in this case? Or is there a possibility to do it with a plugin?
Offline
Re: r1861: new quote handling
You can actually make a new class that would add on to the functions already available in the Textile class.
Something like
<code>class nhn_typotuner extends Textile {
// add your extra functions in here, all the while still being able to use the textile functions within this class
}</code>
And yes, that would be quite do-able within a plugin.
Offline
Re: r1861: new quote handling
Okay! Thanks for the explanation :)
Offline