Discussion:
[tw] Set or Wikify - how get best of both?
(too old to reply)
Mat
2017-08-06 23:27:19 UTC
Permalink
Raw Message
I'm attempting to make dixtractors <http://dictionary.tiddlyspot.com/>
(why- "dictionary extractors", of course) to make tiddler dictionaries more
useful, and possibly even to allow them as a data source for graphs
<http://graphs.tiddlyspot.com>.

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!

<:-)
--
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 ***@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/af8142e7-d886-43d7-8710-f803d7d68c5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Mark S.' via TiddlyWiki
2017-08-07 03:11:28 UTC
Permalink
Raw Message
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
Post by Mat
I'm attempting to make dixtractors <http://dictionary.tiddlyspot.com/>
(why- "dictionary extractors", of course) to make tiddler dictionaries more
useful, and possibly even to allow them as a data source for graphs
<http://graphs.tiddlyspot.com>.
<$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>
This is a link and a styled word!
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@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/8a7837a3-338b-4202-8ae5-a30d62a0fcef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...