Hi Tobias

> Hi Jeremy, great job on the screencast [1] for TiddlyWiki5!


Thank you, much appreciated. More to come, hopefully. I'm keen to do one on
the clientserver edition soon.


> Someone recently asked in the context of LinkifyPlugin [1] whether
> WikiWords could be optional or even turned off by default. I tend to agree,
> that it is good to have explicit control over links without being required
> to escape using a tilde, e.g. ~WikiWord.
>
> Is that under consideration for TW5?
>

Firstly, you can turn on and off individual parse rules with a special
pragma definition at the top of a tiddler. Doing so only takes effect on
the tiddler in question, and doesn't affect any transcluded tiddlers. The
syntax to exclude a list of rules is:

\rules except ruleone ruletwo rulethree

Or, to exclude all rules but the specified ones:

\rules only ruleone ruletwo rulethree

The rule you'd need to disable wiki links is "prettylink".

There's an alternative way to achieve the same thing, which is to use
macros. In TW5 macros are user defined text expansions at the top of a
tiddler:

\define myMacro(param:defaultvalue)
definition text, including $param$ markers
\end

And then used in the familar way: <<myMacro "Please try again">>

Macro definitions apply to the tiddler that they appear in, and to any
other transcluded tiddlers.

Furthermore, there are some special system macros that the <$link> widget
looks for that then modify it's behaviour. In particular, if the macro
"tw-wikilinks" expands to the string "no" then no wikilinks will be
rendered.

This can be done on an individual tiddler basis by inserting this line at
the top of the tiddler:

\define tw-wikilinks() no


> For backwards compatibility that would mean when WikiWords are
> deactivated, to still remove any tilde from what would match a ~WikiWord,
> in order to only display the text only as WikiWord. From a first impression
> that is a rather simple modification to the link formatter.
>

The second approach does this, because it leaves the prettylinks parse rule
intact.

Best wishes

Jeremy


>
> Cheers, Tobias.
>
> [1]
> https://groups.google.com/forum/?fromgroups=#!topic/tiddlywiki/wj0DwKB1adM
> [2] http://linkify.tiddlyspot.com
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to