OK, back from the real-world work break and ready to get cracking with this.

These formatter plugins from martinswiki are great, but I'm seeing 2
different paradigms.

1) is to actually change config.formatters globally.

2) is to make a new formatter and then tag every tiddly in that format
(e.g. example formatter will interpret tiddlys with the tag
ExampleFormat with the plugin, otherwise default to tiddlywiki).

2 is less destructive to existing tiddlywikis; but it adds the extra
memory overhead of a new formatter (instead of just chopping up the
global one). The formatter tag method also looks like it is the
"supported" method for doing this sort of thing (getParsers in the
core will check for tags before setting the formatter). 2 also adds
the extra step of tagging every tiddler with the desired format.

Any thoughts on these 2 options?

On Mon, Sep 20, 2010 at 8:56 AM, PMario <[email protected]> wrote:
> In addition to FNDs links I'd suggest martinswiki [1]
> I think it would be a good starting point for a new formatter.
>
> insideTW is "the" source (for me) to see what happens inside TW :)
> Eric has nicely sniped out the main code, to get a good overview [2]
> about the repexp which is used.
>
> I think the new regexp for filtering will be the most challenging
> part. If you need info about this. see regular-expressions.info [3]. I
> found many other sites, but for me this one was the best, because it
> also talks about the different implementaions and what's different in
> JS.
>
> -mario
>
> [1] http://www.martinswiki.com/#ExampleFormatterPlugin
> [2] http://www.tiddlytools.com/insideTW/#config.formatters
> [3] http://www.regular-expressions.info/reference.html
>
> On Sep 20, 11:04 am, FND <[email protected]> wrote:
>> > I'd like for tiddlywiki to support my favorite markup language,
>> > txt2tags.  I've decided to do this via a tiddly plugin.
>>
>> Great!
>>
>> > is it possible for me to iterate the array and replace individual
>> > members in objects?  [...] I don't know if the objects are mutable
>>
>> They are indeed mutable - some samples can be found 
>> here:http://svn.tiddlywiki.org/Trunk/contributors/MartinBudden/formatters/http://svn.tiddlywiki.org/Trunk/contributors/FND/formatters/
>>
>> A simple example might be this 
>> one:http://svn.tiddlywiki.org/Trunk/contributors/FND/formatters/Paragraph...
>>
>> > I also have some general concerns about code execution and complexity
>>
>> I guess the best way to proceed is create a prototype and see how it
>> performs rather than trying to predict behavior.
>>
>> -- F.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWikiDev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/tiddlywikidev?hl=en.
>
>



-- 
David Young

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to