Applying the BJ's Flexitype-Plugin to custom view Template fields.

57 views
Skip to first unread message

Jan

unread,
Jul 9, 2019, 2:44:12 PM7/9/19
to TiddlyWiki
Hi Everyone, hi BJ in particular.
The Flexitype Plugin has helped me a lot so far, in creating an editor
for stage/screenplays.
Some time ago I had the idea to use it in a different way.
Would it be possible to apply it to a field called Dialogue which is
transcluded into the ViewMode if it exists.
It should perform the same replacements as in the flexitype tiddlers.
Would this be possibel?

Yours Jan

BJ

unread,
Jul 11, 2019, 6:34:37 AM7/11/19
to TiddlyWiki
maybe!

It has been some time since I played with this, but you can use flexitypes 'inline' with the sytax:

$$$text/vnd.twbase;flexibility=Myflexrule


{{tid!!Dialogue}}


$$$

have fun!
BJ

Jan

unread,
Jul 11, 2019, 8:12:29 PM7/11/19
to tiddl...@googlegroups.com
Hi BJ
Your Plugin is ingenious ... but it is not easy for me to grasp how I can achieve what I want.

I would like to replace all "/n[[" by "/n:[[" , and single "/n"  by double "/n/n".

Where can I put the rules and how do I apply them with a viewtemplate?
Is it a Problem for RegEx to replace square brackets [[ ?

I tried to implement your spell here http://szen.io/dia/#Draft%20of%20'BJ-Inline-test':%5B%5BDraft%20of%20'BJ-Inline-test'%5D%5D%20%5B%5BDraft%20of%20'Dialogtest'%5D%5D but so far without success.

ciao! Jan
--
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/028fca34-9dc9-4b69-b481-5afb08ad4eec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages