Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-22 Thread BJ


On Thursday, May 21, 2015 at 11:23:33 PM UTC+1, Danielo Rodríguez wrote:
>
>
>
> El jueves, 21 de mayo de 2015, 13:37:24 (UTC+2), BJ escribió:
>>
>> seems to work
>
>
> What seems to work? 
>


   1. copy core to plugins/bj/corenew
   2. in plugin.info set "plugin-type" to "plugin-browser"
   3. have a maco  to change corenew "plugin-type" to "plugin"
   exports.name = "changecore"; exports.params = [ ]; /* Run the macro */ 
   exports.run = function() { var tiddler = 
   $tw.wiki.getTiddler("$:/plugins/bj/corenew"), updateFields = { title: 
   "$:/plugins/bj/corenew" }; updateFields["plugin-type"] = "plugin"; 
   $tw.wiki.addTiddler(new 
   
$tw.Tiddler($tw.wiki.getCreationFields(),tiddler,updateFields,$tw.wiki.getModificationFields()))
 
   } })(); 
   4. have a template to remove core and call macro 
   \define saveTiddlerFilter() [is[tiddler]] -[prefix[$:/state/popup/]] 
   -[[$:/HistoryList]] -[[$:/boot/boot.css]] 
   -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] 
   -[[$:/boot/bootprefix.js]] +[sort[title]] -[[$:/core]] \end <> 
   {{$:/core/templates/tiddlywiki5.html}} 
   5. build using this new macro from nodejs
   
 cheers
BJ

-- 
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/52707249-975d-4c01-b35b-9ca732d98490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-21 Thread Danielo Rodríguez


El jueves, 21 de mayo de 2015, 13:37:24 (UTC+2), BJ escribió:
>
> seems to work


What seems to work? 

-- 
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/e893113e-1fd3-44a4-baa5-c69bf71d032c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-21 Thread BJ
seems to work

On Wednesday, May 20, 2015 at 8:54:51 AM UTC+1, BJ wrote:
>
>
>
> On Tuesday, May 19, 2015 at 9:51:28 PM UTC+1, Danielo Rodríguez wrote:
>>
>> Hello BJ, 
>>
>> What is the purpose of such feature?
>
>
> Hi Danielo,
> like you I want to produce variations of the core plugin. At the moment 
> when building the tiddlywiki the boot.js unpacks all plugins into the 
> node.js tiddlywiki - there is no way to specify that a plugin is for the 
> browser only. So if I have a plugin called core-min which contains modified 
> javascript of the core  - it will be unpacked by the bootloader into the 
> node.js version of tiddlywiki and break it.
>
> Maybe a way to separate out the core-min is to set its plugin-type" to 
> "plugin-browser" in its plugin.info file. - this will stop the boot.js 
> from unpacking it. Then have a template $:/core/save/all-coremin that will 
> act like the template $:/core/save/all but will exclude the core and change 
> the plugin-type of core-min to "plugin".
> Thre may also need to be a modified version of  
> "$:/core/templates/tiddlywiki5.html" - I don't know yet
>
> Note that I have not tried this yet.
>
> cheers
>
> BJ
>

-- 
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/4333aa5c-aa84-4877-94d4-888df73e87bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-20 Thread BJ


On Tuesday, May 19, 2015 at 9:51:28 PM UTC+1, Danielo Rodríguez wrote:
>
> Hello BJ, 
>
> What is the purpose of such feature?


Hi Danielo,
like you I want to produce variations of the core plugin. At the moment 
when building the tiddlywiki the boot.js unpacks all plugins into the 
node.js tiddlywiki - there is no way to specify that a plugin is for the 
browser only. So if I have a plugin called core-min which contains modified 
javascript of the core  - it will be unpacked by the bootloader into the 
node.js version of tiddlywiki and break it.

Maybe a way to separate out the core-min is to set its plugin-type" to 
"plugin-browser" in its plugin.info file. - this will stop the boot.js from 
unpacking it. Then have a template $:/core/save/all-coremin that will act 
like the template $:/core/save/all but will exclude the core and change the 
plugin-type of core-min to "plugin".
Thre may also need to be a modified version of  
"$:/core/templates/tiddlywiki5.html" - I don't know yet

Note that I have not tried this yet.

cheers

BJ

-- 
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/39d4a42a-487f-42f0-a94b-e09074ef379e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-19 Thread Danielo Rodríguez
Hello BJ, 

What is the purpose of such feature?

-- 
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/b3737a9f-4d91-4357-b96c-b2aa99e49e64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-19 Thread Jeremy Ruston
Hi BJ

On Tue, May 19, 2015 at 2:10 PM, BJ  wrote:

> Is it possible to may changes that would only take effect in the browser -
> ie make an alternative core plugin that only would only be unpacked in the
> browser?
>

I'd been thinking of achieving that via this ticket:

https://github.com/Jermolene/TiddlyWiki5/issues/970

Otherwise, I think some hacked templates would probably do the trick.

Best wishes

Jeremy.



> cheer
> BJ
>
>
> On Tuesday, May 19, 2015 at 10:13:44 AM UTC+1, Jeremy Ruston wrote:
>
>> Hi Danielo
>>
>>>
>>> Hello Jeremy, if you include the tiddlywiki.files will it take
>>> precedence over the normal flow? So the files not listed will not be
>>> included?
>>>
>>
>> That's correct, yes. See the docs here:
>>
>> http://tiddlywiki.com/#TiddlyWikiFolders
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:jeremy...@gmail.com
>>
>


-- 
Jeremy Ruston
mailto:jeremy.rus...@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/CAPKKYJaFN-Ljcp%3DusQZN0S5eL9ThymDdZdjsi4XE9SDRm8kLQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-19 Thread BJ
Is it possible to may changes that would only take effect in the browser - 
ie make an alternative core plugin that only would only be unpacked in the 
browser?
cheer
BJ

On Tuesday, May 19, 2015 at 10:13:44 AM UTC+1, Jeremy Ruston wrote:
>
> Hi Danielo
>
>>
>> Hello Jeremy, if you include the tiddlywiki.files will it take precedence 
>> over the normal flow? So the files not listed will not be included?
>>
>
> That's correct, yes. See the docs here:
>
> http://tiddlywiki.com/#TiddlyWikiFolders
>
> 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/19817308-269b-4e1a-8be8-5e27a98d4a2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-19 Thread Jeremy Ruston
Hi Danielo

>
> Hello Jeremy, if you include the tiddlywiki.files will it take precedence
> over the normal flow? So the files not listed will not be included?
>

That's correct, yes. See the docs here:

http://tiddlywiki.com/#TiddlyWikiFolders

Best wishes

Jeremy.





-- 
Jeremy Ruston
mailto:jeremy.rus...@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/CAPKKYJYY_auDBy_exK35puioiZdOE3g2MUWtMd%2BCvB8CUDkAJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-19 Thread Danielo Rodríguez


El lunes, 18 de mayo de 2015, 19:50:30 (UTC+2), Jeremy Ruston escribió:
>
> Hi Mario
>
> Wouldn't it be possible to use the tiddlywiki.files configuration to 
>> specify the files which should be included?
>>
>
> Yes, one could add a tiddlywiki.files in the `core` folder. One would have 
> to explicitly list each of the tiddlers which were to be included.
>
> Best wishes
>
> Jeremy.
>

Hello Jeremy, if you include the tiddlywiki.files will it take precedence 
over the normal flow? So the files not listed will not be included?

-- 
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/c8f2b0e9-6929-461e-9ee3-9b73910725ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-18 Thread Jeremy Ruston
Hi Mario

Wouldn't it be possible to use the tiddlywiki.files configuration to
> specify the files which should be included?
>

Yes, one could add a tiddlywiki.files in the `core` folder. One would have
to explicitly list each of the tiddlers which were to be included.

Best wishes

Jeremy.



> -m
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@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/CAPKKYJbO6fo5%2Bx4Z0pERCABV72KLGCwxbtuBzransyq7xmo%3Dag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-18 Thread PMario
On Monday, May 18, 2015 at 7:27:55 PM UTC+2, Jeremy Ruston wrote:
>
> Anyhow, the current process used under Node.js to build the `$:/core` 
> plugin includes all the tiddlers found by recursively loading the `core` 
> folder in the repo. It's not currently possible to omit individual tiddlers 
> except by deleting them. 
>

Jeremy, 
Wouldn't it be possible to use the tiddlywiki.files configuration to 
specify the files which should be included?
-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/7b4d903b-6bee-4a4c-aa1b-77c7efb67668%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-18 Thread Jeremy Ruston
Hi Danielo

If you want to build a custom version of the core plugin then the first and
most important thing is: please don't call it "$:/core"; something like
"$:/core/danielo-minimum" would be better.

Anyhow, the current process used under Node.js to build the `$:/core`
plugin includes all the tiddlers found by recursively loading the `core`
folder in the repo. It's not currently possible to omit individual tiddlers
except by deleting them. If you're working on a fork of the TW5 repo then
that's probably a reasonable approach; it will make your changes clearly
evident.

Best wishes

Jeremy.




On Sun, May 17, 2015 at 3:55 PM, David Gifford  wrote:

> Hi Mario,
>
> I meant the shadow tiddlers for translating core features. Sorry I wasn't
> clear.
>
> Dave
>
> On Sun, May 17, 2015 at 9:35 AM, PMario  wrote:
>
>> On Sunday, May 17, 2015 at 2:36:40 PM UTC+2, David Gifford wrote:
>>>
>>> The language components take up a fair bit of filesize, I think. Would
>>> be nice to have a TW5 without them. But that is probably wishful thinking
>>> as I think they are pretty much inextricably engraved into TW5.
>>>
>>
>> The language files have always been plugins. Just tiddlywiki.com
>> included them all. If you have a look at tiddlywiki.com, there is only
>> english left.
>> All other languages are installed as plugins from the ControlPanel.
>>
>> -m
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/xzkwFMCpfCc/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/8f82c6b3-9437-4c0d-a6c1-1ae3392d9e0d%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 http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/CANE%3DBFJcggozZNXtsBkN65o37QOz6-o8WhT4oQ6ZkXgoCPUSGg%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@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/CAPKKYJbicq99CztBsrqN8qVGGdegoCpDWciHG6geJj58Qwp7aA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to get an ultra minimized version of TW5

2015-05-17 Thread David Gifford
Hi Mario,

I meant the shadow tiddlers for translating core features. Sorry I wasn't
clear.

Dave

On Sun, May 17, 2015 at 9:35 AM, PMario  wrote:

> On Sunday, May 17, 2015 at 2:36:40 PM UTC+2, David Gifford wrote:
>>
>> The language components take up a fair bit of filesize, I think. Would be
>> nice to have a TW5 without them. But that is probably wishful thinking as I
>> think they are pretty much inextricably engraved into TW5.
>>
>
> The language files have always been plugins. Just tiddlywiki.com included
> them all. If you have a look at tiddlywiki.com, there is only english
> left.
> All other languages are installed as plugins from the ControlPanel.
>
> -m
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/xzkwFMCpfCc/unsubscribe.
> To unsubscribe from this group and all its topics, 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/8f82c6b3-9437-4c0d-a6c1-1ae3392d9e0d%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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CANE%3DBFJcggozZNXtsBkN65o37QOz6-o8WhT4oQ6ZkXgoCPUSGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to get an ultra minimized version of TW5

2015-05-17 Thread PMario
On Sunday, May 17, 2015 at 2:36:40 PM UTC+2, David Gifford wrote:
>
> The language components take up a fair bit of filesize, I think. Would be 
> nice to have a TW5 without them. But that is probably wishful thinking as I 
> think they are pretty much inextricably engraved into TW5.
>

The language files have always been plugins. Just tiddlywiki.com included 
them all. If you have a look at tiddlywiki.com, there is only english left. 
All other languages are installed as plugins from the ControlPanel. 

-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/8f82c6b3-9437-4c0d-a6c1-1ae3392d9e0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to get an ultra minimized version of TW5

2015-05-17 Thread David Gifford
The language components take up a fair bit of filesize, I think. Would be 
nice to have a TW5 without them. But that is probably wishful thinking as I 
think they are pretty much inextricably engraved into TW5.

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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9dfe36b8-0149-47c7-a6a9-a682b18920d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.