Hi Mat, > Just to make sure I get it right, this is only for cases using URI, right? >
Try to create a permalink for a tiddler containing spaces, or even a permaview for multiple tiddlers, including those containing spaces. You'll see that you cannot just create the proper link solely with a given title, but that it needs to be uri-encoded, so TiddlyWiki knows how to read out the contents of the address bar. In your examples given there to decode... I can't quite tell what is > supposedly encoded? > The decoding examples are pretty straight forward: First I use the hash filter to encode a title, and right after that use it again with the decode suffix to decode them back. So, in a way I am proving that, in the end, you get back what you started out with. Makes sense? I could have just taken any cryptic url, but then others may not have understood what that url is and why the hash filter does its decoding the way it does it. By showing that decoding is simply doing the reverse of encoding, I figured, it would be pretty clear what's going on. > Do you think you could refer to the external tiddlers example > <http://www.google.com/url?q=http%3A%2F%2Ftiddlywiki.com%2Fprerelease%2F%23Alice%2520in%2520Wonderland&sa=D&sntz=1&usg=AFQjCNEAijh6zm23dLkeVYHxm4uYGY-DqA> > > from tiddlywiki.com/prerelease? > What do you mean by that? ...or maybe the different domain prevents this. Plus it no worky worky in > Chrome. > To be able to create a properly encoded link to any external TiddlyWiki is precisely what the *hash* filter is intended for. Simply give it the un-encoded title either as an input title or via the operand and it will create the proper uri-encoded link for you... but you will have to add the proper domain yourself using the *addprefix* operator. > ...but hypothetically; the canonical_uri there is > > ./text/Alice%2520in%2520Wonderland.tid > > How would this be decoded? (Or am I just totally misunderstanding something?) > > The problem with these links is that they are DOUBLE uri encoded, for reasons I have not quite grasped yet ...so you actually need to decode them twice to have them fully decoded: {{{ [[./text/Alice%2520in%2520Wonderland.tid]hash:decode[]hash:decode[]] }}} Again, thanks Tobias! You're creating amazing things - and to say you're generously sharing is a definite understatement! > > Thanks, Mat... and ...you're welcome. :-) Best wishes, Tobias. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/bd33a983-1afb-487e-a831-87639520c261%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.