Thanks everyone for explaining. The fog is clearing.

One case I have where it is immediately useful - when CamelCase is turned 
on and I don't want CamelCase linking to apply. This can cause mayhem when 
working with variables that contain text in CamelCase. I only realised this 
when, for testing, I moved a perfectly working macro (where CamelCase was 
off) into tiddlywiki.com (where CamelCase is on). I found it extremely 
difficult to fix!

Abbreviated example: In tiddlywiki.com try the below *with* and *without* 
the \rules line.

\define makeLink(site link) 
\rules except wikilink
<a href="$link$" target="_blank">$site$</a>
\end

<<makeLink TiddlyWiki https://tiddlywiki.com/>>

With *\rules except wikilink* - the link created is correct: TiddlyWiki 
<https://tiddlywiki.com/#%24%3A%2Fcore%2Fmodules%2Fparsers%2Fwikiparser%2Frules%2Frules.js>
 
: https://tiddlywiki.com/
Without \rules - the link is wrong: TiddlyWiki 
<https://tiddlywiki.com/#TiddlyWiki> : https://tiddlywiki.com/#TiddlyWiki

Cheers


On Thursday, January 10, 2019 at 6:01:25 PM UTC+7, @TiddlyTweeter wrote:
>
> The "pragma" can be switched off or switched on selectively as others have 
> indicated. This can be done inside macros or applied to a single tiddler on 
> its own via \rules.
>
> TonyM also pointed out that you can also globally selectively toggle many 
> of the pragma in settings.
>
> I agree it can be helpful to understand what is going on with them. A 
> major purpose is many (most?) do the basic parsing of raw content of 
> Tiddlers into rendered HTML.
>
> They have been of much interest to me because I do a lot of work using TW 
> to process and auto-convert non-standard text formats. 
>
> It is in fact possible to access the TW process prior to the standard 
> pragma. This can give you amazing flexibility in combining ad-hoc text 
> changes for "pre-conversion" of non-standard text formats that then are 
> further processed using the standard parsers.
>
> I mention this because its given me quite a lot understanding of pragma in 
> TW. Note that Content Types can define which pragma to run and offer ways 
> you can make new pragma. Its possible to make new Content Types.
>
> The best resources I know about this are from BJ's work ...
>
> Flexitype ... http://bjtools.tiddlyspot.com/#Flexitype%20Demos
>
> Flexity ... http://flexibility.tiddlyspot.com/
>
> Here are discussions that may shed a bit of light on this largely 
> undocumented topic ...
>
> https://groups.google.com/forum/#!msg/tiddlywiki/bl_GiI63X84/_naCQEG1AAAJ
>
>
> https://groups.google.com/forum/#!searchin/tiddlywiki/pragma$20jeremy%7Csort:date/tiddlywiki/A7vdxcRb8lQ/yycBBydIEwAJ
>
> Best wishes
> Josiah
>
> S. S. wrote:
>>
>> On tiddywiki.com I read the tiddler: Pragma 
>> <https://tiddlywiki.com/#Pragma> but I didn't really understand what 
>> \rules could do.
>> In the tiddler: Using Stylesheets 
>> <https://tiddlywiki.com/#Using%20Stylesheets> it has this:
>> \rules only filteredtranscludeinline transcludeinline macrodef 
>> macrocallinline html
>>
>> Is there a place that explains:
>> 1) What are *all* the different \rules.
>> 2) How are they used (what do they do)?
>>
>> If not, it would be useful to know.
>>
>> Thanks!
>>
>>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7a33c93d-ff0a-4bed-9699-c31d4dfb4b33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to