Hey Tobias!

LinkifyPlugin (1) enables RegExp, however, sometimes you may wish to use 
the regexp characters not in a regexp context. The example I had was when a 
tiddler alias (or source tiddler title) contained parentheses and it 
immediately processed the stuff between them as regexp even though they 
were ordinary parentheses. I had to put the entire alias between 
parentheses and then escape the inner parentheses. However, I'm afraid this 
could potentially be messy if the alias contained  ^, " or * special 
characters in non-alias context (ie as LinkifyPlugin special characters). I 
did some testing and discovered that it's also problematic, when the 
"source" tiddler title contained an asterisk. Putting the entire source 
string into parentheses and escaping the asterisk didn't work. 
Interestingly though, if the source tiddler title contained quotation marks 
and the alias contained the source tiddler title with the same quotation 
marks, linkifying worked, even if you changed the case of the link, but if 
you added another pair of quotation marks, linkifying broke. There was also 
strange behavior with matching case in aliases (your "zoOM" example).

Example in LinkifyConfig:
test "tiddler" [test]|test "tiddler" [test] test|test "tiddler" [test] 
"test"

Example results:
test "tiddler" [test] test - works
test "tiddler" [test] "test" - doesn't work
test "Tiddler" [test] test - works
test "tiddler" [test] Test - works

Examples in LinkifyConfig:
(test "tiddler\*" [test]1)|test "tiddler" [test] test1
test "tiddler*" [test]2|test "tiddler" [test] test2

Example results:
test "tiddler*" [test] test1 - doesn't work
test "tiddler*" [test] test2 - doesn't work

Example in LinkifyConfig:
test "tiddler" [test] (test)|test "tiddler" [test] (test) test

Example results:
test "tiddler" [test] (test) test - points to a non-existing tiddler

Example in LinkifyConfig:
testily|"TEsty"|"TEsTY"|"tesTY"

Example results:
TEsty - points to a non-existing tiddler
TEsTY - points to a non-existing tiddler
tesTY - works

Hope that helps with troubleshooting.

I have a suggestion for announcing a regexp string: instead of just (...), 
maybe use ((...)) or something similar. That way, whatever is inside the 
regexp markers won't interfere with LinkifyPlugin special characters.
This, of course, still leaves the issue of asterisk in the tiddler title.

(1) http://linkify.tiddlyspot.com/

w

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to