Managing synonyms

20 views
Skip to first unread message

kilucas

unread,
Oct 12, 2008, 8:48:05 AM10/12/08
to TiddlyWiki
I'm trying to work out my best strategy for dealing with synonyms. For
example I may choose to spell a compser's name as Rachmaninov but
others may choose to spell it as Rachmaninoff. As long as I include
both words in a Tiddler, the search will find the right tiddler. But
if I want to use hyperlinks from outside my TW into my TW then the
external link doesn't know to use Rachmaninov if I've favoured that as
my main tiddler name. In fact I might have named the Tiddler as Seregi
Rachmaninov just to make life even more awkward.

I could presumably create separate tiddlers with one for each name.
And aRachmaninoff tiddler could contain a link to the Rachmaninov
tiddler. I think Wikipedia effectively does the same but would go
beyond this by making the Rachmaninoff tiddler auto-redirect to the
Rachmaninov tiddler. But I'm not sure what I could do in TW.

So does anyone else face similar challenges with synonyms and if so
what startegies do you use to make your TW use either of them
flexibly?

Thanks

Kevin

Eric Shulman

unread,
Oct 12, 2008, 8:59:38 AM10/12/08
to TiddlyWiki
> I think Wikipedia effectively does the same but would go
> beyond this by making the Rachmaninoff tiddler auto-redirect to the
> Rachmaninov tiddler. But I'm not sure what I could do in TW.

I faced a similar problem when retiring an obsolete plugin on
TiddlyTools. When the core changed the theme switching architecture,
the [[SelectStylesheetPlugin]] was replaced by the completely re-
written [[SwitchThemePlugin]]. However, there's still lots of links
out on the web to the old tiddler, and I didn't want people to end up
getting a 'tiddler not found' error when following those links.

To address this, I left the old SelectStylesheetPlugin tiddler in
place, but changed the content of that tiddler to just present a short
message automatically redirect to the new tiddler after 10 seconds,
using this inline script:
http://www.TiddlyTools.com/#TimedTiddlerTour
like this:
---------------
{{small{You will be automatically redirected to [[SwitchThemePlugin]]
in <<tiddler TimedTiddlerTour with: SwitchThemePlugin 10 close>>
seconds}}}
---------------

Note: using a *timed* redirect is important... otherwise, as soon as
you load the tiddler, it would immediately send you to a different
tiddler, making it virtually impossible to edit the tiddler containing
the redirect.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

wolfgang

unread,
Oct 12, 2008, 9:48:06 AM10/12/08
to TiddlyWiki
Hi Kevin and Eric,

> So does anyone else face similar challenges with synonyms and if so
> what startegies do you use to make your TW use either of them
> flexibly?

For plural cases PluralAliasPlugin would already do:

http://jackparke.googlepages.com/jtw.html#PluralAliasPlugin


But in the case of synonyms I thinkTiddlerAliasPlugin is really the
plugin of choice:

http://tiddlywiki.abego-software.de/Beta.html#TiddlerAliasPlugin

Regards,

W.

kilucas

unread,
Oct 12, 2008, 10:23:22 AM10/12/08
to TiddlyWiki
It looks as if I'm spoilt for choice - I'll check both of these out.
many thanks for the ideas.

Kevin

kilucas

unread,
Oct 12, 2008, 11:37:34 AM10/12/08
to TiddlyWiki
Eric

If the target tiddler name contains spaces, how do I refer to it in
the "with" part of the statement please? I tried enclosing the tiddler
name in double quotes and in double square brackets but neither worked
and in fact both corrupted the display of the countdown seconds.

Thanks

Kevin

On Oct 12, 2:48 pm, wolfgang <wolfgangl...@gmail.com> wrote:

Eric Shulman

unread,
Oct 12, 2008, 2:45:43 PM10/12/08
to TiddlyWiki
> If the target tiddler name contains spaces, how do I refer to it in
> the "with" part of the statement please? I tried enclosing the tiddler
> name in double quotes and in double square brackets but neither worked
> and in fact both corrupted the display of the countdown seconds.

hmm... double-square brackets is the correct syntax....

I did a quick test in any empty document containing just
InlineJavascriptPlugin, the TimedTiddlerTour script, and two test
tiddlers: one to invoke the script, and the other to be opened (with a
title containing spaces).

The syntax I used to invoke the script is:
<<tiddler TimedTiddlerTour with: [[Title With Spaces]] 10 close>>
and seems to working just fine for me (i.e., it succeeded in opening
[[Title With Spaces]]).

kilucas

unread,
Oct 12, 2008, 3:30:51 PM10/12/08
to TiddlyWiki
Eric

I tried the double square brackets again as in the text pasted below:

"{{small{You will be automatically redirected to [[Rachmaninov]] in
<<tiddler TimedTiddlerTour with: [[Rachmaninov Test]] 10 close>>
seconds}}}"

The Tiddler "Rachmaninov Test" already exsists and the above text
appears in a tidller called "Rachmaninoff Test".

Even after a TW reload the tiddler however was displayed immediately
(no0t merely after 10 seconds) as pasted below:

"You will be automatically redirected to Rachmaninov in seconds"

The Rachmaninov word is formatted like a non-existent tiddler -
italicised and coloured differently from the rest of the text in the
sentence - and if I click on it I'm offered the option to edit a new
tiddler.

Does this provide any useful insights into what's going wrong perhaps?

Thanks

Kevin

kilucas

unread,
Oct 12, 2008, 4:18:49 PM10/12/08
to TiddlyWiki
I now realise that my comments on the displayed Rachmaninov word are
irrelevant as that's just part of my text and is unaffected by the
TimedTiddlerTour (And I erroneously omitted the second word of the
Tiddler name).

But as you can see, there's no counter.

I tried this again with double square brackets round the multi-word
tiddler within TimedTiddletTour and still had no counter. Neither did
the tiddler redirect.

When I removed the second word from inside the double square brackets
the timer reappeared.

I got the copy of the Plugin via the Import facility at www.tiddlytools.com
earlier today.

Does any of this help?

Thanks

Kevin
> > TiddlyTools / ELS Design Studios- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages