Unwanted Behavior:"\rules except" in transclusions

79 views
Skip to first unread message

_f

unread,
Jan 2, 2018, 2:16:47 PM1/2/18
to TiddlyWiki
Hello

I might have found an undesired behaviour:


\rules except dash

is supposed to disable formating of the double dash "--" to a hyphen / en-dash "–" and does so in the normal wiki text.
However if I transluce the field "foo" with the value"--bar" using "{{!!foo}}" the wiki displays "–bar".

Same goes for \rules except codeinline and propably the other except rules.

I know there are workarounds and I think i kind of get why it behaves in this way but think this behavior is unwanted. If i explicitly state i want double dashes it should not matter if they are in the text or in a transluced field.

If i transluce the field of tiddler B in Tiddler A that might be a more difficult situation as it is not clear, whether a double-dash-field in b should be displayed according to the rules of B or A. My suggestion would be that the rules of tiddler B are applied as it is with the Text. But I honestly have no clue about the inner workings and general philosophy.

If this is a known thing or even a feature I am sorry.

regards
Fuchs

Jeremy Ruston

unread,
Jan 2, 2018, 2:46:38 PM1/2/18
to tiddl...@googlegroups.com
Hi Fuchs

The scope of the \rules pragma is indeed just the tiddler in which it appears, and it doesn’t cascade to any transcluded tiddlers. You can globally disable the double dash parsing rule by creating a tiddler called "$:/config/WikiParserRules/Inline/dash” and setting its text to “disable”.

If you wish to display the content of a field without any wikitext formatting at all then you can use the view widget: <$view field="foo”/>

Best wishes

Jeremy.

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/2ddea25d-d537-4bbf-90c2-21f7617be4dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

_f

unread,
Jan 3, 2018, 12:29:13 PM1/3/18
to TiddlyWiki
Hello Jeremy

The View widget seems to bee a good alternative!  Thank you very much for your response.

Fuchs
Reply all
Reply to author
Forward
0 new messages