[tw] rendering abcjs music notation in tiddlywiki

2015-12-04 Thread vpl
Hi,

I'm trying to render abcjs music notation in tiddlywiki
Bopland.org is closed now and Vexflow licensing model is not adapted.
abcjs (http://abcjs.net/) looks very interesting and maintained.

Looking at other thread I understand that 
 - I have to create a tiddler containing the abcjs_basic_latest-min.js 
content (available 
here 
https://raw.githubusercontent.com/paulrosen/abcjs/master/bin/abcjs_basic_2.2-min.js)
 - tag it with systemConfig

Then I block as I don't understand how to render the music content using 
abcjs

I've tested on a html page the following code and it works





abcjs basic demo



abcjs basic demo page



var chorus = '%%staffwidth 500\nX: 1\nT: Chorus\nV: T1 clef=treble 
name="Soprano"\nV: T2 clef=treble name="Alto"\nV: B1 clef=bass 
name="Tenor"\nV: B2 clef=bass name="Bass"\nL:1/8\nK:G\nP:First Part\n[V: 
T1]"C"ed"Am"ed "F"cd"G7"gf |\n[V: T2]GGAA- A2BB |\n[V: B1]C3D- DF,3 |\n[V: 
B2]C,2A,,2 F,,2G,,2 |';




ABCJS.renderAbc('notation', chorus);







As you see, abcjs renders the content using ABCJS.renderAbc(). 
But we have to pass to this method a string content (in our case a 
javascript variable) representing the music I want to render.


Could somebody help me here, 
I'm block on tiddly and need an expert to unlock me ..

With regards

Vpl

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8cc567b3-15b8-4dd3-aacd-743b7b6b59db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-04 Thread Jed Carty
I need to run off to work sometime soon, so I can't give a detailed answer 
now, but the quick answer is you put either the text of the full script of 
 into a 
tiddler and tag that tiddler with $:/tags/RawMarkup to add the script to 
the wiki, then the best way would probably be to make a javascript macro 
(or widget, but since the music probably won't change too often a macro 
should be enough).

This is the simplest javascript macro example I can think of off the top of 
my head 
http://inmysocks.tiddlyspot.com/#%24%3A%2Finmysocks%2Fmacros%2Fadd-time.js
and this is how I put the snap.js library into a wiki 
http://ooktech.com/jed/ExampleWikis/SnapSVG/#%24%3A%2Fplugins%2Finmysocks%2FSnapJS%2FSnap.js

If you need more let me know, but I probably won't be able to help much 
until sunday.

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/645706d7-9252-4b1d-a5cd-0bdcd5611090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Snap.js progress

2015-12-04 Thread Jed Carty
I made some improvements, but now a lot of what I wrote about how it works 
is wrong. The user interface is still mostly the same.
All the javascript is now in the widget. I had to rearrange some things, 
but it all should work. I also started playing with animation and actions 
other than dragging. At the moment the animation isn't accessible by the 
user because I need to find some reasonable way to define the animations in 
the wiki. For now whenever the svg is rendered a thing moves across the 
image and if you hover over one of the circles it will change size and 
color.  You get some strange behaviour the first time you try to drag an 
element after (re)loading the wiki but not after it re-renders the svg. I 
don't know why.
Now I need to figure out how I will make state dependent events. I think 
that making a reasonable authoring interface is going to be the hardest 
part of this.

Here is the demo 

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/974ec40c-7664-4827-ad86-ff4aa3bedc8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using a filter to return a list of tiddlers, and then tagging several tiddlers in one go, and setting their caption field?

2015-12-04 Thread Matabele
Hi

Don't know exactly what you are looking for, but it is possible to place a 
$list widget containing action-widgets within a $button widget -- like this:

<$button tooltip="Modify All">
<$list filter="[tag[MyTag]]">
<$action-setfield $tiddler=<> tags="[[tag one]] [[tag 
two]]" caption="something"/>

Modify All


regards

On Thursday, 3 December 2015 19:21:22 UTC+2, leeand00 wrote:
>
> The new version of TW5 is great, I especially like the new tab tagging 
> feature...
>
> However setting that up becomes laborious on occasion since I have to go 
> to each tiddler in the gui and set it and it's number manually.
>
> I'm thinking it would be neat to try this in Javascript as a plugin or 
> something, but I was wondering if there's a way to do this with the 
> existing functionality.
>
> Thank you, 
>Andrew J. Leer
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0aeed539-6232-4de9-afc8-ec661f54dd50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-04 Thread vpl
Hi

I'm already on tiddlywiki5 for 1 year now and very happy with it !

How can I do that with TW5 ?

Thanks very much for your guidance

Vpl

Le vendredi 4 décembre 2015 11:10:53 UTC+1, Jed Carty a écrit :
>
> If you are willing to switch to tiddlywiki5 than it shouldn't be too hard. 
> If you need/want to stick with tiddlywiki classic than hopefully someone 
> else can help can help.
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77c4f8fc-6d79-413b-bd0c-2997a6377970%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-04 Thread Jed Carty
If you are willing to switch to tiddlywiki5 than it shouldn't be too hard. 
If you need/want to stick with tiddlywiki classic than hopefully someone 
else can help can help.

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d636de14-0360-4fa1-8d4a-543ccecbca56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using a filter to return a list of tiddlers, and then tagging several tiddlers in one go, and setting their caption field?

2015-12-04 Thread Matabele
Hi

To create a number of tiddlers with similar names, have a look at my 
$x-maketid widget from here . Each 
successive call of the widget will generate a unique title -- using either 
a date/time stamp or an integer index. 

A number of tiddlers with different root titles may be created using a 
$list filter with the filter expression including entries from a list (of 
titles) as a wrapper around the $x-maketid widget (passing the title via 
the <> variable.)

regards

On Friday, 4 December 2015 17:10:51 UTC+2, leeand00 wrote:
>
>
> Matabele, that's almost perfect!  
>
> To clear up the confusion, I put alot of examples in my wikis; and it's 
> easier to view these on tabs, they make a great reference.  However, I get 
> annoyed when I have to scroll up; and then scroll down, and then scroll 
> up...etc... to set all of the tags on all of the tiddlers.  
>
> When I use the <> macro I use a filter to gather together all of the 
> fields based on a common tag (usually sorting them, but not always)...Note 
> that in your code example, using the <$action-setfield>'s tag attribute, I 
> had to put a in it to tag it using a tag with spaces.  
>
> Now what you have in the code here is great; it allows me to use a 
> [prefix[]] or [sufix[]] in the filter to gather the tiddlers and add tags 
> to them...
>
> Now I only have three issues left...generating new tiddlers with a similar 
> name (but not the same name) programmaticallyautomatically adding an 
> edit link to bring up the tiddler in the tab..., and optionally setting the 
> caption to a substring or regex of the <>'s title; or 
> setting the caption programmatically to an incrementing sequence of 
> numbers...being able to do this combined with your example, will allow me 
> to create my tabs without scrolling up and down all the time...
>
> Sorry I'm such a noob with the new syntax...there are alot of things in 
> TW5 it's a little difficult to know where to look without talking to 
> someone about it first.
>
> Making the example tabs manually instead of programmatically really slows 
> me down; when I used TW Classic, I used to make these using PhraseExpress 
> macros, but I personally am not crazy about using a free tool that's 
> basically a keylogger.
>
> Thank you for your example!
>
> On Friday, 4 December 2015 05:28:14 UTC-5, Matabele wrote:
>
>
> Hi
>>
>> Don't know exactly what you are looking for, but it is possible to place 
>> a $list widget containing action-widgets within a $button widget -- like 
>> this:
>>
>> <$button tooltip="Modify All">
>> <$list filter="[tag[MyTag]]">
>> <$action-setfield $tiddler=<> tags="[[tag one]] [[tag 
>> two]]" caption="something"/>
>> 
>> Modify All
>> 
>>
>> regards
>>
>> On Thursday, 3 December 2015 19:21:22 UTC+2, leeand00 wrote:
>>>
>>> The new version of TW5 is great, I especially like the new tab tagging 
>>> feature...
>>>
>>> However setting that up becomes laborious on occasion since I have to go 
>>> to each tiddler in the gui and set it and it's number manually.
>>>
>>> I'm thinking it would be neat to try this in Javascript as a plugin or 
>>> something, but I was wondering if there's a way to do this with the 
>>> existing functionality.
>>>
>>> Thank you, 
>>>Andrew J. Leer
>>>
>>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/00024179-3e3a-428e-97e7-5fcc7b2c99f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using a filter to return a list of tiddlers, and then tagging several tiddlers in one go, and setting their caption field?

2015-12-04 Thread leeand00

Matabele, that's almost perfect!  

To clear up the confusion, I put alot of examples in my wikis; and it's 
easier to view these on tabs, they make a great reference.  However, I get 
annoyed when I have to scroll up; and then scroll down, and then scroll 
up...etc... to set all of the tags on all of the tiddlers.  

When I use the <> macro I use a filter to gather together all of the 
fields based on a common tag (usually sorting them, but not always)...Note 
that in your code example, using the <$action-setfield>'s tag attribute, I 
had to put a in it to tag it using a tag with spaces.  

Now what you have in the code here is great; it allows me to use a 
[prefix[]] or [sufix[]] in the filter to gather the tiddlers and add tags 
to them...

Now I only have three issues left...generating new tiddlers with a similar 
name (but not the same name) programmaticallyautomatically adding an 
edit link to bring up the tiddler in the tab..., and optionally setting the 
caption to a substring or regex of the <>'s title; or 
setting the caption programmatically to an incrementing sequence of 
numbers...being able to do this combined with your example, will allow me 
to create my tabs without scrolling up and down all the time...

Sorry I'm such a noob with the new syntax...there are alot of things in TW5 
it's a little difficult to know where to look without talking to someone 
about it first.

Making the example tabs manually instead of programmatically really slows 
me down; when I used TW Classic, I used to make these using PhraseExpress 
macros, but I personally am not crazy about using a free tool that's 
basically a keylogger.

Thank you for your example!

On Friday, 4 December 2015 05:28:14 UTC-5, Matabele wrote:


Hi
>
> Don't know exactly what you are looking for, but it is possible to place a 
> $list widget containing action-widgets within a $button widget -- like this:
>
> <$button tooltip="Modify All">
> <$list filter="[tag[MyTag]]">
> <$action-setfield $tiddler=<> tags="[[tag one]] [[tag 
> two]]" caption="something"/>
> 
> Modify All
> 
>
> regards
>
> On Thursday, 3 December 2015 19:21:22 UTC+2, leeand00 wrote:
>>
>> The new version of TW5 is great, I especially like the new tab tagging 
>> feature...
>>
>> However setting that up becomes laborious on occasion since I have to go 
>> to each tiddler in the gui and set it and it's number manually.
>>
>> I'm thinking it would be neat to try this in Javascript as a plugin or 
>> something, but I was wondering if there's a way to do this with the 
>> existing functionality.
>>
>> Thank you, 
>>Andrew J. Leer
>>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0fec0c14-9d78-4b94-8139-19df08ff858a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using a filter to return a list of tiddlers, and then tagging several tiddlers in one go, and setting their caption field?

2015-12-04 Thread leeand00

Honestly I think in sequence it could work like this:

1. Create a Tiddler with a title that is somewhat common to all the 
tabs...we'll call this the parentTiddler
2. Click a <$button> of some sortthat you click on and it will request 
either a list of suffixes to create, or the number of tiddlers you wish to 
have tabs for...
3. Create each of the new tiddlers with a title of "parentTiddler + [ 
suffix[x] or x ]" and set the caption to "suffix[x] or x"; and also set an 
[edit|Tiddler Title] in the content of the new Tiddler so we can edit it 
later.
4. In parentTiddler set the content to <> to sort the tabs.
5. Done.


On Friday, 4 December 2015 05:28:14 UTC-5, Matabele wrote:
>
> Hi
>
> Don't know exactly what you are looking for, but it is possible to place a 
> $list widget containing action-widgets within a $button widget -- like this:
>
> <$button tooltip="Modify All">
> <$list filter="[tag[MyTag]]">
> <$action-setfield $tiddler=<> tags="[[tag one]] [[tag 
> two]]" caption="something"/>
> 
> Modify All
> 
>
> regards
>
> On Thursday, 3 December 2015 19:21:22 UTC+2, leeand00 wrote:
>>
>> The new version of TW5 is great, I especially like the new tab tagging 
>> feature...
>>
>> However setting that up becomes laborious on occasion since I have to go 
>> to each tiddler in the gui and set it and it's number manually.
>>
>> I'm thinking it would be neat to try this in Javascript as a plugin or 
>> something, but I was wondering if there's a way to do this with the 
>> existing functionality.
>>
>> Thank you, 
>>Andrew J. Leer
>>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/34a44ca0-6419-473a-91b9-3f8e190301e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] TiddlyWiki Hangout #93 will be on Tuesday 8th December at 4pm GMT/UTC

2015-12-04 Thread Jeremy Ruston
TiddlyWiki Hangout #93 will be on Tuesday 8th December at 4pm GMT/UTC.

Find out more and post questions:

https://plus.google.com/events/ctvcat9o8l7l0rd72vpuvibbd20 


As usual, I’ve created a TiddlySpot for the agenda:

http://hangout-93.tiddlyspot.com/ 

I hope you can join me, and do please let me know if there are any topics that 
you’d like to see covered,

Best wishes

Jeremy

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8FDF71C5-C291-4A51-AD3A-5C813D878F40%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using a variable to extract a sentence from a DataTiddler

2015-12-04 Thread Matabele
Hi

Combine the two variables with a macro:

\define sentence(data,language) $data$##$language$

Then reference this value like this: <>

regards


On Friday, 4 December 2015 18:30:19 UTC+2, ParisWiki wrote:
>
> Hello,
>
> I wish to use a variable to extract a sentence from a data tiddler.
>
> The user chooses his/her own language and from there he/she should obtain 
> a guide for a service in the right language.
>
> Of course with the choice of language (choice ={{Language!!choix}} it easy 
> to keep the same language in  all the tiddlers whose tag matches with the 
> field "choix" in the tiddler "Language".
>
> It is also easy to implement situations where various sentences are 
> extracted from a data tiddler with the formula {{Data1r##zh}} in the case 
> where the language is chinese (zh).
>
> But in that case, the language is de facto hard coded.
>
> I wish to simplify the number of patterns by using a variable for 
> extracting data from my data tiddler(s).  
>
>  I have built an exemple at http://jcg.tddlyspot.com.
>
> Either I don't correctly manipulate the syntax of variables in TiddlyWiki 
> (which is more than probable), or I am asking to much in willing extracts 
> from a data tiddler thru a variable !
>
> In other words, I would appreciate some guidance ...
>
> Thank you in advance
> JCG
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e24526f9-885a-4f49-b2cc-c2ebdf377cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Using a variable to extract a sentence from a DataTiddler

2015-12-04 Thread ParisWiki
Hello,

I wish to use a variable to extract a sentence from a data tiddler.

The user chooses his/her own language and from there he/she should obtain a 
guide for a service in the right language.

Of course with the choice of language (choice ={{Language!!choix}} it easy 
to keep the same language in  all the tiddlers whose tag matches with the 
field "choix" in the tiddler "Language".

It is also easy to implement situations where various sentences are 
extracted from a data tiddler with the formula {{Data1r##zh}} in the case 
where the language is chinese (zh).

But in that case, the language is de facto hard coded.

I wish to simplify the number of patterns by using a variable for 
extracting data from my data tiddler(s).  

 I have built an exemple at http://jcg.tddlyspot.com.

Either I don't correctly manipulate the syntax of variables in TiddlyWiki 
(which is more than probable), or I am asking to much in willing extracts 
from a data tiddler thru a variable !

In other words, I would appreciate some guidance ...

Thank you in advance
JCG

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/390403cd-ec69-441b-a553-4a16762ad0ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] List filter with field values question

2015-12-04 Thread David Allen
I'm not entirely certain how to describe what I'm trying to do, but here 
goes.

I've got a Star Trek fanfic wiki and I'd like to list which planets belong 
to certain empires by when they joined said empire.  I'm doing this through 
a series of historical event tiddlers so I can do some further stuff with 
the events.  Here are how my event tiddlers are currently set up:

*Example 1:*

[[Denobula]] joins the [[United Federation of Planets]]

Fields:
planet: [[Denobula]]
year: 2164
jointype: join

*Example 2:*

[[Xizholia]] is conquered by the [[Romulan Star Empire]]

Fields:
planet: [[Xizholia]]
year: 2329
jointype: conquer

What I'm doing so far is getting a list of planets that belonged to certain 
empires and compiling them in a list.

For example:
<$list filter="[tag[empire_event]tag[United Federation of Planets]]">

*{{!!planet}} ({{!!year}})


This comes up as:

* Earth (2161)
* Denobula (2164)

What I'd like to do now is get a list of species that belong to certain 
empires using the planets listed in the event tiddler's planet fields.  *Both 
the species tiddlers and the event tiddlers have planet fields, and I'd 
like to figure out how to return a list of species whose planet fields 
match the planet fields in a list of event tiddlers.*  Does anyone know how 
to do this?  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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/42f0ddc1-41fc-4f6f-a457-989f15a58ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using a variable to extract a sentence from a DataTiddler

2015-12-04 Thread ParisWiki
Hi Matabele,

I am still missing something.
The first solution, as it is, gives nothing useful to me.

The second proposal looks much more promising and gives {{Data1##fr}} if 
the language chosen is French or {{Data1##zh}} for Chinese, after adding 
the curly braces {{>}}.

But it does not "resolve" the formula and certainly, as it is, does not 
extract data from my data tiddler Data1.

Did you try it and obtain the correct extraction? 
What do I miss again ?

regards

Le vendredi 4 décembre 2015 18:18:46 UTC+1, Matabele a écrit :
>
> Hi
>
> Combine the two variables with a macro:
>
> \define sentence(data,language) $data$##$language$
>
> Then reference this value like this: <>
>
> or for variables (stored in a field), like this: < {{!!language}}>>
>
> regards
>
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/edc203fc-44e5-4800-a3d6-e1962ffb1800%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: problems to make a javascript macro work

2015-12-04 Thread NT
I adapted the javascript for my purpose and it worked - partly.
When I call the javascript function with a string as parameter it works 
fine, when I call the javascript function with a wikitext variable the 
wikitext variable it not "solved" into it's "value".
I'll open a new issue for that.
Thank you all for your help so far!

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77c4b327-39fc-419a-90ca-4482dcad2e39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to resolve a (currentTiddler) variable when in use as a parameter for a js macro?

2015-12-04 Thread NT
What works:

1.

A "normal" macro

\define d1jpg(filename) 
[img[./path/$filename$.jpg]]
\end

called like this

<>

where "$(currentTiddler)$" is replaced by the title of the calling tiddler.

2.

A javascript macro 

/*\
title: $:/macros/mine/pathtype.js
type: application/javascript
module-type: macro
<>
Example:
<>
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: true */
"use strict";
exports.name = "pathtype";
exports.params = [
  { name: "filename" }
];
/*
Run the macro
*/
exports.run = function(filename) {
return filename;
};
})();


called with a "normal" string as parameter like this

<>

--

What's not working (or not working as expected / wanted):

A js macro like the above called with wikitext variable (currentTiddler) 
like

<>

because the variable is not resolved to it's value, but it's name treated 
as string.

--> Question: What to change either in the call or in the js-macro so that 
the currentTiddler variable is resolved to the title of the tiddler within 
the js function?
Thanks for your patience, I am still struggling with the wiki syntax.
Kind regards.




-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/143c155b-5999-4a96-8f18-c95009ddc94b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to resolve a (currentTiddler) variable when in use as a parameter for a js macro?

2015-12-04 Thread BJ
HI NT, try this:

 <$macrocall $name="pathtype" filename="<>"/>

all the best
BJ

On Friday, December 4, 2015 at 10:48:49 PM UTC, NT wrote:
>
> What works:
>
> 1.
>
> A "normal" macro
>
> \define d1jpg(filename) 
> [img[./path/$filename$.jpg]]
> \end
>
> called like this
>
> <>
>
> where "$(currentTiddler)$" is replaced by the title of the calling tiddler.
>
> 2.
>
> A javascript macro 
>
> /*\
> title: $:/macros/mine/pathtype.js
> type: application/javascript
> module-type: macro
> <>
> Example:
> <>
> \*/
> (function(){
> /*jslint node: true, browser: true */
> /*global $tw: true */
> "use strict";exports.name = "pathtype";
> exports.params = [
>   { name: "filename" }
> ];
> /*
> Run the macro
> */
> exports.run = function(filename) {
> return filename;
> };
> })();
>
>
> called with a "normal" string as parameter like this
>
> <>
>
> --
>
> What's not working (or not working as expected / wanted):
>
> A js macro like the above called with wikitext variable (currentTiddler) 
> like
>
> <>
>
> because the variable is not resolved to it's value, but it's name treated 
> as string.
>
> --> Question: What to change either in the call or in the js-macro so that 
> the currentTiddler variable is resolved to the title of the tiddler within 
> the js function?
> Thanks for your patience, I am still struggling with the wiki syntax.
> Kind regards.
>
>
>
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/943332ec-e84a-499a-898b-fd485d4f6418%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using a variable to extract a sentence from a DataTiddler

2015-12-04 Thread Matabele
Hi

This technique creates the TextReference as a string -- this reference 
still needs to be used to become wikified.

There's another method which may better suit your needs. The $transclude 
widget accepts a 'tiddler' attribute and an 'index' attribute:

<$transclude tiddler={{!!mydata}} index={{MySettings!!language}} 
mode="block"/>

-- may be used with a referenced variables, rather than a referenced fields:

<$transclude tiddler=<> index=<> mode="block"/>

regards


On Friday, 4 December 2015 21:57:18 UTC+2, ParisWiki wrote:
>
> Hi Matabele,
>
> I am still missing something.
> The first solution, as it is, gives nothing useful to me.
>
> The second proposal looks much more promising and gives {{Data1##fr}} if 
> the language chosen is French or {{Data1##zh}} for Chinese, after adding 
> the curly braces {{>}}.
>
> But it does not "resolve" the formula and certainly, as it is, does not 
> extract data from my data tiddler Data1.
>
> Did you try it and obtain the correct extraction? 
> What do I miss again ?
>
> regards
>
> Le vendredi 4 décembre 2015 18:18:46 UTC+1, Matabele a écrit :
>>
>> Hi
>>
>> Combine the two variables with a macro:
>>
>> \define sentence(data,language) $data$##$language$
>>
>> Then reference this value like this: <>
>>
>> or for variables (stored in a field), like this: <> {{!!language}}>>
>>
>> regards
>>
>>
>>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/abd1fabd-b528-46ba-8206-e707124a88f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Create sticky notes

2015-12-04 Thread Matabele

Hi

Your technique should work well. My idea was to store the state in a field 
of the currentTiddler -- thus a unique state would remain 'attached' to 
each tiddler. Would work for only one sticky note per tiddler though.

regards

On Friday, 4 December 2015 21:36:55 UTC+2, Micaela wrote:
>
> It works!! I fixed it using the qualify macro, so for each call is now 
> generating a unique state tiddler. 
>
> The updated wiki, with some instructions about how to use the sticky 
> notes, is here:
> http://stickynotes.tiddlyspot.com/
>
> All TW group - Feel free to use it and please let me know your feedback, 
> I'd really appreciate it!
>
> Thanks,
> M
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e993fd9b-926b-42df-b292-4b8d80971b48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TiddlyWiki Hangout #93 will be on Tuesday 8th December at 4pm GMT/UTC

2015-12-04 Thread Matabele
Hi Jeremy

Have you considered the ActionListopsWidget 
 for 5.1.10?

regards

On Friday, 4 December 2015 19:32:21 UTC+2, Jeremy Ruston wrote:
>
> TiddlyWiki Hangout #93 will be on Tuesday 8th December at 4pm GMT/UTC.
>
> Find out more and post questions:
>
> https://plus.google.com/events/ctvcat9o8l7l0rd72vpuvibbd20
>
> As usual, I’ve created a TiddlySpot for the agenda:
>
> http://hangout-93.tiddlyspot.com/
>
> I hope you can join me, and do please let me know if there are any topics 
> that you’d like to see covered,
>
> Best wishes
>
> Jeremy
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/118e2d66-651b-4b98-9a4f-bd43b3073b07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TiddlyWiki Hangout #92 is about to start

2015-12-04 Thread Matabele
Hi

'Versioning' of individual tiddlers -- an interesting idea not currently 
covered in TW5 -- would be useful for writing. Wondered if anyone has any 
ideas as to how this could be implemented?

regards

On Tuesday, 1 December 2015 18:05:35 UTC+2, Jeremy Ruston wrote:
>
> Apologies for the short notice, but TiddlyWiki Hangout #92 is starting 
> now..
>
> Watch or post questions at 
> https://plus.google.com/events/c1lqj4aa3vjub8fuec11jjsi5t4
>
> Or join in at 
> https://plus.google.com/hangouts/_/hoaevent/AP36tYf914vdoR99K3NaPHdKfW8S-k2XMLu-hHadsxsuvwJ5EKciCA
>
> Best wishes
>
> Jeremy.
>
> -- 
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0796ff99-a8aa-4dcb-aee0-c7e889300e1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: rendering abcjs music notation in tiddlywiki

2015-12-04 Thread BJ
Hi vpl,
I have put a widget together that could be used as a starting point:

http://abcmusic.tiddlyspot.com/

view it in ff (chrome won't load the lib from github)

Feel free to use this if you want to develop abc as a plugin, if you don't 
then maybe I will push it forward a bit more.

cheers
BJ

On Friday, December 4, 2015 at 9:10:11 AM UTC, vpl wrote:
>
> Hi,
>
> I'm trying to render abcjs music notation in tiddlywiki
> Bopland.org is closed now and Vexflow licensing model is not adapted.
> abcjs (http://abcjs.net/) looks very interesting and maintained.
>
> Looking at other thread I understand that 
>  - I have to create a tiddler containing the abcjs_basic_latest-min.js 
> content (available here 
> https://raw.githubusercontent.com/paulrosen/abcjs/master/bin/abcjs_basic_2.2-min.js
> )
>  - tag it with systemConfig
>
> Then I block as I don't understand how to render the music content using 
> abcjs
>
> I've tested on a html page the following code and it works
>
> 
> 
> 
> 
> abcjs basic demo
> 
> 
> 
> abcjs basic demo page
> 
>
> 
> var chorus = '%%staffwidth 500\nX: 1\nT: Chorus\nV: T1 clef=treble 
> name="Soprano"\nV: T2 clef=treble name="Alto"\nV: B1 clef=bass 
> name="Tenor"\nV: B2 clef=bass name="Bass"\nL:1/8\nK:G\nP:First Part\n[V: 
> T1]"C"ed"Am"ed "F"cd"G7"gf |\n[V: T2]GGAA- A2BB |\n[V: B1]C3D- DF,3 |\n[V: 
> B2]C,2A,,2 F,,2G,,2 |';
> 
>
> 
> 
> ABCJS.renderAbc('notation', chorus);
> 
> 
>
> 
> 
>
>
> As you see, abcjs renders the content using ABCJS.renderAbc(). 
> But we have to pass to this method a string content (in our case a 
> javascript variable) representing the music I want to render.
>
>
> Could somebody help me here, 
> I'm block on tiddly and need an expert to unlock me ..
>
> With regards
>
> Vpl
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c5da2d74-1784-451e-a7b9-598d1ce59141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Create sticky notes

2015-12-04 Thread Micaela
It works!! I fixed it using the qualify macro, so for each call is now 
generating a unique state tiddler. 

The updated wiki, with some instructions about how to use the sticky notes, 
is here:
http://stickynotes.tiddlyspot.com/

All TW group - Feel free to use it and please let me know your feedback, 
I'd really appreciate it!

Thanks,
M

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a7f48eca-344f-4ff2-ba4d-39afff443539%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.