wikiword tied to plugin namespace?

0 views
Skip to first unread message

Josef

unread,
Jul 2, 2008, 11:13:18 AM7/2/08
to TiddlyWikiDev
Just had a question/idea while creating a new tw page and installing
the great nested slider plugin.

What if I install a plugin that uses the wiki markup beginning with +++
+ to do something, but that markup is already "taken" by another
plugin I already installed or may install in future?

In other words how to make markup extensible? Or is this not a
problem?

Anyway, my solution is to allow the switching of markup namespace.
Just before I use the '+++' markup and its possible end markup, I
indicate which plugin namespace it should use, and allow nesting of
namespaces. The default namespace is TW's.

--- Josef




Daniel Baird

unread,
Jul 2, 2008, 4:33:33 PM7/2/08
to Tiddly...@googlegroups.com
At the moment there's no way to switch contexts like that.

A markup clash like that has only come up once that I'm aware of
(relating to some slider syntax, in fact), and the plugin authors
sorted it out so that there was no clash. I guess any future problems
will be resolved the same way.

Cheers
;Daniel

--
Daniel Baird
/to be or not to be/ => /(2b|[^2]b)/ => /(2|[^2])b/ => /.b/
...optimise your regexes, people!

Josef

unread,
Jul 2, 2008, 5:15:19 PM7/2/08
to TiddlyWikiDev
That sounds reasonable. I had in mind the concept of namespaces as
found in the XML world, such as specified here: http://www.w3.org/TR/xml-names11/
But, why complicate things....

Thanks.
Reply all
Reply to author
Forward
0 new messages