I believe you can use tiddlywiki tags, tiddlers and fields to represent any relationship in the universe, yes I am that bold to make that claim, and I am happy for someone to present cases they think I cant and prove, and demonstrate they are incorrect. However I think you may be trying to use the TOC macro incorrectly, and you need to make your own listing method.
and if you test for ruby AND string you will get your ruby/string
Now if your use of "string" means the one on ruby is totally unrelated to the string you tag on python then divide it into two tags. In your case this does not seem required.
The thing is the TOC macros are helpful to have as they do a recursive process that drills down a hierarchy an indefinite number of levels. I believe every one should learn how to code something that is recursive and what it means, just as they should understand sequence, iteration and selection (yes I mean everyone). But why try and make a TOC process do something it is not customised for?, the ones in tiddlywiki are to list the tiddlers tagging a tiddlers children grand children all the way down, you are not asking for that here, you are asking for some logic within that.
Until I understand better lets look at a more complex test I have designed previously in TWC but see no issue doing it in TW5, it demonstrates how sophisticated you can get.
- It is possible to look at all tags on a given tiddler, and for each of these tags test if they are in turn tagged by another tiddler
- For Example lets say my 1st tiddler is tagged
Working Projectname subtask
- and for arguments sake we also have a tiddler called status which tags the tiddlers
new working hold and finished - It is possible to test each of the tiddlers current tags "Working Projectname subtask" to see if any of them are tagged status (as working is)
Personally I have started using custom fields, their existence in a tiddler and when necessary their value in a tiddler for my organisational methods, leaving tags free for adhoc relationships and the default TOC use.
You can also test if a tiddler is NOT tagged something.
Feel free to ask more questions, ideally keeping them simple, a step at a time. or provide a working example.
Regards
Tony