[tw5] Re: ApexCharts plugin released

2023-09-03 Thread andrewg_oz
Thanks. My understanding is that some people don't like the talk site and 
that messages here are copied there too.

I'll start another thread over there, but before I go:

I've just updated my wiki with a plugin for Chart.js!

On Sunday, 3 September 2023 at 12:29:45 am UTC+8 Ste wrote:

> Thats awsome. Thanks for sharing. You should get more feedback posting to 
> https://talk.tiddlywiki.org
> Which is where people are active. 
> On Friday, 1 September 2023 at 14:52:05 UTC+1 andrewg_oz wrote:
>
>> Hi all,
>>
>> For a while now I've been working on a plugin to integrate the ApexCharts 
>> <https://apexcharts.com/> charting library with TiddlyWiki.
>>
>> With help and advice from others - thank you - I've now got it working 
>> nicely and integrating quite well with TiddlyWiki functions like action 
>> widgets.
>>
>> Chart data can be built from tiddler fields using standard TiddlyWiki 
>> widgets such as the ListWidget.
>>
>> My plugin can be found on my TiddlyWiki:
>>
>> http://www.scss.com.au/family/andrew/tiddlywiki/
>>
>> I hope this is useful.
>>
>> Cheers,
>> Andrew
>>
>

-- 
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/88a82283-6b22-4e01-8cda-51632876975cn%40googlegroups.com.


[tw5] ApexCharts plugin released

2023-09-01 Thread andrewg_oz
Hi all,

For a while now I've been working on a plugin to integrate the ApexCharts 
 charting library with TiddlyWiki.

With help and advice from others - thank you - I've now got it working 
nicely and integrating quite well with TiddlyWiki functions like action 
widgets.

Chart data can be built from tiddler fields using standard TiddlyWiki 
widgets such as the ListWidget.

My plugin can be found on my TiddlyWiki:

http://www.scss.com.au/family/andrew/tiddlywiki/

I hope this is useful.

Cheers,
Andrew

-- 
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/811c83af-39da-4549-80b2-f07a50b4894bn%40googlegroups.com.


[tw5] Re: Tiddlywiki 5.3.0 failed to start after upgrade

2023-07-18 Thread andrewg_oz
Just an FYI, but I use a different viz plugin and it is working fine with 
5.3.0:

https://github.com/chanilino/tw5viz

Cheers,
Andrew

On Wednesday, 19 July 2023 at 7:06:52 am UTC+8 PMario wrote:

> On Tuesday, July 18, 2023 at 11:34:35 AM UTC+2 Samir S. wrote:
>
> tiddlywiki[21557]: Error executing boot module 
> $:/plugins/felixhayashi/vis/vis.js: "Global assignment is not allowed 
> within modules on node."
>
>
> Hi Samir,
> Sadly that's a known issue, where v5.3.0 is overly strict with loading 
> plugins. 
>
> There is an open issue at GitHub 
> https://github.com/Jermolene/TiddlyWiki5/issues/7585 
>
> It seems you will need to wait for v5.3.1 which will probably be needed 
> sooner than later
>
> So you should stay with your existing version for the time being. 
> -mario
>
>
>

-- 
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/bf1b849f-32c9-45c8-a8dc-c9ee8654b051n%40googlegroups.com.


Re: [tw5] Re: Google Charts in TiddlyWiki

2022-07-17 Thread andrewg_oz
I've just uploaded an updated wiki. No further changes to the macro or 
parser, but a couple of new demo tiddlers under the renamed "Advanced 
Examples" tab:

"Data In Field": where the data is stored in a tiddler field
"Macro Generated Data": where the data is generated by a macro (a pie chart 
of how many of my examples are 'basic' and how many are 'advanced')

Cheers,
Andrew
On Monday, 18 July 2022 at 1:42:57 am UTC+8 arunn...@gmail.com wrote:

> Hi Springer
>
> That's because of some incompatibility between Krystal and multicolumn 
> plug in...I have set up this wiki just for demo purpose - each demo I have 
> made into a seperate story using ensemble feature of multicolumn plug in 
> (which include the use of Krystal along with multicolumn plug in) - each 
> demo can be accessed via the topbar or ensemble tiddler. You can just 
> ignore the error message for the time being. I have raised a GitHub issue 
> regarding this in Krystal GitHub repo. But the creator haven't responded 
> yet. Error message will disappear if Krystal plug in is disabled.
>
> Arun  
>
> On Sun, 17 Jul 2022, 22:58 springer,  wrote:
>
>> Alas, I'm getting a red error box on load:
>>
>> [image: red error budget.jpg]
>>
>> On Saturday, July 16, 2022 at 5:06:38 PM UTC-4 arunn...@gmail.com wrote:
>>
>>> Thanks Charlie. I need a similar chart for my budget wiki. 
>>> <https://multicolumn-krystal.tiddlyhost.com/> Will ask for your help, 
>>> once I have a solid idea about the implementation.
>>>
>>> On Sunday, July 17, 2022 at 12:28:59 AM UTC+5:30 cj.v...@gmail.com 
>>> wrote:
>>>
>>>> G'day Arun,
>>>>
>>>> I have not looked at how Andrew has set things up, but I did look at 
>>>> the data source for his pie chart.
>>>>
>>>> You should be able to do something similar to what I have done with my 
>>>> project (i.e. provide a data tiddler that dynamically puts together the 
>>>> data), a bit like in these screenshots from my project:
>>>>
>>>> [image: Screenshot 2022-07-16 3.54.09 PM.png]
>>>> [image: Screenshot 2022-07-16 3.54.27 PM.png]
>>>>
>>>> [image: Screenshot 2022-07-16 3.54.56 PM.png]
>>>> On Friday, July 15, 2022 at 6:03:03 PM UTC-3 arunn...@gmail.com wrote:
>>>>
>>>>> Hi Andrew,
>>>>>
>>>>> This looks interesting. Is there a way to extract the tiddler field 
>>>>> values for charts instead of manually typing the data .
>>>>>
>>>>> Thanks,
>>>>> Arun
>>>>> On Saturday, July 9, 2022 at 12:52:54 PM UTC+5:30 andrewg_oz wrote:
>>>>>
>>>>>> Hi Springer,
>>>>>>
>>>>>> Dropbox was working, but it was because I was logged in. Logging out 
>>>>>> just shows code for me too. I shouldn't have been so lazy to not use my 
>>>>>> own 
>>>>>> hosting (it's just been a while since I used it):
>>>>>>
>>>>>> http://www.scss.com.au/family/andrew/tiddlywiki/GoogleCharts.html
>>>>>>
>>>>>> Now with more examples of selection handling and data transclusion!
>>>>>>
>>>>>> On Monday, 4 July 2022 at 12:05:03 am UTC+8 springer wrote:
>>>>>>
>>>>>>> Andrew,
>>>>>>>
>>>>>>> This is quite beautiful! I haven't tried to work with it, but I can 
>>>>>>> imagine many uses for such graphs. Thanks for taking the time to set up 
>>>>>>> a 
>>>>>>> sample site with so many examples!
>>>>>>>
>>>>>>> If you have a tiddlyhost account, might you post a version there, so 
>>>>>>> that this thread can offer a pointer that doesn't require a download? 
>>>>>>> (Your 
>>>>>>> wording suggests you expected the graphs could be "quickly seen" 
>>>>>>> without 
>>>>>>> downloading, but the dropbox link just yields the html file.)
>>>>>>>
>>>>>>> -Springer
>>>>>>> On Saturday, July 2, 2022 at 5:51:52 AM UTC-4 andrewg_oz wrote:
>>>>>>>
>>>>>>>> I recently needed some way to get a line graph in one of my 
>>>>>>>> TiddlyWikis. I found a plugin, but it didn't do a very good job. I 
>>>>>>>> thought 
>>>>>

[tw5] Re: Google Charts in TiddlyWiki

2022-07-17 Thread andrewg_oz
I've just uploaded some updates for a couple of things:

1. There is a parser that can render tiddlers containing the JavaScript 
data arrays like WikiText tables. Just a cosmetic thing.
2. I've made the macro support data tables entered as WikiText tables. This 
breaks when fancy JavaScript things are required, but is good for simple 
data.

My goals for this project were two-fold:

1. An embedded system I've been developing produces data viewable using the 
Timeline chart type and I wanted to include examples of that chart in my 
TiddlyWiki that is documenting the project.
2. For  my own amusement I wanted to plot a line chart of my firmware size 
over time.
3. Since developing my macro I've been considering creating a Timeline 
chart of firmware releases with clickable items going to the corresponding 
release notes that are already in the TiddlyWiki.

It seems that some people are wanting to dynamically analyse their 
TiddlyWiki and visualise aspects of it? I don't know if this helps, but the 
following worked to have data produced in a macro:

\define test()
['Year','Sales','Expenses'],['2004',1000,400],['2005',1170,460],['2006',660,1120],['2007',1030,540],
\end
<>' title:'Company Data' chart:'AreaChart' 
options:"hAxis:{title:'Year',titleTextStyle:{color:'#333'}},vAxis:{XminValue:0}">>

And if the tiddler has a field called "chartdata" with the value 
"['Year','Sales','Expenses'],['2004',1000,400],['2005',1170,460],['2006',660,1120],['2007',1030,540],",
 
then the following also works:

<>

Cheers,
Andrew

On Sunday, 17 July 2022 at 5:28:16 am UTC+8 cj.v...@gmail.com wrote:

> Well, Andrew has taken my initial prototype  (related discussion linked in 
> Andrew's OP)  further along.
>
> He's done some good stuff there, but organized differently than the 
> direction I was heading.
>
> I'll make suggestions as best I can, but some could require 
> changes/additions Andrew or somebody else needs to make.
>
> On Saturday, July 16, 2022 at 6:06:38 PM UTC-3 arunn...@gmail.com wrote:
>
>> Thanks Charlie. I need a similar chart for my budget wiki. 
>> <https://multicolumn-krystal.tiddlyhost.com/> Will ask for your help, 
>> once I have a solid idea about the implementation.
>>
>> On Sunday, July 17, 2022 at 12:28:59 AM UTC+5:30 cj.v...@gmail.com wrote:
>>
>>> G'day Arun,
>>>
>>> I have not looked at how Andrew has set things up, but I did look at the 
>>> data source for his pie chart.
>>>
>>> You should be able to do something similar to what I have done with my 
>>> project (i.e. provide a data tiddler that dynamically puts together the 
>>> data), a bit like in these screenshots from my project:
>>>
>>> [image: Screenshot 2022-07-16 3.54.09 PM.png]
>>> [image: Screenshot 2022-07-16 3.54.27 PM.png]
>>>
>>> [image: Screenshot 2022-07-16 3.54.56 PM.png]
>>> On Friday, July 15, 2022 at 6:03:03 PM UTC-3 arunn...@gmail.com wrote:
>>>
>>>> Hi Andrew,
>>>>
>>>> This looks interesting. Is there a way to extract the tiddler field 
>>>> values for charts instead of manually typing the data .
>>>>
>>>> Thanks,
>>>> Arun
>>>> On Saturday, July 9, 2022 at 12:52:54 PM UTC+5:30 andrewg_oz wrote:
>>>>
>>>>> Hi Springer,
>>>>>
>>>>> Dropbox was working, but it was because I was logged in. Logging out 
>>>>> just shows code for me too. I shouldn't have been so lazy to not use my 
>>>>> own 
>>>>> hosting (it's just been a while since I used it):
>>>>>
>>>>> http://www.scss.com.au/family/andrew/tiddlywiki/GoogleCharts.html
>>>>>
>>>>> Now with more examples of selection handling and data transclusion!
>>>>>
>>>>> On Monday, 4 July 2022 at 12:05:03 am UTC+8 springer wrote:
>>>>>
>>>>>> Andrew,
>>>>>>
>>>>>> This is quite beautiful! I haven't tried to work with it, but I can 
>>>>>> imagine many uses for such graphs. Thanks for taking the time to set up 
>>>>>> a 
>>>>>> sample site with so many examples!
>>>>>>
>>>>>> If you have a tiddlyhost account, might you post a version there, so 
>>>>>> that this thread can offer a pointer that doesn't require a download? 
>>>>>> (Your 
>>>>>> wording suggests you expected the graphs could be "quickly seen" without 
>>>>>> downloading, but the dropbox link just yields the html file.)
>>>

[tw5] Re: Javascript to open tiddler

2022-07-10 Thread andrewg_oz
That's done the trick! Thanks.

Now in action (see "Selection Example"):

http://www.scss.com.au/family/andrew/tiddlywiki/GoogleCharts.html


On Sunday, 10 July 2022 at 10:01:50 pm UTC+8 saq.i...@gmail.com wrote:

> Assuming you want to open the tiddler in the default story river, try this:
>
> let actions='<$navigator story="$:/StoryList" history="$:/HistoryList">
> <$action-navigate $to="TiddlerNameHere"/>
> 
> '
> window.parent.$tw.rootWidget.invokeActionString(actions,this)
>
> On Sunday, July 10, 2022 at 3:29:53 PM UTC+2 andrewg_oz wrote:
>
>> Thanks for your suggestions. Unfortunately, I left out some important 
>> details in my OP and so I'm still trying things.
>>
>> The Google Charts are generated in an iframe, which is where the 
>> selection handler is. It means the handler is not in the context of the 
>> widget/macro, so 'this' isn't meaningful.
>>
>> I can access 'window.parent.$tw' and I've seen code fragments that make 
>> it look like I should be able to do the following:
>>
>> window.parent.$tw.rootWidget.dispatchEvent( { type:'tm-navigate', 
>> navigateTo: 'Tiddler Name Here' } );
>>
>> Nothing happens.
>>
>> I've tried a couple of other event properties too: setting 'param' the 
>> same as 'navigateTo', and setting 'navigateFromTitle' to the name of the 
>> tiddler hosting the macro call. Nothing for those either. Not even error 
>> messages in the console.
>>
>> Thanks again for your help. Hoping you or anyone else might have some new 
>> ideas...
>>
>> On Sunday, 10 July 2022 at 2:13:06 am UTC+8 BJ wrote:
>>
>>> or maybe
>>> this.dispatchEvent({type: "tm-navigate", navigateTo:tids[i]});
>>>
>>>
>>> On Saturday, July 9, 2022 at 4:12:28 PM UTC+2 BJ wrote:
>>>
>>>> from within a widget/macro use
>>>>
>>>> this.caller.dispatchEvent({type: "tm-navigate", navigateTo:tids[i]});
>>>>
>>>> On Saturday, July 9, 2022 at 9:30:01 AM UTC+2 andrewg_oz wrote:
>>>>
>>>>> I've recently been experimenting with using Google Charts in 
>>>>> TiddlyWiki. It's going quite well (see my other thread), but I can't work 
>>>>> out how to open a tiddler in javascript (i.e. the Google Chart selection 
>>>>> handler) without using window.location = '#' + tiddlerNameHere;
>>>>>
>>>>> That works, but sets the address bar and looks ugly. I'm sure there's 
>>>>> a better way.
>>>>>
>>>>> Can anyone 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6ed8f6ad-2dab-42b8-972d-bc89fceb5bb1n%40googlegroups.com.


[tw5] Re: Javascript to open tiddler

2022-07-10 Thread andrewg_oz
Thanks for your suggestions. Unfortunately, I left out some important 
details in my OP and so I'm still trying things.

The Google Charts are generated in an iframe, which is where the selection 
handler is. It means the handler is not in the context of the widget/macro, 
so 'this' isn't meaningful.

I can access 'window.parent.$tw' and I've seen code fragments that make it 
look like I should be able to do the following:

window.parent.$tw.rootWidget.dispatchEvent( { type:'tm-navigate', 
navigateTo: 'Tiddler Name Here' } );

Nothing happens.

I've tried a couple of other event properties too: setting 'param' the same 
as 'navigateTo', and setting 'navigateFromTitle' to the name of the tiddler 
hosting the macro call. Nothing for those either. Not even error messages 
in the console.

Thanks again for your help. Hoping you or anyone else might have some new 
ideas...

On Sunday, 10 July 2022 at 2:13:06 am UTC+8 BJ wrote:

> or maybe
> this.dispatchEvent({type: "tm-navigate", navigateTo:tids[i]});
>
>
> On Saturday, July 9, 2022 at 4:12:28 PM UTC+2 BJ wrote:
>
>> from within a widget/macro use
>>
>> this.caller.dispatchEvent({type: "tm-navigate", navigateTo:tids[i]});
>>
>> On Saturday, July 9, 2022 at 9:30:01 AM UTC+2 andrewg_oz wrote:
>>
>>> I've recently been experimenting with using Google Charts in TiddlyWiki. 
>>> It's going quite well (see my other thread), but I can't work out how to 
>>> open a tiddler in javascript (i.e. the Google Chart selection handler) 
>>> without using window.location = '#' + tiddlerNameHere;
>>>
>>> That works, but sets the address bar and looks ugly. I'm sure there's a 
>>> better way.
>>>
>>> Can anyone 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f1379948-0c2c-4b96-a4be-798bd2205b9bn%40googlegroups.com.


[tw5] Javascript to open tiddler

2022-07-09 Thread andrewg_oz
I've recently been experimenting with using Google Charts in TiddlyWiki. 
It's going quite well (see my other thread), but I can't work out how to 
open a tiddler in javascript (i.e. the Google Chart selection handler) 
without using window.location = '#' + tiddlerNameHere;

That works, but sets the address bar and looks ugly. I'm sure there's a 
better way.

Can anyone 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fe9c3ee6-764e-4179-b742-6f46dcd71a35n%40googlegroups.com.


[tw5] Re: Google Charts in TiddlyWiki

2022-07-09 Thread andrewg_oz
Hi Springer,

Dropbox was working, but it was because I was logged in. Logging out just 
shows code for me too. I shouldn't have been so lazy to not use my own 
hosting (it's just been a while since I used it):

http://www.scss.com.au/family/andrew/tiddlywiki/GoogleCharts.html

Now with more examples of selection handling and data transclusion!

On Monday, 4 July 2022 at 12:05:03 am UTC+8 springer wrote:

> Andrew,
>
> This is quite beautiful! I haven't tried to work with it, but I can 
> imagine many uses for such graphs. Thanks for taking the time to set up a 
> sample site with so many examples!
>
> If you have a tiddlyhost account, might you post a version there, so that 
> this thread can offer a pointer that doesn't require a download? (Your 
> wording suggests you expected the graphs could be "quickly seen" without 
> downloading, but the dropbox link just yields the html file.)
>
> -Springer
> On Saturday, July 2, 2022 at 5:51:52 AM UTC-4 andrewg_oz wrote:
>
>> I recently needed some way to get a line graph in one of my TiddlyWikis. 
>> I found a plugin, but it didn't do a very good job. I thought it might be 
>> possible to use Google Charts, but I had no idea how I might go about doing 
>> that.
>>
>> A bit of searching located this post from last year:
>>
>> https://groups.google.com/g/tiddlywiki/c/kyfKmMGpZiQ/m/TeQNhDTNBQAJ
>>
>> This works, but has a lot of hard-coded stuff. I wanted something more 
>> flexible.
>>
>> Using that post as the starting point, I've come up with a single macro 
>> that uses separate tiddlers to hold the chart data. I have an example 
>> TiddlyWiki on my Dropbox:
>>
>> https://www.dropbox.com/s/px91n007zzdp8df/GoogleCharts.html?dl=0
>>
>> All the magic is in the "GoogleChart" macro.
>>
>> You can quickly see the demo charts, but it will need to be downloaded to 
>> see 'behind the scenes'.
>>
>> I got this far mostly by trying random tiddlywiki syntax until things 
>> worked. I'm not familiar with macros at all. I'd welcome any feedback on 
>> how I've done things.
>>
>> Apart from that - do whatever you like with it!
>>
>> Cheers,
>> Andrew
>>
>

-- 
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/59fff918-4da0-4fdf-b26c-92311ece4727n%40googlegroups.com.


[tw5] Google Charts in TiddlyWiki

2022-07-02 Thread andrewg_oz
I recently needed some way to get a line graph in one of my TiddlyWikis. I 
found a plugin, but it didn't do a very good job. I thought it might be 
possible to use Google Charts, but I had no idea how I might go about doing 
that.

A bit of searching located this post from last year:

https://groups.google.com/g/tiddlywiki/c/kyfKmMGpZiQ/m/TeQNhDTNBQAJ

This works, but has a lot of hard-coded stuff. I wanted something more 
flexible.

Using that post as the starting point, I've come up with a single macro 
that uses separate tiddlers to hold the chart data. I have an example 
TiddlyWiki on my Dropbox:

https://www.dropbox.com/s/px91n007zzdp8df/GoogleCharts.html?dl=0

All the magic is in the "GoogleChart" macro.

You can quickly see the demo charts, but it will need to be downloaded to 
see 'behind the scenes'.

I got this far mostly by trying random tiddlywiki syntax until things 
worked. I'm not familiar with macros at all. I'd welcome any feedback on 
how I've done things.

Apart from that - do whatever you like with it!

Cheers,
Andrew

-- 
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/b305a063-bd79-489d-9948-f937c27228c3n%40googlegroups.com.


[tw5] Re: MathML (MathJax) Support

2020-01-01 Thread andrewg_oz
Thanks, but I was just sharing my solution to getting the MathJax plugin 
working with the latest TiddlyWiki. In any case, that TeXZilla plugin 
doesn't work with Chrome.

IMO, one of the most important parts of wikis is the simplified markup and 
anything LaTeX related seems to me to be doing the opposite.

I'm not using MathJax so much for its MathML support, I'm using it for its 
AsciiMath support - specifically, the markup syntax. If there was some sort 
of "AsciiMath" to HTML/CSS or SVG renderer that would be ideal.

The online requirement for the MathJax plugin is a negative, but when I'm 
using my TiddlyWiki I'm never offline.

My web-dev skills are years old, but I might have a look sometime to see 
how hard an offline MathJax would be to set up.

-- 
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/580e5fd1-5e18-4f76-b40f-817e3fa417f5%40googlegroups.com.


[tw5] MathML (MathJax) Support

2019-12-27 Thread andrewg_oz
I recently needed to do mathematical equations in my TiddlyWiki. The 
"MathJax" tiddler on the TiddlyWiki main site took me 
to http://mathjax-tw5.kantorsite.net/ where I found a plugin, but it did 
not work. It's easy to fix, and I thought I'd write up what I did in case 
it helps anyone else. I've already passed on these comments to the author 
(Martin).

The most important fix is to correct the class name the plugin searches 
for. Edit the plugin and change "story-river" to "tc-story-river".

The second fix is to change the CDN URL from the deprecated 
http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML 
to the preferred 
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS-MML_HTMLorMML.

The final fix is to change the config from "TeX-AMS-MML_HTMLorMML" to "
TeX-MML-AM_HTMLorMML". That enables the use of AsciiMath, which I feel is a 
much better fit for a wiki environment than either MathML or TeX (both of 
which can still be used). That also required editing the Config structure: 
Delete 
“['$','$'],” from the tex2jax delimiters, then add 
“{asciimath2jax:{delimiters:[['$','$']]}},”. The relevant portion of my 
plugin now looks like: "
MathJax.Hub.Config({asciimath2jax:{delimiters:[['$','$']]}},{tex2jax:{inlineMath:[['(',')']]}})}
".

I hope this help anyone else trying to get MathML or AsciiMath working in 
their 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/fa89ac70-1079-467c-84b3-f23f7a534f00%40googlegroups.com.


Re: [tw5] TiddlyIE broken in 5.1.19?

2019-03-31 Thread andrewg_oz
Hi Jeremy,

I loaded my 5.1.13 and tested "window.TiddlyIE" in the console. I got 
"[object] { }". Then I tried the same using a freshly-downloaded empty 
5.1.19 and got the same "[object] { }".

However, if I disable the add-on, then "window.TiddlyIE" becomes 
"undefined". It might simply be disabled for you.

I've been able to set a breakpoint in both 5.1.13 and 5.1.19 at the line in 
"tiddlyie.js" that is "window.TiddlyIE.save(pathname, text);" (i.e. the 
point where the error occurs) to see what pathname and text looked like. 
They looked OK in both cases, but it appears the text must be processed by 
the save function quite a bit (backslash processing at least), and 5.1.13 
and 5.1.19 are radically different and trying to compare the two wasn't 
practical.

Are the empty.html files of previous versions archived anywhere?

Regards,
Andrew Gregory


On Friday, 29 March 2019 17:38:47 UTC+8, Jeremy Ruston wrote:
>
> Hi Andrew
>
> I’m not aware of any problems with TiddlyIE, but equally I’ve no idea how 
> many people are using it these days. If it is broken in v5.1.19 then I 
> think it must be a bug.
>
> I tried installing TiddlyIE in a Windows 10 virtual machine but I found 
> that it doesn’t appear to be visible to TiddlyWiki. In particular, if I 
> open a local TiddlyWiki HTML file and open the browser developer console 
> with F12, and then type “window.TiddlyIE” in the JavaScript console the 
> result is “undefined”.
>
> It would be interesting to see if the same is true with your 5.1.13 wiki; 
> could you try?
>
> Many thanks,
>
> Jeremy
>
>
>
>
> On 29 Mar 2019, at 09:16, andrewg_oz > 
> wrote:
>
> Hi,
>
> I can't save using TiddlyIE after upgrading from 5.1.13 to 5.1.19.
>
> The upgrade appears to be successful. After closing and opening the 
> upgraded TW, I click save - and get an immediate "Internal JavaScript 
> Error, The data is invalid." The "Save As" dialog is not shown.
>
> Call stack shows:
> Error
>at TiddlyIESaver.prototype.save (eval code:40:3)
>at SaverHandler.prototype.saveWiki (eval code:175:3)
>at Anonymous function (eval code:91:4)
>at eventListeners[type] (eval code:399:4)
>at Widget.prototype.dispatchEvent (eval code:412:3)
>at Widget.prototype.dispatchEvent (eval code:418:3)
>at Widget.prototype.dispatchEvent (eval code:418:3)
>at Widget.prototype.dispatchEvent (eval code:418:3)
>at Widget.prototype.dispatchEvent (eval code:418:3)
>at Widget.prototype.dispatchEvent (eval code:418:3)"
>
> Line 40 looks like "window.TiddlyIE.save(pathname, text);"
>
> Everything else seems fine except that the contents of text boxes (e.g. 
> when editing tiddlers, the ControlPanel field where you enter Default 
> tiddlers, etc) are unstyled.
>
> I've tried the upgrade using both IE and Chrome - saving the resulting TW 
> with IE is the same regardless.
>
> TiddlyIE also can't save the plain "empty" TW downloaded from the website, 
> so that eliminates anything funny in my TW.
>
> Is this just me, or is TiddlyIE broken for anyone else? I have no real 
> reason to upgrade apart from that being a good idea in general, so I'm 
> happy with 5.1.13 for now.
>
> Cheers,
> Andrew
>
> -- 
> 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 tiddl...@googlegroups.com .
> To post to this group, send email to tiddl...@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/12178c7e-9cb0-487f-ba10-a8d447378199%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/12178c7e-9cb0-487f-ba10-a8d447378199%40googlegroups.com?utm_medium=email_source=footer>
> .
> 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/0a64daca-a3e0-4c1d-b981-c3dcc0a8d1b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] TiddlyIE broken in 5.1.19?

2019-03-29 Thread andrewg_oz
Hi,

I can't save using TiddlyIE after upgrading from 5.1.13 to 5.1.19.

The upgrade appears to be successful. After closing and opening the 
upgraded TW, I click save - and get an immediate "Internal JavaScript 
Error, The data is invalid." The "Save As" dialog is not shown.

Call stack shows:
Error
   at TiddlyIESaver.prototype.save (eval code:40:3)
   at SaverHandler.prototype.saveWiki (eval code:175:3)
   at Anonymous function (eval code:91:4)
   at eventListeners[type] (eval code:399:4)
   at Widget.prototype.dispatchEvent (eval code:412:3)
   at Widget.prototype.dispatchEvent (eval code:418:3)
   at Widget.prototype.dispatchEvent (eval code:418:3)
   at Widget.prototype.dispatchEvent (eval code:418:3)
   at Widget.prototype.dispatchEvent (eval code:418:3)
   at Widget.prototype.dispatchEvent (eval code:418:3)"

Line 40 looks like "window.TiddlyIE.save(pathname, text);"

Everything else seems fine except that the contents of text boxes (e.g. 
when editing tiddlers, the ControlPanel field where you enter Default 
tiddlers, etc) are unstyled.

I've tried the upgrade using both IE and Chrome - saving the resulting TW 
with IE is the same regardless.

TiddlyIE also can't save the plain "empty" TW downloaded from the website, 
so that eliminates anything funny in my TW.

Is this just me, or is TiddlyIE broken for anyone else? I have no real 
reason to upgrade apart from that being a good idea in general, so I'm 
happy with 5.1.13 for now.

Cheers,
Andrew

-- 
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/12178c7e-9cb0-487f-ba10-a8d447378199%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.