On Fri, 13 Jul 2012, Jeremy Ruston wrote:

The idea is that a vocabulary would specify the wikitext rules and
macros to be applied when interpreting a particular block of text. The
content type parameter gives the URL of a tiddler that lists the
elements of the vocabulary, with escape sequences like "(tw5)" as
shortcuts for specifying standard URLs for the main system
vocabularies.

I'm not keen on the use of vocabulary to modify the same mime type for
two different reasons:

1: If the syntaxes indicated by vocabulary are actually different -- that
is, look different -- then a different type makes sense: they're
different, be clear about it.

...

Is this a reasonable use of content type parameters? Is TiddlyWeb set
up to deal with parameterised content types?

2: It would make quite a few things in TiddlyWeb much more complex.
TiddlyWeb chooses serializers[1] and renderers[2] based on mime type _not_
on parameters to those mime types (in fact it chops off stuff after
the ";" as irrelevant and uses the mime type as a key in a dict that
maps mime type to function). The assumption is that something which is
text/x-tiddlywiki (for example) will be rendereded by the renderer for
x-tiddlywiki. So it would treat "text/x-tiddlywiki; vocabulary=(tw2)"
and "text/x-tiddlywiki; vocabulary=(tw5)" the same and render and
serialize them with the same tool.

To me that makes sense, because of "1:" above. If they are the same,
they should use the same renderer. If they need a different renderer
they must not be the same..


Also is vocabulary of your own design or do you have a reference to
its prior use? It looks a lot like:
http://buzzword.org.uk/2009/draft-inkster-profile-parameter-00.html

[1] serializer turns a representation into a tiddler or collection of
tiddlers
[2] renderer takes tiddler text and makes it into HTML if it can
become HTML

--
Chris Dent                                   http://burningchrome.com/
                                [...]

--
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