Set or Wikify - how get best of both?

69 views
Skip to first unread message

Mat

unread,
Aug 6, 2017, 7:27:19 PM8/6/17
to TiddlyWiki
I'm attempting to make dixtractors (why- "dictionary extractors", of course) to make tiddler dictionaries more useful, and possibly even to allow them as a data source for graphs.

My issue can be formulated as:

<$set    name="sentence" value="""Prefix to remove: This is [[a link]] and @@color:red;styled@@ word!""">
<$set    name="preset"   value="""Prefix to remove:""">
<$wikify name="prewik"    text="""Prefix to remove:""">
<
<foo>>
</$wikify>
</$set>
</$set>


How do I define "foo" to get the following result:

This is a link and a styled word!

Thanks!

<:-)


Mark S.

unread,
Aug 6, 2017, 11:11:28 PM8/6/17
to TiddlyWiki
This might not be what you wanted, but it works (at least with your sample set)

\define foo()
<$list filter="[<sentence>] +[removeprefix<preset>]" variable="stuff">
<<stuff>>
</$list>
\end

Mark
Reply all
Reply to author
Forward
0 new messages