On Thu, 10 Jun 2010, Eric Shulman wrote:

Note that, because attachment tiddlers use ***TW-native section
syntax***, you can easily edit it as needed by employing the standard
TW editor, without needing any custom fields at all.  It also makes it
easy to embed the content of individual sections into other tiddlers
by using TW standard <<tiddler TiddlerName##sectionname>> syntax.

While this is good for TiddlyWiki, especially those which are file:///
based, it is less good for server-side storage systems that store
individual tiddlers (rather than whole wikis). TiddlyWeb being the
example that I know about.

In TiddlyWeb a tiddler is stored a combination of headers (attributes
and fields) and a body. That body is usually wikitext, but if the
'type' attribute is set, you can put pretty much anything in the body.
How it is stored depends on the storage system, the default text store
encodes MIME types that start with something other that 'text/' in
base64 encoded form.

When such a tiddler is retrieved from the server it is packaged up
according to its mime-type and the mime-type of the Accept header
provided in the HTTP request. If you ask for JSON you get a JSON
dictionary with the text attribute as the base64 encoded binary
content. This can then be injected into a TiddlyWiki as required.

What I would prefer to see for binary tiddlers is:

* tiddler.text is either a data uri containing encoded binary stuff or
  remote URI which has the stuff
* tiddler.fields[something] contains metadata about the binary stuff
  including amongst other thing an indicator that this is a binary tiddler
* Core or CoreTweaked support for binary tiddler awareness in
  TiddlyWiki, such that refresh or edit of a binary tiddler enters a
  binary tiddler code path.

-=-=-
The above is not necessary, though, if a structured binary tiddler
with sections is preferred. For TiddlyWeb, if the format is specced
out, we could include support for it in the tiddlywiki serializaiton
in TiddlyWebWiki.

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

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