On Tue, 29 Nov 2011 20:18:02 -0800 (PST)
HansBKK <[email protected]> wrote:
> Please let me know if there's a way to accomplish this that I haven't
> found - I don't like the fact that the backlinks' tags, bookmarks etc
> are "hidden in the meta", I want to put these relationships if not in
> the content itself (not sentinels, I love @shadow) but perhaps in a
> delimited header/footer? Or at least in **my** meta-data text files I
> mentioned kept separate but somehow tied to the content files -
> parallel filesystem?
Hmm, "the meta" is basically each node's so called "unknown
attributes", aka uA aka p.v.u, a python dict of anything.
I've been running in to wanting to search the content of that dict,
which is used for backlinks, not so much for bookmarks, but for a bunch
of other things.
One way to expose it as regular text would be to add a special child
node for every node which has the content of v.u in JSON. So a special
child node for a node with a backlink might look like:
{'_bklnk': {'links': [('S', 'tbrown.20111123112137.16198')]}}
Hmm, not that helpful. A better example might be getting at the way
XML attributes are stored by xml2leo, the special
child node for a node representing an XML element with attributes might
look like:
{u'_XML': {'_edit': {'unique': 'false', 'id': '_fld_fi_zone_photo_comments',
'allow_null': 'true', 'primary_key': 'false'}}}
making it somewhat easier to find an XML element by its @id or find
elements with 'primary_key': 'false'.
But not the simplest thing, and very application specific. I'm
thinking a wrapper for python snippets which process v.u might be more
use for those cases.
Can you give more specific examples of stuff hidden in the meta which
you don't want hidden in the meta?
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" 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/leo-editor?hl=en.