[tw5] Re: [tw] Re: Mermaid plugin?

2021-12-21 Thread Jason Houle
Although this thread is quite old, this is a problem that vexed me for 
quite some time so I want to offer an update this thread for anyone coming 
across this later.

There are now two good options for using Mermaid.JS within TW5:

"Complete" Mermaid.js library installation into TW5: This is the full 
library, but has been updated as of October 2021 and published with a demo 
wiki to make installation a breeze. It is however a full library 
installation (1.2MB).

Demo wiki: https://efurlanm.github.io/mermaid-tw5

Lightweight TiddlyWiki5 plugin that wraps Mermaid Live Editor: I just 
published this as a very lightweight (18kb) "wrapper" of the Mermaid Live 
service which handles all the rendering. All the power of Mermaid with 
streamlined code management and virtually no TW bloat.

YouTube: https://www.youtube.com/watch?v=e78RRDp-NZg
GitHub repo: https://github.com/jasonmhoule/tw5-mermaid
Demo wiki: https://jasonmhoule.github.io/tw5-mermaid/

On Wednesday, December 10, 2014 at 3:57:00 PM UTC-6 jeremy...@gmail.com 
wrote:

> Hi Tobias
>
> The current D3 plugin for TiddlyWiki ($:/plugins/tiddlywiki/d3), actually 
> weighs in at 175KB when saved in JSON format. Perhaps this is a more recent 
> version?
>
> Best wishes
>
> Jeremy
>
> On Wed, Dec 10, 2014 at 8:14 PM, Tobias Beer  wrote:
>
>> Oh, ok, so the heavyweight is d3... I guess we'd be well advised to 
>> install that alongside plugins as a separate global library that can be 
>> used by other libraries as well.
>>
>> What about some official *$:/library/foo* namespace? I think that may be 
>> advisable to be reserved for these kinds of global, possibly shared 
>> libaries, e.g. vis, d3, jquery, math.js, etc...
>>
>> But 400k for d3, I never thought it was that big a thing. Good to know.
>>
>> Best wishes, Tobias.
>>
> -- 
>>
> 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 http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2126d4a2-ceb0-4b60-9433-98590bf4fca7n%40googlegroups.com.


[tw5] Re: Lightweight diagrams (e.g. concept maps)?

2021-12-21 Thread Jason Houle
This is a question that vexed me for quite some time so I want to offer an 
update this thread for anyone coming across this later.

There are now two good options for using Mermaid.JS within TW5:

*"Complete" Mermaid.js library installation into TW5:* As noted above, this 
is the full library, but has been updated as of October 2021 and published 
with a demo wiki to make installation a breeze.

Demo wiki: https://efurlanm.github.io/mermaid-tw5

*Lightweight TiddlyWiki5 plugin that wraps Mermaid Live Editor: *I just 
published this as a very lightweight (18kb) "wrapper" of the Mermaid Live 
service which handles all the rendering. All the power of Mermaid with 
streamlined code management and virtually no TW bloat.

YouTube: https://www.youtube.com/watch?v=e78RRDp-NZg
GitHub repo: https://github.com/jasonmhoule/tw5-mermaid
Demo wiki: https://jasonmhoule.github.io/tw5-mermaid/


On Friday, November 20, 2020 at 2:20:47 PM UTC-6 Sean Boyle wrote:

> CORAS: http://coras.sourceforge.net/ It is unfortunate that there are 
> name collisions.  This is a methodology and a set of symbols to be used 
> with drawing software, not related to the ginormous commercial package by 
> the same name.  BPMN is certainly well documented and there are large tools 
> which can automatically create workflows,  For creating drawings, it is 
> really just a set of swimlanes and symbols which extend the IBM flowchart 
> symbol set, which is a smaller problem.  Neither of these in and of 
> themselves should radically grow an existing tool.
>
> I can appreciate that no one wants to work on a plugin, send it out for 
> feedback and get none, and perhaps I am guilty of that very thing as I have 
> tried several of them.
>
> Size is a problem.  There is the problem that each graphics plugin seems 
> to have their own library, so they are all additive.  One must certainly be 
> choosy.  At this point, I have several graphics related plugins loaded 
> (railroad, tidgraph, rocklib/ mermaid-tw5, visjs, viz).  Tracking 
> dependencies is not exactly easy (any advice on this?) and I seriously need 
> to do some preening, but I have tried to torture one or more of these to 
> get to my end goal.  It might be smarter to strip all of these out, store 
> the source bits for any drawings, cook them externally and import the SVG 
> (hoping that the external tools do not bloat the SVG too much).
> I am probably already asking a lot of it already by having several years 
> worth of journals with drawings, all encrypted.  My initial plan was to 
> replace a daily planner and moleskine / engineering pad with a software 
> version which is as platform independent as possible today, lightweight, 
> and fulfills much of the requirement which I traditionally would fulfill 
> with a pencil.  In the abstract, it is simple enough.  The implementation 
> is really the dickens, no doubt filled with what TRIZ folks call 
> contradictions.  For now, I should probably stick with it for the strengths 
> and go elsewhere for the missing bits.  Before trying to integrate all with 
> Tiddlywiki, I was using yEd (https://yworks.com/products/yed) for BPMN 
> and CORAS (imported the symbols), and something like draw.io (jgraph).
>
> This was a good discussion.  Thanks to TiddyTweeter and PMario!
>
> On Saturday, November 7, 2020 at 5:33:32 AM UTC-8 TiddlyTweeter wrote:
>
>> PMario wrote:
>>>
>>>
>>> ... So for me it looks like a 20/80 approach. 20% of time invested to 
>>> get 80% of functions out of it.
>>>
>>> This gives you the possibility to implement 5 different libs (as seen 
>>> at: https://gt6796c.github.io/) at the same time as doing 100% for 1 
>>> library. ... (sometimes) That's a good idea 
>>>
>>
>>  Right. Ambitious but useful.
>>
>> It seems none of the libraries took of (eg: lack of feedback), 
>>>
>>
>> Right. There was virtually no feedback at all. Though the tool really 
>> needed a lot to help the author.
>>
>> I am pretty sure that is why its development froze. They got no feedback.
>>
>> --- 
>>
>> The "Mermaid" approach is interesting.
>>
>> Mainly because  it is a unifying front-end that, if done well, would save 
>> a lot of hassle.
>>
>> Best wishes
>> TT
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c87aef00-735b-4508-87d1-7de16cf993efn%40googlegroups.com.


[tw5] Re: Are there any alternatives to the mermaid.js plugin?

2021-12-21 Thread Jason Houle
This is a question that vexed me for quite some time, so for anyone coming 
across this later I want to update this thread to note that there are now 
two good options for using Mermaid.JS within TW5:

*Lightweight TiddlyWiki5 plugin that wraps Mermaid Live Editor:*

YouTube: https://www.youtube.com/watch?v=e78RRDp-NZg
GitHub repo: https://github.com/jasonmhoule/tw5-mermaid
Demo wiki: https://jasonmhoule.github.io/tw5-mermaid/

*"Complete" Mermaid.js library installation into TW5:*

Demo wiki: https://efurlanm.github.io/mermaid-tw5

On Saturday, March 20, 2021 at 10:43:29 AM UTC-5 john.edw...@gmail.com 
wrote:

> [image: vizLinks.PNG]
>
> On Saturday, March 20, 2021 at 11:35:57 AM UTC-4 flohit...@googlemail.com 
> wrote:
>
>> oh and linking should be possible in general in graphviz, although i 
>> didn't make it work yet in TW
>>
>> Florian Felix schrieb am Samstag, 20. März 2021 um 16:34:04 UTC+1:
>>
>>> tiddlymap is not compatible with some other plugins (esp. stroll) and 
>>> themes, mobile, quite slow for bigger wikis and not "printable" in node.js 
>>> which all in all make it a bad solution for what i want/need.
>>>
>>> si schrieb am Samstag, 20. März 2021 um 13:49:29 UTC+1:
>>>
 @flohit I just use it every so often when I need to add a little image 
 of a graph. For example say I had a tiddler on the Konigsber bridge 
 problem 
 ,
  
 I might use graph-viz to illustrate various related concepts.

 I don't think you can embed links with GraphViz (I don't know for sure 
 though). If I want to map out tiddler relationships I would use 
 TiddlyMap , which is much better suited for this 
 IMO.

 @R^2 See my reply to Soren - it's been a while since I tried the 
 mermaid plugin so I don't remember the exact details. I was going to try 
 out one of those forks, but then I realised that I have no idea how to get 
 a plugin from github into my wiki. Do you know how I can do this?

 On Friday, 19 March 2021 at 19:50:09 UTC flohit...@googlemail.com 
 wrote:

> I was looking for examples how ppl use it in tiddlywiki, especially in 
> order to map tiddler relations with links. until now i haven't even been 
> able to embed links^^
> for these usecases there is no doc afaik.
>
> si schrieb am Freitag, 19. März 2021 um 20:44:28 UTC+1:
>
>> @flohit Are you referring to GraphViz? I'm not sure if you are asking 
>> how to use it, or if you are just curious about how I use it 
>> specifically. 
>> To learn the syntax just look at the usage and readme tabs on the plugin 
>> page.
>>
>> @Soren Its been a while since I tried it, but IIR there was a bug 
>> where graphs would randomly get rendered at the bottom of the screen, 
>> outside of any tiddler. I can't remember more detail than that though. 
>> Thanks for sharing your fix for the text-cut-off bug, and maybe I will 
>> try 
>> out one of the updated forks at some point.
>>
>> On Friday, 19 March 2021 at 18:05:09 UTC flohit...@googlemail.com 
>> wrote:
>>
>>> hey, do you have some examples, how you use it :)
>>>
>>> si schrieb am Dienstag, 27. Oktober 2020 um 17:53:44 UTC+1:
>>>
 Thanks Julio, I had not heard of UML before.

 In case anyone else is looking I have found that there is a plugin 
 for graphviz: https://chanilino.github.io/tw5viz/tw5.html

 The syntax is not as streamlined as mermaid, and it is a bit slow 
 to render, but it does the job.

 On Sunday, 25 October 2020 at 19:17:22 UTC julio.c...@gmail.com 
 wrote:

> Sorry, I just realized that this link is probably more useful:
> https://tobibeer.github.io/tw5-plugins/#plantuml



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/15c87b12-8ebc-492d-895d-b1761e6140c9n%40googlegroups.com.


[tw5] BASIC Anywhere Machine: first enhancements to the language implementation

2021-12-21 Thread Charlie Veniot
G'day,

One of my missions in the BASIC Anywhere Machine project: enhancing the 
wwwBasic.js  interpreter with 
additional programming statements.

In the latest version, BASIC Anywhere Machine 
 provides these three new 
string functions (screenshot below):

   - NOW$
   - TIME$
   - DATE$

The TIME$ and DATE$ ought to be compatible with QB64, so that QB64 programs 
that use these two functions should work in BASIC Anywhere Machine.

The NOW$ function, that facilitates extra date-related goodness.

This project touches upon many big interests all competing for my attention:

   - All of the goodness that is TiddlyWiki
   - All of the fun that is hobby programming and teaching programming via 
   BASIC
   - Wrapping the embedded wwwBasic.js with an IDE and tools to make BASIC 
   Anywhere Machine a single-file, online and offline, fully self-contained 
   BASIC Programming environment
   - Putting together a Programmer's Reference 
    with 
   TiddlyWiki; more TiddlyWiki goodness !
   - Putting together a related Project Portal website 
   , one central 
   place to access everything BASIC Anywhere Machine, all things hosted by the 
   tools that make the most sense for the task
   - Enhancing the wwwBasic.js implementation with additional BASIC 
   programming features (hard-coded right in there)
   - NEXT: enhancing the wwwBasic.js with dynamic configurations set by a 
   user/programmer via interfaces built with TiddlyWiki (i.e. widgets, 
   filters, tiddlers.)

GOOD TIMES !!!


[image: Screenshot 2021-12-21 4.11.04 PM.png]

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/020dc520-455c-40e1-881a-6f3317216864n%40googlegroups.com.


[tw5] Re: Help with filter

2021-12-21 Thread Jon
Perfect!

Many thanks
Jon

On Tuesday, 21 December 2021 at 14:12:03 UTC cj.v...@gmail.com wrote:

> Some alternatives that are more compact:
>
> <$vars expression="Footnotes##myref1([^0-9]|\b)">
>
> <$list filter="[regexp:text]">
> {{!!title}}
> 
> 
>
> <$vars expression="Footnotes##myref1(^\d|\b)">
>
> <$list filter="[regexp:text]">
> {{!!title}}
> 
> 
> On Tuesday, December 21, 2021 at 10:06:55 AM UTC-4 Charlie Veniot wrote:
>
>> G'day Jon,
>>
>> Sounds like you need something along the lines of:
>>
>> <$vars expression="Footnotes##myref1([^0123456789]|\b)">
>> <$list filter="[regexp:text]">
>> {{!!title}}
>> 
>> 
>>
>> On Tuesday, December 21, 2021 at 3:18:36 AM UTC-4 Jon wrote:
>>
>>> Hi,
>>>
>>> I have this as the 1st line of a filter
>>>
>>> <$list filter=[regexp:text[Footnotes##myref1]]>
>>>
>>> to find 'myref1' references, but I've discovered that it's also finding 
>>> 'myref11', 'myref12' etc.
>>>
>>> What do I need to include to get an exact match?
>>>
>>> Regards
>>> Jon
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/250bb94f-17ac-4cc7-af74-39e109f03e35n%40googlegroups.com.


[tw5] Re: How to create a tiddler that opens in View(?)Saved(?) mode not Edit mode

2021-12-21 Thread Sheridan Price
Thank you Eric. 
Works great when followed up by a <$action-navigate 
$to=<>/> since in my case I do want the tiddler to 
open immediately.

If you have some time could you explain why using the sequence:

<$action-sendmessage $message="tm-new-tiddler" title=<> 
tags=<> text=<> first-time=""/>
<$action-sendmessage $message="tm-save-tiddler" $param=<> />

fails to create and open the tiddler in "view" mode and instead opens it in 
edit mode. I'm obviously misunderstanding something about how these two 
action widgets work.

Thanks for taking the time to solve my problem. Looking at the solution I 
see I should have played even more before calling for help.

Regards
Sher
On Monday, December 20, 2021 at 2:22:36 PM UTC-5 Eric Shulman wrote:

> On Monday, December 20, 2021 at 10:16:10 AM UTC-8 sheri...@gmail.com 
> wrote:
>
>> ...tiddlers open in the already saved condition i.e. not in edit mode...
>>
>
> Instead of using `<$action-sendmessage $message="tm-new-tiddler" ... />`
>
> use `<$action-createtiddler ... >`
>
> See https://tiddlywiki.com/#ActionCreateTiddlerWidget for parameter 
> details.
>
> enjoy,
> -e
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3f6a0b6c-e87f-47c0-819d-56135631032bn%40googlegroups.com.


[tw5] Regular Expressions: My study notes

2021-12-21 Thread Charlie Veniot
If of any use to anyone, I've been studying regular expressions and keeping 
notes in this TiddlyWiki instance 
.

Note that my studying here is very focused purely on regular expressions 
and the mechanics of regular expressions.  I currently don't want to be 
distracted by application of regular expressions in TiddlyWiki.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/48741aa8-8751-40b8-a0c2-9e49823080d3n%40googlegroups.com.


[tw5] Re: Help with filter

2021-12-21 Thread Charlie Veniot
Some alternatives that are more compact:

<$vars expression="Footnotes##myref1([^0-9]|\b)">
<$list filter="[regexp:text]">
{{!!title}}



<$vars expression="Footnotes##myref1(^\d|\b)">
<$list filter="[regexp:text]">
{{!!title}}



On Tuesday, December 21, 2021 at 10:06:55 AM UTC-4 Charlie Veniot wrote:

> G'day Jon,
>
> Sounds like you need something along the lines of:
>
> <$vars expression="Footnotes##myref1([^0123456789]|\b)">
> <$list filter="[regexp:text]">
> {{!!title}}
> 
> 
>
> On Tuesday, December 21, 2021 at 3:18:36 AM UTC-4 Jon wrote:
>
>> Hi,
>>
>> I have this as the 1st line of a filter
>>
>> <$list filter=[regexp:text[Footnotes##myref1]]>
>>
>> to find 'myref1' references, but I've discovered that it's also finding 
>> 'myref11', 'myref12' etc.
>>
>> What do I need to include to get an exact match?
>>
>> Regards
>> Jon
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4de21e99-af09-49c3-b82e-393093c81c4an%40googlegroups.com.


[tw5] Re: Help with filter

2021-12-21 Thread Charlie Veniot
G'day Jon,

Sounds like you need something along the lines of:

<$vars expression="Footnotes##myref1([^0123456789]|\b)">
<$list filter="[regexp:text]">
{{!!title}}



On Tuesday, December 21, 2021 at 3:18:36 AM UTC-4 Jon wrote:

> Hi,
>
> I have this as the 1st line of a filter
>
> <$list filter=[regexp:text[Footnotes##myref1]]>
>
> to find 'myref1' references, but I've discovered that it's also finding 
> 'myref11', 'myref12' etc.
>
> What do I need to include to get an exact match?
>
> Regards
> Jon
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/094899fe-3cba-46b0-9cf8-de949b9a6086n%40googlegroups.com.