[tw5] Highlight.js update

2018-12-09 Thread Mohammad
It would be great if the plugins of TW 5.1.18 get updated.
The KaTex is now the latest version, but the highlight.js is rather old.

If you look at:

https://github.com/highlightjs/highlight.js/releases


The latest release is 9.13.1 and the TW  5.1.18 plugin at

https://tiddlywiki.com/plugins/tiddlywiki/highlight/#%24%3A%2Fplugins%2Ftiddlywiki%2Fhighlight

back to Sep 2015.

I hope Jeremy or BTC can have time to update this very useful and great 
plugin.


Best
Mohammad

-- 
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 post to this group, send email to tiddlywiki@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/66299ba8-1c4d-4477-9f8b-9bfc3b7e3ecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Making derivative wiki from Bob question

2018-12-09 Thread Dave
Hi

I'm trying to make a new wiki from a subset of tiddlers in my main wiki, but 
it's not working and I was hoping someone could tell me what I'm doing wrong...

Steps I've tried:
Settings > Bob settings tab > create a wiki from "existing tiddlers" > (gave 
the wiki a name) > from: BobWiki (the main wiki folder name) > filter: 
[tag[textAnalysis]] > add filter button > make wiki

I've tried it three times and the tiddlers generated by the filter in my 
current wiki are never in the new wiki

Any suggestions?


Thanks,
- Dave

-- 
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 post to this group, send email to tiddlywiki@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/8ff9e641-d0f8-4439-a5d1-26bb16eb27c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread Mohammad
Hello Mark,
 It works now! Thank you. Please let me to make more tests and I will 
return to you.
I may also make more macros like the one to show bibliography at the bottom 
of tiddlers.

Also to see the effect when I make a big tiddler by transcluding the 
smallet one.

I hope Olegh see the post and give a try with his comments.

Other interested people are kindly asked to give their comments

Best
Mohammad

-- 
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 post to this group, send email to tiddlywiki@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/a596b726-321a-42fc-b9cb-73f975241dd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Announcing the release of TiddlyWiki v5.1.18

2018-12-09 Thread Riz
Congratulations. Good work.

Riz

-- 
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 post to this group, send email to tiddlywiki@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/eb445c6b-160a-4386-af10-9b0591cb7460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: New filter operator: kindred: Filter tiddlers by tags (or any fields) recursively

2018-12-09 Thread TonyM
Jeremy,

Can you suggest a way for bimlas to implement this without a system tiddler 
overwrite if possible?

I am very keen to have this kin operator in most of my wikis and see it as a 
powerful extension especialy alond with else filter and subfilter.

Regards 
Tony

-- 
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 post to this group, send email to tiddlywiki@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/1cc21d62-4b65-4343-9348-efdce1d7a74a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread 'Mark S.' via TiddlyWiki
Mohammad set up a very nice page for this code at 
http://autoref.tiddlyspot.com/ .

I've updated the code to perform resets (so references that are added or 
deleted will be accounted for as soon as the tiddler updates) and for 
namespaces, which allows you to keep track of different classes of things 
(such as images). I've added examples and macros for images.

Getting close?

-- Mark


-- 
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 post to this group, send email to tiddlywiki@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/c21758d9-988b-497d-9e16-c640b09df8f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddler Jail

2018-12-09 Thread h0p3
I am always a joy to hear from you, Jed. Even though I've spent a lot of 
time in my wiki, I'm still basically just a beginner. You are one of the 
gurus here that I am fortunate enough to have the chance to learn from. 
Thank you for such a solid answer (and I will gratefully take every scrap 
of knowledge you are willing to offer).

I have officially migrated to Bob today! I'm still pumping out them single 
files, but I'm loving this luxury (when I'm not broke as fuck, I will be 
donating, sir; it seems likely to me that your software is the future of 
developing TW, imho).

I do not intend to import from the wiki but from outside because Bob makes 
that a pleasant experience. I was thinking about writing a sanitization 
tool to strip (among other things) unacceptable tag, fields, CSS, and 
buttons before pushing .tid files into the tiddler directory, although I'm 
not sure what I will actually need to strip out for CSS. But, from the 
sounds of it, Bob's server images plugin may be a better tool.

I serve my wiki as a static index html file, and I aim to keep it that way. 
I intend to enable extended family, friends, and perhaps even strangers to 
safely write into my wiki (and to enable me to write in theirs if they so 
choose) through some kind of P2P or Federated network (resilio sync, dat, 
IPFS, and tox are my primary contenders right now [why not all?]), but I 
may also scrape singlefile wikis. I'm still not sure how I want to do it, 
especially since I'm brand new to Bob (it appears there are many ways to do 
this using Bob, and I may not have the best one). This is the fuzzy idea so 
far. TWederation based on something like DHT (where the key rather than 
control of a domain name) is what I'm shooting for. Again, Bob looks like 
the way forward, even though I clearly have no idea what I'm doing.

-- 
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 post to this group, send email to tiddlywiki@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/3d497a41-50f4-4650-a14b-e1a6c6b82257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Announcing the release of TiddlyWiki v5.1.18

2018-12-09 Thread Mat
Just a quick note to chime in on the thank you to Jeremy and everyone who 
has contributed!

BTW, sorry for my absence of late but hope to have more time by end of the 
year. Really looking forward to investigating the new version properly.

Cheers everyone

Mat a.k.a <:-) 

-- 
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 post to this group, send email to tiddlywiki@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/1510a04d-9f0e-46f2-9d0e-3b8124808e8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: New filter operator: kindred: Filter tiddlers by tags (or any fields) recursively

2018-12-09 Thread Jeremy Ruston
Just to point out that I would strongly recommend in the strongest terms NOT to 
use any hack that requires overwriting a core module. It's hair-raisingly risky 
99.% of the time, and I dread tracking down and resolving the sort of 
problems it is likely to cause. You can be absolutely certain that somebody 
will try to install this on a later version of TW than v5.1.18.

If you're a developer, please don't encourage end users to do this. It's 
impossible for them to make a sensible risk assessment, and will inevitably 
lead to people seeing TiddlyWiki itself as unreliable.

Best wishes

Jeremy

--
Jeremy Ruston
jer...@jermolene.com
https://jermolene.com

> On 9 Dec 2018, at 22:14, bimlas  wrote:
> 
> I attach the filter, but be careful because it's overwriting some shadow 
> tiddlers!
> 
> [[$:/core/modules/filters/kin.js]] [[$:/core/modules/wiki.js]] 
> [[$:/core/modules/utils/utils.js]]
> -- 
> 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 post to this group, send email to tiddlywiki@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/1d3266c3-2fda-4dee-b3dd-ce52d140c176%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> 

-- 
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 post to this group, send email to tiddlywiki@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/DDD81527-7078-4B9C-B966-52DE076143B9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Dave's awesome list

2018-12-09 Thread Ste Wilson
I've set up a bitly to Dave's awesome list of tiddly goodness

Find it at

bit.ly/tiddlytools

Thought it might help

Stephen

-- 
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 post to this group, send email to tiddlywiki@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/7dcf8780-45bf-4a33-bd2e-57c3d50af525%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: New filter operator: kindred: Filter tiddlers by tags (or any fields) recursively

2018-12-09 Thread bimlas
I attach the filter, but be careful because it's overwriting some shadow 
tiddlers!

[[$:/core/modules/filters/kin.js]] [[$:/core/modules/wiki.js]] [[$:/core/
modules/utils/utils.js]]

-- 
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 post to this group, send email to tiddlywiki@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/1d3266c3-2fda-4dee-b3dd-ce52d140c176%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


kin-bundle.json
Description: application/json


[tw5] Testing please ignore

2018-12-09 Thread Ste Wilson
Posts not been posting. 

-- 
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 post to this group, send email to tiddlywiki@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/e474613c-1f23-4032-baa8-323465605628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Dave's list....whats that easy to remember address?

2018-12-09 Thread Ste Wilson
I've just made a bitly link to Dave's list. 

bit.ly/tiddlytools

Just thought it might be easier. 

Stephen

-- 
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 post to this group, send email to tiddlywiki@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/53c4f5d2-5724-4b4a-bc26-7e5a4e912c04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread Mohammad
Mark, 

On Sunday, December 9, 2018 at 5:48:36 PM UTC+3:30, Mark S. wrote:
>
> Hi Mohammad, 
>
> The issue is that the internal counter doesn't reset until reload. It 
> would be possible to add a reset feature to the JS macro, so that it starts 
> over on rendering.
>
This is not good! and for me is confusing
 

>
> But this might not even be the direction you were thinking of going? 
> Outside of the inevitable anomalies, is this what you were thinking of?
>
You are right!

Mark, I believe in what Tony said. TW has a dynamic nature, we should look 
at what other do
See below pages:
https://en.wikipedia.org/wiki/Machine_learning
http://www.scholarpedia.org/article/Agent_based_modeling

 

>
> Your sample page looks sooo much better than my examples ;-)
>
That's very kind of you 

>
> -- Mark
>
> On Sunday, December 9, 2018 at 1:54:32 AM UTC-8, Mohammad wrote:
>>
>> Mark
>>  These are the results of initial tests
>>
>>
>> A. Issue
>>
>>1. Assume you have renamed "WS-2016" to "WS-2014", the autoref 
>>generate a third reference in the "Autoref Test" tiddler and in the list 
>>you see three references, with the first item is empty e.g "1.   "
>>2. Undo what you have done in step 1, the reference list still shows 
>>a third empty reference
>>
>>
>> B. Issue
>>
>> Without saving, reload the wiki and do below test
>>
>>1.  Clone WS-2016 and rename it to WS-2017
>>2. Insert the new reference in "Autoref Test". It shows 3 references 
>>and everything is okay
>>3. Undo step 2, remove the  Still you have three references: MAX 
>>LINKS I'VE SEEN: <>  shows 3
>>
>>
>> C. Issue
>>
>> Without saving, reload the wiki and do below test
>>
>>1.  Clone WS-2016 and rename it to WS-2017
>>2. Insert the new reference in "Autoref Test" as first line.  It 
>>shows number 3 for this new reference. But this is the first one! 
>>
>> This can be treated as no issue if we use names instead of numbers
>>
>> Please correct me if I am wrong.
>>
>> Mohammad
>>
>>

-- 
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 post to this group, send email to tiddlywiki@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/a0c75c10-d964-45db-9034-2208c14bf755%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread Mohammad
Hello Mark,
 I like to have Olegh comments, as he has better experiences in using TW 
for scientific contents. But I think


   - A tiddler should have its own numbering starting from 1
   - When we make a big tiddler by transcluding small tiddlers, the macro 
   should take care of correct numbering starting from 1 (this is what you 
   said. the first appeared is first)
   - If a reference deleted in a text, the tiddler should be dynamically 
   update the numbers


BTW, I would like to thank you for your work. I think what you did e.g. 
each reference has a tiddler is a great idea! This give us huge 
flexibility. The only problem is here the wiki soon get crowded with 
reference tiddlers.

- Mohammad

-- 
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 post to this group, send email to tiddlywiki@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/a4895086-a4b1-4133-8685-eb0b198c75bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread 'Mark S.' via TiddlyWiki
The numbering is applied as items are introduced. This seems to be the 
approach used by most periodicals.

What would be the best way to have the numbering applied?

A completely different approach would be to have the numbers inside the 
tiddlers (e.g. field refnumber) , with the auto-increment applied at the 
creation of the tiddler. But then each item is stuck with the same number 
forever. What if one of the references needs to be deleted?

Yet another approach, which wouldn't need a JS macro is to re-apply 
numbering to all items via a button whenever the set of items needed to be 
updated. But then the number order would be in whatever order you listed 
the items (title? description? publication date?)

Mark

On Sunday, December 9, 2018 at 5:00:24 AM UTC-8, oleghbond wrote:
>
> Mohammad,
>
> thanks, the very convenient playground.
>
> A couple of questions:
>
>- not clear how the order of numbering can be controlled? Or in other 
>words, how can one change the numbering order?
>- would it be possible to introduce an additional field for each 
>artifact's tiddler sort of 'ref_type' storing values 'table', 'figure', 
>'formula', etc., in order to provide a separate counter for each 
> 'ref_type' 
>value?
>
> Olegh
>
> неділя, 9 грудня 2018 р. 12:02:26 UTC+2 користувач Mohammad написав:
>>
>> Olegh,
>>  I made a demo based on Mark code!
>> See it here
>>  http://autoref.tiddlyspot.com/
>>
>>
>> --Mohammad
>>
>

-- 
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 post to this group, send email to tiddlywiki@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/9256be86-03e4-48ac-b3b6-0a555d8d2aba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How can I make a form with a button that does something?

2018-12-09 Thread BurningTreeC
Hi Joe,

to reverse a string you can use a crazy thing like this, putting it in
\define print-next(string:"",prefix:"",count:"")
<$macrocall $name="print-single-letters" string=<<__string__>> prefix=<<
__prefix__>> count=<<__count__>>/>
\end

\define print-single-letters(string:"",prefix:"",count:"0")
<$list filter="[<__string__>minlength[1]]">
<$set name="newcount" filter=" [range[0,100]after[$count$]]">
<$set name="printprefix" value={{{ 
[<__string__>splitbefore[]addprefix<__count__>] }}}>
<$set name="newstring" value={{{ [<__string__>removeprefix<__prefix__>] }}}>
<$text text=<>/>
<$list filter="[minlength[1]]">
<$macrocall $name="print-next" string=<> prefix={{{ [
splitbefore[]] }}} count=<>/>





\end

\define range-enlist()
<$list filter="[range[0,$(length)$]reverse[]]">
<$set name="nnth" value={{{ [range[0,100]after] }}}>
<$list filter=
"[enlist[$(singleLetters)$]nthremoveprefix]">
<>



\end
\define reverse-single-letters()
<$set name="length" filter="[enlist[$(singleLetters)$]] +[count[]]">
<>

\end

\define reverse-ma-string(string:"")
<$wikify name="singleLetters" text="""<$macrocall $name="print-single-
letters" string=<<__string__>> prefix={{{ [<__string__>splitbefore[]] 
}}}/>""">
<$wikify name="reversedLetters" text=<>>
<>


\end

a tiddler tagged $:/tags/Macro and calling it from another tiddler with 
<> or <$macrocall 
$name="reverse-ma-string" string={{transcludethistiddler}}/>


-- 
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 post to this group, send email to tiddlywiki@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/f39feba2-89e2-4781-a3fc-196624883c95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread 'Mark S.' via TiddlyWiki
Hi Mohammad, 

The issue is that the internal counter doesn't reset until reload. It would 
be possible to add a reset feature to the JS macro, so that it starts over 
on rendering.

But this might not even be the direction you were thinking of going? 
Outside of the inevitable anomalies, is this what you were thinking of?

Your sample page looks sooo much better than my examples ;-)

-- Mark

On Sunday, December 9, 2018 at 1:54:32 AM UTC-8, Mohammad wrote:
>
> Mark
>  These are the results of initial tests
>
>
> A. Issue
>
>1. Assume you have renamed "WS-2016" to "WS-2014", the autoref 
>generate a third reference in the "Autoref Test" tiddler and in the list 
>you see three references, with the first item is empty e.g "1.   "
>2. Undo what you have done in step 1, the reference list still shows a 
>third empty reference
>
>
> B. Issue
>
> Without saving, reload the wiki and do below test
>
>1.  Clone WS-2016 and rename it to WS-2017
>2. Insert the new reference in "Autoref Test". It shows 3 references 
>and everything is okay
>3. Undo step 2, remove the  Still you have three references: MAX 
>LINKS I'VE SEEN: <>  shows 3
>
>
> C. Issue
>
> Without saving, reload the wiki and do below test
>
>1.  Clone WS-2016 and rename it to WS-2017
>2. Insert the new reference in "Autoref Test" as first line.  It shows 
>number 3 for this new reference. But this is the first one! 
>
> This can be treated as no issue if we use names instead of numbers
>
> Please correct me if I am wrong.
>
> Mohammad
>
>

-- 
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 post to this group, send email to tiddlywiki@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/fb704d02-ffc8-4140-8077-74be3a9a1c71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SonicPi, TiddlyWiki and OSC?

2018-12-09 Thread Jed Carty
I have never used OSC or SonicPi but I did make a few music synthesis 
projects when I was getting my degree and I have been made a few small 
generative music projects using tiddlywiki as the front end. I also have 
some experience hooking tiddlywiki into real time applications using it to 
control my robot and some automation projects I have been playing with. For 
that I used websockets as the communication channel.

A project like this could be fun.

-- 
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 post to this group, send email to tiddlywiki@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/3d1ad969-c507-411e-a282-ab1621e71f95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How can I make a form with a button that does something?

2018-12-09 Thread Jed Carty
What you are describing is a non-standard thing so doing it without using 
non-standard macros or a plugin isn't really possible.

There are ways to do the equivalent using tiddlywiki, but instead of having 
html input elements you should use edit-text widgets, to make the tiddler 
with the given name and the fields use a set-text widget. Reversing the 
string would be a non-standard macro, the core doesn't have anything to do 
that build-in.

Forms in wikitext are simple, just put this inside a tiddler for all of the 
things you described aside from the reversing the text and the custom 
javascript part, because they require custom macros which  you explicitly 
said you didn't want to use:

Tiddler name: <$edit-text tiddler='$:/temp/NewTiddlerThing' field=
'tiddler-name'/>

Text1: <$edit-text tiddler='$:/temp/NewTiddlerThing' field='text1'/>

Text2: <$edit-text tiddler='$:/temp/NewTiddlerThing' field='text2'/>

<$list filter='[field:title{$:/temp/NewTiddlerThing!!tiddler-name}]'>
Warning! The tiddler <> already exists!!

<$button>
Make it!
<$action-setfield $tiddler={{$:/temp/NewTiddlerThing!!tiddler-name}} text={{
$:/temp/NewTiddlerThing!!text1}} text2={{$:/temp/NewTiddlerThing!!text2}}/>


-- 
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 post to this group, send email to tiddlywiki@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/1d90b886-6fea-4818-b545-d24141d7233c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread oleghbond
Mohammad,

thanks, the very convenient playground.

A couple of questions:

   - not clear how the order of numbering can be controlled? Or in other 
   words, how can one change the numbering order?
   - would it be possible to introduce an additional field for each 
   artifact's tiddler sort of 'ref_type' storing values 'table', 'figure', 
   'formula', etc., in order to provide a separate counter for each 'ref_type' 
   value?

Olegh

неділя, 9 грудня 2018 р. 12:02:26 UTC+2 користувач Mohammad написав:
>
> Olegh,
>  I made a demo based on Mark code!
> See it here
>  http://autoref.tiddlyspot.com/
>
>
> --Mohammad
>

-- 
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 post to this group, send email to tiddlywiki@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/ed27d356-b344-484c-9f5a-8eed4cb50bf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: SonicPi, TiddlyWiki and OSC?

2018-12-09 Thread Joe Armstrong
Absolutely.

By coincidence, I've been collaborating with Jeremy and Sam - personally, I 
think SonicPi and TW are
soul-mates - on the surface they a different, but under the covers, they 
are very similar.

Jeremy is combining fragment of knowledge through transclusion, Sam is 
making music by combining
fragments of music (represented in code)

I wrote the OSC stuff in sonic pi in Erlang (there's a complete Erlang 
hidden inside SonicPi) -
and I have been thinking about using TW as an alternative front end to 
SonicPi - SonicPi uses the
supercollider internally (which is also controlled by OSC) - parts of the 
note scheduler inside SonicPi are
written in Erlang (mainly because concurrency and syncing up things is far 
easier in Erlang than in Ruby)

Jeremy and I have been playing with ways to make Erlang talk to TW so we 
can do stuff
outside the TW - and actually audio processing (like in the supercollider) 
would be great to do
outside the TW (alternative would be to use webaudio and webmidi inside the 
browser) - my feeling is
that webaudio in the browser is years behind the supercollider (but may 
catch up quickly)

Here's some links you might like to look at

https://github.com/samaaron/sonic-pi/blob/master/app/server/erlang/osc.erl
https://joearms.github.io/published/2015-01-05-Connecting-Erlang-to-Sonic-Pi.html
https://joearms.github.io/published/2016-01-28-A-Badass-Way-To-Connect-Programs-Together.html
https://joearms.github.io/published/2016-01-29-Controlling-Sound-with-OSC-Messages.html

Glueing together sonicPi and TW using OSC over UDP or TCP would be great 
fun.

I'm actually a great fan of OSC (for reasons given in the above blogs)

This could be great fun.

Cheers

/Joe


On Saturday, 8 December 2018 11:24:25 UTC+1, AlexHough wrote:
>
> Dear All,
>
> I've been playing with Sonic Pi [1] and was shown how it can take OSC data 
> from TouchOSC [2]
>
> I searched the web and found osc.js [3]
>
> I was wondering if :
> a) anyone exploring or wants to explore TiddlyWiki, SonicPi and OSC?
> b) they would be interested in collaborating on a art installation using 
> these technologies? 
> c) TW could take the place of TouchOSC
>
> All comments and thoughts most welcome
>
> best wishes
>
> Alex
>
> [1] https://sonic-pi.net/
> [2] https://hexler.net/software/touchosc
> [3] https://github.com/colinbdclark/osc.js/
>

-- 
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 post to this group, send email to tiddlywiki@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/7699a6db-85b5-45c9-8b85-76d9e9be984f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How can I make a form with a button that does something?

2018-12-09 Thread Joe Armstrong
I want to make a simple form with three fields and a button
The fields are regular html  input fields (like )

The fields contain the name of a new tiddler and two text strings.
Call these fields 'tiddler-name' text1 and text2

When I press the button I want to execute some custom JS code which I write
this should:

Read the name of the new tiddler from one of the entries. Read the string 
in text1, Read the string in text2
then:

   1) reverse the string read from text2
   2) create a new tiddler using the name in the 'tiddler-name' field
   note: or issue an error if such a tiddler already exists
   populate the new tiddler with some wiki text that my custom JS
   button code creates

I'd really like to see exactly how to do this - note: NOT using any fancy 
plugins or
non-standard macros to achieve this. I want to see and understand the raw 
code to
do this.

What's the best way to do this?

Cheers

/Joe



-- 
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 post to this group, send email to tiddlywiki@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/c858025b-8863-497a-af50-cca083329ce1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread oleghbond
Thanks, that's much better.

неділя, 9 грудня 2018 р. 11:56:30 UTC+2 користувач Mohammad написав:
>
> Olegh,
>  You need to work in TW5.1.18
>
> Please download a clean empty TW5.1.18 and test the code. The Marks's code 
> uses range operator which is new in 5.1.18
>
>
> -Mohammad
>

-- 
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 post to this group, send email to tiddlywiki@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/077cd58f-7266-4d82-a8d1-bacdcc011687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddler Jail

2018-12-09 Thread Jed Carty
First to actually answer your question, not really, but it probably isn't 
as bad as you think. From importing there is almost nothing that a tiddler 
can do other than change the display properties of your wiki by adding css 
and view templates. There is plenty you can do with those two things but it 
isn't the end of the world. And the Bob command line scripts need to be 
listed explicitly in the settings before they can be used to protect 
against exactly what you are describing. It isn't perfect but it is in 
almost all situations good enough.

And now a long winded reply that has a bit more explanation, if you want it.

This came up when I was doing work with twederation. The safest way came 
from Jeremy when he said that we just import tiddlers as rendered html. If 
you want to allow more than links than there are some things you can do. In 
the core there isn't anything that can affect the wiki permanently without 
direct interaction of some sort. Tiddlers can have tags like 
$:/tags/RawMarkup, but that requires the wiki to be restarted and there is 
a small set of known tags that can add javascript. Plugins are marked as 
plugins and don't take effect until the wiki is restarted. Another concern 
is startup actions, but once again the tags that are needed for that are 
known and the wiki has to be restarted.

This doesn't cover things like the TriggerActions plugin I made, which can 
change the wiki in response to many different changes to the state after it 
is installed, but that uses a known tag.

We could create a safer import option that detects these tags and changes 
them, probably by adding a prefix like QUARANTINE- to the start of the tag, 
which would cover almost all times when an imported tiddler could break the 
wiki. We probably want to include css into that because you can do some 
sneaky things with css.


In terms of Bob specifically you bring up a good point. For the secure 
server version I have online you have to explicitly give access to a logged 
in person to run scripts and I have it disabled for everyone, but it also 
needs to have per-wiki controls for the same logged in person so that we 
can make sandboxed wikis that are at least somewhat protected against 
malicious code. I am currently working on adding the same sort of access 
controls to the normal Bob versions so one solution to what you are 
describing would be to create a new wiki using the imported tiddlers and 
not giving that wiki any permissions to access the outside world.

It would take a bit of work to do it well but I think that it may be worth 
while task. The server images plugin I made already intercepts imported 
tiddlers and changes them so it wouldn't be a terribly large task to have 
it check the tags on the imported tiddlers against a list of potential 
problems and then modify them to be inert, but we would have to be careful 
to catch all of the tags and there may be other ways to cause trouble.

-- 
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 post to this group, send email to tiddlywiki@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/8c91da64-f2c7-42f4-8826-7a5e77d8d407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread Mohammad
Olegh,
 I made a demo based on Mark code!
See it here
 http://autoref.tiddlyspot.com/


--Mohammad

-- 
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 post to this group, send email to tiddlywiki@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/913edc18-a7e3-4c1b-aa61-9140d61d6493%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread Mohammad
Olegh,
 You need to work in TW5.1.18

Please download a clean empty TW5.1.18 and test the code. The Marks's code 
uses range operator which is new in 5.1.18


-Mohammad

-- 
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 post to this group, send email to tiddlywiki@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/7a8c8c80-3c17-44e1-92cf-85d308cfef42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread Mohammad
Mark
 These are the results of initial tests


A. Issue

   1. Assume you have renamed "WS-2016" to "WS-2014", the autoref generate 
   a third reference in the "Autoref Test" tiddler and in the list you see 
   three references, with the first item is empty e.g "1.   "
   2. Undo what you have done in step 1, the reference list still shows a 
   third empty reference
   

B. Issue

Without saving, reload the wiki and do below test

   1.  Clone WS-2016 and rename it to WS-2017
   2. Insert the new reference in "Autoref Test". It shows 3 references and 
   everything is okay
   3. Undo step 2, remove the  Still you have three references: MAX 
   LINKS I'VE SEEN: <>  shows 3


C. Issue

Without saving, reload the wiki and do below test

   1.  Clone WS-2016 and rename it to WS-2017
   2. Insert the new reference in "Autoref Test" as first line.  It shows 
   number 3 for this new reference. But this is the first one! 

This can be treated as no issue if we use names instead of numbers

Please correct me if I am wrong.

Mohammad

-- 
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 post to this group, send email to tiddlywiki@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/ddc45834-67fe-43ac-b48d-09c6bd254fd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Autonumbering

2018-12-09 Thread oleghbond
Mark,

so far my test of your example looks as follows in the attachment.

Olegh


неділя, 9 грудня 2018 р. 00:58:00 UTC+2 користувач Mark S. написав:
>
> Ideally, the way to do this would be to put the references in their own 
> tiddlers. The problem is the auto-numbering ... since you can't know the 
> numbering in advance. The workaround is to use a javascript macro, that can 
> keep track of references internally.
>
> This is a proof of concept. It adds a JS macro, autoref.
>
> Parameter: tiddler
>
>   Tiddler to be accessed. Or, can also contain number of tiddler
>
> Parameter: action
>
>   "link" (to link a tiddler to a number) 
>   "ref"  (to access the tiddler assigned to the number,
>or number assigned to the tiddler)
>   "max" (to access the current max reference number)
>   Default is "max".
>
>
> Be sure to backup your TW before trying (or better yet, use in an empty TW 
> file).
>
> This shows how the concept can work with numbered references. The idea is 
> that the javascript tracks the auto-numbers, but everything else would be 
> left up to your own, task-appropriate macros. The next stage would be to 
> add code to allow multiple kinds of references (e.g. captions, figures). 
> The sample macros here let you insert references that show as numbers 
> (think anchors), show a tiddler description by tiddler (with number), show 
> a tiddler description by number. The list routine uses the range operator 
> to list all references.
>
> Drag and drop into your TW file, and then reload (the JS does not take 
> effect until you reload).
>
> Various caveats: Please don't give your reference tiddlers names that are 
> numbers! Resist the urge to give any of your tiddlers the name 
> "MAS-REF-COUNTER". Note that presently the macro doesn't check if your 
> referenced tiddlers actually exist. Not sure if this is a bug or feature.
>
> Have fun,
> Mark
>

-- 
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 post to this group, send email to tiddlywiki@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/f52e250a-08d3-4afb-a84d-56331ac06ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Tiddler Jail

2018-12-09 Thread h0p3
Is there an idiomatic way to safely import tiddlers from a stranger into a 
jail or sandbox in my wiki? Is there a way to automatically quarantine a 
tiddler (say based upon its tags) so that it has no ability to write to the 
rest of the wiki or perhaps do anything more programmatic than link and use 
basic TW markup? If at all, how much more dangerous is this problem for me 
if I'm running a tool like Bob (which may have access to my command line)?

-- 
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 post to this group, send email to tiddlywiki@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/e1fafbfa-4328-4045-ad62-6b79ff5a45f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.