Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-10-03 07:25:59

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

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

#15 2006-10-04 13:23:55

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

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

#16 2006-10-04 15:54:58

akokskis
Plugin Author
From: Baltimore-ish, USofA
Registered: 2004-11-28
Posts: 230
Website

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.


My Photoblog, and my personal site. Got nav? ako_nav.
Thanks for taking the time to look…

— vc3 —

Offline

#17 2006-10-04 18:38:29

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: r1861: new quote handling

Okay! Thanks for the explanation :)

Offline

Board footer

Powered by FluxBB