Re: [tw] [TW5] Do not print tags

2014-08-31 Thread PMario
On Monday, September 1, 2014 12:07:57 AM UTC+2, David Gifford wrote:

> I always thought # meant div and . meant class...so when . doesn't work I 
> try #...
>
:)

The mozilla developer network has some very good info about "all things 
internet"
see: 
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Selectors

have fun!
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Do not print tags

2014-08-31 Thread PMario
On Monday, September 1, 2014 12:07:57 AM UTC+2, David Gifford wrote:
>
> And I use the !important because years ago someone told me I needed to do 
> it for do not print in TiddlyWiki classic, so I just carried it over. Never 
> tried the do not print without it.
>

After a closer look, I think the "do not print" usecase is one of the 
cases, where it actually makes sense, 
if it is covered in a  @media print {} construction. ... So what ever 
someone else specifies you don't want to print it. 

But with every other  usecase we should have a closer look.

-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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Announcing TiddlyWiki Classic version 2.9.0 BETA1

2014-08-31 Thread Eric Shulman
On Sunday, August 31, 2014 7:37:26 AM UTC-7, TheDiveO wrote:
>
> Eric,
>
> just my two cents here: personally, I'm heavily interested in better 
> understanding the architecture of TW5 and how to customize and extend it. 
> Some topics I could imagine...
>

I think there are several types of presentation that we should target:

* User-level introduction to TiddlyWiki concepts and usage
* Authoring guidelines (customization using tags, templates, macros, 
stylesheets, etc.)
* Developer guidelines (creating plugins, themes, etc.)
* Syntax reference (wikitext, macros, widgets, messages, etc.)
* Case studies / Design Patterns / Examples

The topics you've suggested would seem to fall into the authoring and/or 
developer categories, with a bit of cross-linking to the syntax reference 
and at least one example/case study to illustrate usage.

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Do not print tags

2014-08-31 Thread David Gifford
Thanks Mario

I always thought # meant div and . meant class...so when . doesn't work I
try #...

And I use the !important because years ago someone told me I needed to do
it for do not print in TiddlyWiki classic, so I just carried it over. Never
tried the do not print without it.

Dave


On Sun, Aug 31, 2014 at 12:20 PM, PMario  wrote:

> On Saturday, August 30, 2014 2:50:50 PM UTC+2, David Gifford wrote:
>>
>> @media print {#tw-tags-wrapper {display: none ! important;}}
>>
>
> Just to clarify.
>
> the hash in CSS means the ID
> eg some HTML code with an id:
>
>  some text 
>
> CSS
>
> #myID { background: yellow; }
>
> IDs should be not used with TW, since there can be more than one tiddler
> active at the same time.
> TW needs to work with classes.
>
> -
>
> some code with a class
>
> 
>
>  some text 
> 
>
> CSS
>
> .tw-my-wrapper{ display: none;}
>
>
>
> Important:
>
> If you ever need a construction like this: { display: none !important; }
> you need to file a bug!
> IMO !important is a virus. If I'd like to modify your theme I'd need to
> modify your template and add a style="i am more important" and then we
> are stuck.
>
> see:
> http://www.stubbornella.org/content/2010/07/01/top-5-mistakes-of-massive-css/
>
> have fun!
> mario
>
>
>  --
> 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/ak-ADjDkBgo/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.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Gifford
Christian Reformed World Missions, Mexico City

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] Showing different tiddler content depending on the tiddler link that sent me to it

2014-08-31 Thread mimikoulen
Let's say I have TiddlerOne and TiddlerTwo and they both contain a link to 
a TiddlerThree. 
I would like to be able to show a different part of the content of 
TiddlerThree based from which one I was sent to it.
How could I do such a thing?
Also is there a way to count how many times a Tiddler link has been clicked 
and then depending on the count to show different content again?
Any guidance given would be appreciated.
Thank you.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] TW5FontAwesome: Font Awesome for TW5 customization

2014-08-31 Thread Ton Gerner
http://braintest.tiddlyspot.com/#Pack%20as%20plugin:[[Pack%20as%20plugin]]

On Sunday, August 31, 2014 8:09:56 PM UTC+2, TheDiveO wrote:
>
> Link?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: exporting all tiddlers [TW5]

2014-08-31 Thread paolo b
Hi Danielo, Jeremy

thanks for the suggestion.
It worked perfectly with nodejs.

It also fixed another issue I had with some tiddlers imported in json
format from a file: whenever I edited and saved them, the original
tiddler was not overwritten, and a new tiddler was created and saved 
instead.
I haven't managed to isolate what caused this issue, though.

Paolo

On Thursday, August 28, 2014 1:29:25 PM UTC+2, Jeremy Ruston wrote:
>
> Hi Paolo
>
> > However, as more and more features are added to the program, I've 
> been looking at ways
> to backup my data, in case the html file accidentally gets corrupted.
>
> The best way to backup your data is to backup the TW HTML file.
>
> I'm keen to improve the import/export options - see:
>
> https://github.com/Jermolene/TiddlyWiki5/issues/688
>
> Best wishes
>
> Jeremy
>
>
> On Wed, Aug 27, 2014 at 11:31 AM, Danielo Rodríguez  > wrote:
>
>> Your best bet here is to use the NODEJS version.
>>
>> Import your old wiki into your node instance (just drag and drop as 
>> usual) and you will automatically get all the tiddlers in separate files. I 
>> use it in combination with dropbox.
>>
>> El miércoles, 27 de agosto de 2014 11:18:02 UTC+2, paolo b escribió:
>>
>>> Hi everybody
>>>
>>> we all know that tiddlywiki superbly combines program and data in
>>> one compact, portable html file.
>>>
>>> However, as more and more features are added to the program, I've been 
>>> looking at ways
>>> to backup my data, in case the html file accidentally gets corrupted.
>>>
>>> Exporting one static html file is only a partial solution, since  not 
>>> all the information of a
>>> tiddler is saved therein -- for example the creator and the dates.
>>>
>>> Question: is there a way to export the full content of all the tiddlers 
>>> in a text format, say JSON, that can 
>>> then be imported into a new (empty) tiddlywiki file?
>>>
>>> Many thanks in advance
>>>
>>> Paolo
>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com .
>> To post to this group, send email to tiddl...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:jeremy...@gmail.com 
>  

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] TW5FontAwesome: Font Awesome for TW5 customization

2014-08-31 Thread TheDiveO
Link?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Do not print tags

2014-08-31 Thread PMario
On Saturday, August 30, 2014 2:50:50 PM UTC+2, David Gifford wrote:
>
> @media print {#tw-tags-wrapper {display: none ! important;}} 
>

Just to clarify. 
 
the hash in CSS means the ID 
eg some HTML code with an id:

 some text 

CSS

#myID { background: yellow; }

IDs should be not used with TW, since there can be more than one tiddler 
active at the same time.
TW needs to work with classes.

-

some code with a class



 some text 


CSS

.tw-my-wrapper{ display: none;}



Important:

If you ever need a construction like this: { display: none !important; } 
you need to file a bug!
IMO !important is a virus. If I'd like to modify your theme I'd need to 
modify your template and add a style="i am more important" and then we are 
stuck. 

see: 
http://www.stubbornella.org/content/2010/07/01/top-5-mistakes-of-massive-css/

have fun!
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] TiddlyWiki Hangout #59 will be on Tuesday 2nd September at 4pm BST (UTC+1)

2014-08-31 Thread Jeremy Ruston
TiddlyWiki Hangout #59 will be on Tuesday 2nd September at 4pm BST (UTC+1).
More details:

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

Ask questions using the Q&A button on the video preview at the above link,
or by replying here.

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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] TW5FontAwesome: Font Awesome for TW5 customization

2014-08-31 Thread Danielo Rodríguez
Hello dive-o 

If you are interested in developing plugins in the browser I developed a plugin 
for that. You can find it in my braintest site

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Announcing TiddlyWiki Classic version 2.9.0 BETA1

2014-08-31 Thread Danielo Rodríguez
The book itself would be a very nice reward! I will pay for it for sure

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Announcing TiddlyWiki Classic version 2.9.0 BETA1

2014-08-31 Thread TheDiveO
Eric,

just my two cents here: personally, I'm heavily interested in better 
understanding the architecture of TW5 and how to customize and extend it. 
Some topics I could imagine:

   - more basic: *parameter evaluation* ... so when do the parameters to a 
   macro call, et cetera, really get evaluated? Most of the time I'm 
   scratching my head as I still haven't properly understood how TW5 works. 
   Somehow I often manage to get a working solution but have the same feeling 
   I always had with TeX: does it get digested in TeX's mouth or stomach ... 
   same feeling here with TW5 parameter processing.
   - how does the TW5 core *establish and maintain (tiddler) dependencies*, 
   so that when one tiddler changes other dependent tiddlers and elements 
   work? How can I extend such automatic dependencies?
   - so this brings me to: how to *develop widgets* and how to they 
   establish and use the aforementioned dependencies?
   - the *architecture of TW5*; boot process; additional processing, et 
   cetera...

Of course, there is so much more...

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] TW5FontAwesome: Font Awesome for TW5 customization

2014-08-31 Thread TheDiveO


Am Sonntag, 31. August 2014 10:54:15 UTC+2 schrieb Jeremy Ruston:
>
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/tw5.com-server/tiddlywiki.info
>
> Does that make sense?
>
 
Hi Jeremy, 

yes that does make sense now. Thank you for your patience and answering my 
questions! Currently I'm experimenting with develop and release editions. 
The missing piece is yet how to use the same tiddler source tree for 1. 
development, 2. plugin generation, and finally 3. demo edition. For 2. I'm 
playing with plugin alias configuration but 3. has yet to fall into place.

As for your fa macro suggestion: great idea which I will implement! 
Sometimes me tree, but not forest :)

Best regards, 
TheDiveO
 
 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Separate link CSS for table of contents?

2014-08-31 Thread David Gifford
Thanks, Jeremy!

Dave


On Sun, Aug 31, 2014 at 6:33 AM, Jeremy Ruston 
wrote:

> Sorry Dave my example should have read:
>
> 
> <>
> 
>
> Best wishes
>
> Jeremy
>
>
> On Sun, Aug 31, 2014 at 12:30 PM, David Gifford 
> wrote:
>
>> Filter error: Syntax error in filter expression
>>
>>
>> On Sun, Aug 31, 2014 at 4:16 AM, Jeremy Ruston 
>> wrote:
>>
>>> Hi Dave
>>>
>>> You don't need to modify the toc macro in order to be able to style it's
>>> output.
>>>
>>> 
>>> <>
>>> 
>>>
>>> Then in your stylesheet:
>>>
>>> .my-toc .tw-tiddlylink {
>>> background: red;
>>> }
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>>
>>>
>>> On Sat, Aug 30, 2014 at 3:36 PM, David Gifford 
>>> wrote:
>>>
 Never mind, I found the problem.


 On Sat, Aug 30, 2014 at 9:29 AM, David Gifford 
 wrote:

> So I changed the macro to
>
> \define toc(tag,sort:"")
> 
> <$list filter="[tag[$tag$]!tag[$:/Note]$sort$]">
> 
> <$link>
> <$view field="title"/>
> <$macrocall $name="toc" tag=<>/>
> 
> 
> 
> \end
>
>
> And in CSS I put
>
> .blacktoc li a.tw-tiddlylink {}
>
> What am I doing wrong?
>
>
>
>
> On Sat, Aug 30, 2014 at 8:51 AM, Andreas Hahn <
> www.gal...@googlemail.com> wrote:
>
>>  Have a look at the toc macro in $:/core/macros/toc.
>>
>> As you can see it uses -elements with currently no specific
>> class. So you can style those with:
>>
>> ol>li>a.tw-tiddlylink {
>> color: red;
>> }
>>
>> Alternatively you can change the <>-macro so that the elements
>> have css classes.
>>
>> /Andreas
>>
>> Am 30.08.2014 15:21, schrieb David Gifford:
>>
>> I would like the links in the table of contents to be different than
>> the standard links.
>>
>> I have tried
>>
>> #tw-table-of-contents a.tw-tiddlylink {}
>>
>> and some similar items to no avail. Any ideas?
>>
>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>  --
>> 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/iIF1MM4QlX4/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.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Gifford
> Christian Reformed World Missions, Mexico City
>



 --
 David Gifford
 Christian Reformed World Missions, Mexico City

 --
 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.
 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 a topic in the
>>> Google Groups "TiddlyWiki" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/tiddlywiki/iIF1MM4QlX4/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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> David Gifford
>> Christian Reformed World Missions, Mexico City
>>
>> --
>> 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.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jeremy Ruston
> mailto:jeremy.rus...@gmail.com
>
> --
> You received this message because you are 

Re: [tw] [TW5] Separate link CSS for table of contents?

2014-08-31 Thread Jeremy Ruston
Sorry Dave my example should have read:


<>


Best wishes

Jeremy


On Sun, Aug 31, 2014 at 12:30 PM, David Gifford  wrote:

> Filter error: Syntax error in filter expression
>
>
> On Sun, Aug 31, 2014 at 4:16 AM, Jeremy Ruston 
> wrote:
>
>> Hi Dave
>>
>> You don't need to modify the toc macro in order to be able to style it's
>> output.
>>
>> 
>> <>
>> 
>>
>> Then in your stylesheet:
>>
>> .my-toc .tw-tiddlylink {
>> background: red;
>> }
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>> On Sat, Aug 30, 2014 at 3:36 PM, David Gifford 
>> wrote:
>>
>>> Never mind, I found the problem.
>>>
>>>
>>> On Sat, Aug 30, 2014 at 9:29 AM, David Gifford 
>>> wrote:
>>>
 So I changed the macro to

 \define toc(tag,sort:"")
 
 <$list filter="[tag[$tag$]!tag[$:/Note]$sort$]">
 
 <$link>
 <$view field="title"/>
 <$macrocall $name="toc" tag=<>/>
 
 
 
 \end


 And in CSS I put

 .blacktoc li a.tw-tiddlylink {}

 What am I doing wrong?




 On Sat, Aug 30, 2014 at 8:51 AM, Andreas Hahn <
 www.gal...@googlemail.com> wrote:

>  Have a look at the toc macro in $:/core/macros/toc.
>
> As you can see it uses -elements with currently no specific class.
> So you can style those with:
>
> ol>li>a.tw-tiddlylink {
> color: red;
> }
>
> Alternatively you can change the <>-macro so that the elements
> have css classes.
>
> /Andreas
>
> Am 30.08.2014 15:21, schrieb David Gifford:
>
> I would like the links in the table of contents to be different than
> the standard links.
>
> I have tried
>
> #tw-table-of-contents a.tw-tiddlylink {}
>
> and some similar items to no avail. Any ideas?
>
> 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.
> For more options, visit https://groups.google.com/d/optout.
>
>
>  --
> 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/iIF1MM4QlX4/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.
> For more options, visit https://groups.google.com/d/optout.
>



 --
 David Gifford
 Christian Reformed World Missions, Mexico City

>>>
>>>
>>>
>>> --
>>> David Gifford
>>> Christian Reformed World Missions, Mexico City
>>>
>>> --
>>> 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.
>>> 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 a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/iIF1MM4QlX4/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.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Gifford
> Christian Reformed World Missions, Mexico City
>
> --
> 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.
> 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.goog

Re: [tw] [TW5] Separate link CSS for table of contents?

2014-08-31 Thread David Gifford
Filter error: Syntax error in filter expression


On Sun, Aug 31, 2014 at 4:16 AM, Jeremy Ruston 
wrote:

> Hi Dave
>
> You don't need to modify the toc macro in order to be able to style it's
> output.
>
> 
> <>
> 
>
> Then in your stylesheet:
>
> .my-toc .tw-tiddlylink {
> background: red;
> }
>
> Best wishes
>
> Jeremy
>
>
>
> On Sat, Aug 30, 2014 at 3:36 PM, David Gifford  wrote:
>
>> Never mind, I found the problem.
>>
>>
>> On Sat, Aug 30, 2014 at 9:29 AM, David Gifford 
>> wrote:
>>
>>> So I changed the macro to
>>>
>>> \define toc(tag,sort:"")
>>> 
>>> <$list filter="[tag[$tag$]!tag[$:/Note]$sort$]">
>>> 
>>> <$link>
>>> <$view field="title"/>
>>> <$macrocall $name="toc" tag=<>/>
>>> 
>>> 
>>> 
>>> \end
>>>
>>>
>>> And in CSS I put
>>>
>>> .blacktoc li a.tw-tiddlylink {}
>>>
>>> What am I doing wrong?
>>>
>>>
>>>
>>>
>>> On Sat, Aug 30, 2014 at 8:51 AM, Andreas Hahn >> > wrote:
>>>
  Have a look at the toc macro in $:/core/macros/toc.

 As you can see it uses -elements with currently no specific class.
 So you can style those with:

 ol>li>a.tw-tiddlylink {
 color: red;
 }

 Alternatively you can change the <>-macro so that the elements
 have css classes.

 /Andreas

 Am 30.08.2014 15:21, schrieb David Gifford:

 I would like the links in the table of contents to be different than
 the standard links.

 I have tried

 #tw-table-of-contents a.tw-tiddlylink {}

 and some similar items to no avail. Any ideas?

 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.
 For more options, visit https://groups.google.com/d/optout.


  --
 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/iIF1MM4QlX4/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.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>> David Gifford
>>> Christian Reformed World Missions, Mexico City
>>>
>>
>>
>>
>> --
>> David Gifford
>> Christian Reformed World Missions, Mexico City
>>
>> --
>> 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.
>> 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 a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/iIF1MM4QlX4/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.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Gifford
Christian Reformed World Missions, Mexico City

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Separate link CSS for table of contents?

2014-08-31 Thread Jeremy Ruston
Hi Dave

You don't need to modify the toc macro in order to be able to style it's
output.


<>


Then in your stylesheet:

.my-toc .tw-tiddlylink {
background: red;
}

Best wishes

Jeremy



On Sat, Aug 30, 2014 at 3:36 PM, David Gifford  wrote:

> Never mind, I found the problem.
>
>
> On Sat, Aug 30, 2014 at 9:29 AM, David Gifford  wrote:
>
>> So I changed the macro to
>>
>> \define toc(tag,sort:"")
>> 
>> <$list filter="[tag[$tag$]!tag[$:/Note]$sort$]">
>> 
>> <$link>
>> <$view field="title"/>
>> <$macrocall $name="toc" tag=<>/>
>> 
>> 
>> 
>> \end
>>
>>
>> And in CSS I put
>>
>> .blacktoc li a.tw-tiddlylink {}
>>
>> What am I doing wrong?
>>
>>
>>
>>
>> On Sat, Aug 30, 2014 at 8:51 AM, Andreas Hahn 
>> wrote:
>>
>>>  Have a look at the toc macro in $:/core/macros/toc.
>>>
>>> As you can see it uses -elements with currently no specific class.
>>> So you can style those with:
>>>
>>> ol>li>a.tw-tiddlylink {
>>> color: red;
>>> }
>>>
>>> Alternatively you can change the <>-macro so that the elements have
>>> css classes.
>>>
>>> /Andreas
>>>
>>> Am 30.08.2014 15:21, schrieb David Gifford:
>>>
>>> I would like the links in the table of contents to be different than the
>>> standard links.
>>>
>>> I have tried
>>>
>>> #tw-table-of-contents a.tw-tiddlylink {}
>>>
>>> and some similar items to no avail. Any ideas?
>>>
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>  --
>>> 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/iIF1MM4QlX4/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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> David Gifford
>> Christian Reformed World Missions, Mexico City
>>
>
>
>
> --
> David Gifford
> Christian Reformed World Missions, Mexico City
>
> --
> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Help exporting to static HTML (and then word)

2014-08-31 Thread Jeremy Ruston
Hi Alex

My planned use case is to generate static HTML file which would then be a
> stripped down version of my Tiddling  for public view.
>
> How would I export only default tiddlers
>

There's an example at tiddlywiki.com/static.html which is a static view of
the default tiddlers on tiddlywiki.com. It is generated by this command:

--rendertiddler $:/core/templates/static.template.html static.html
text/plain

or a list of Tiddlers?
>

If you want an arbitrary list of tiddlers baked into a single file then
you'd need to create a template.

For example, "mytemplate" could contain:

<$set name="tv-config-toolbar-icons" value="no">

<$set name="tv-config-toolbar-text" value="no">

<$set name="tv-config-toolbar-class" value="tc-btn-invisible">

<$set name="currentTiddler" value={{$:/language}}>

<$set name="languageTitle" value={{!!name}}>

<$set name="currentTiddler" value="">

<$list filter="tiddlerone tiddlertwo [tag[mytag]]"
template="$:/core/ui/ViewTemplate"/>













Change the <$list> filter in order to select which tiddlers are included.

Then use this command to save the file:

--rendertiddler mytemplate mystatic.html text/plain

Or you can create a button to save the file in the browser:

<$button message="tm-download-file" param="mytemplate"
class="tc-btn-big-green">Download

Best wishes

Jeremy


> Maybe it's not the best approach. Copying the .tid files over then
> generating a static from them might be easier?
>




>
>
> Alex
>
>
> On 31 August 2014 06:48, CB  wrote:
>
>> Hi Jeremy,
>>
>> Is there a way to control the filename of the target file to be saved? As
>> of now it prompts to save the output file with the same name as tiddly
>> wiki.
>>
>> Thanks
>> CB
>>
>>
>> On Wednesday, March 26, 2014 8:21:22 AM UTC-7, Jeremy Ruston wrote:
>>
>>> Hi Scott
>>>
>>> There's an example of how to save content in static HTML buried in the
>>> control panel: in the "tools" tab there's a big green button to "Download
>>> all tiddlers as static HTML". Clicking it should download a static HTML
>>> file containing all the non-system tiddlers concatenated together in
>>> alphabetical order.
>>>
>>> The code that creates the button is in "$:/core/ui/ControlPanel/Tools":
>>>
>>> <$button message="tw-download-file" 
>>> param="$:/core/templates/alltiddlers.template.html"
>>> class="btn-big-green"><>
>>> {{$:/core/images/save-button}}
>>>
>>> In order to change the tiddlers that are included, and control their
>>> ordering, you can overwrite the filter in "$:/core/templates/
>>> alltiddlers.content":
>>>
>>> {{{ [!is[system]sort[title]] ||$:/core/templates/static-tiddler}}}
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>>
>>>
>>>
>>> On Wed, Mar 26, 2014 at 2:39 PM, Scott Hatcher 
>>> wrote:
>>>
 Hello,

 I feel as though I'm nearly there, but also way off. There are similar
 questions on this group about doing the same thing (generating a static
 HTML document from all tiddlers, and then importing it into Word), but they
 haven't gotten me very far.

 My situation is the same as most. A large TW written for a boss that
 wants a Word document. I'm going to keep both, and explain that one will be
 updated and the other be static. He'll just be happy once he sees a word
 doc exists.

 the --render.allcontent shadow tiddler seems to be my answer, but I've
 also looked into plugins. I'm running a single stand-along .html document
 TW, and so there's no "plugins" folder. I'm completely confused.

 What's the easiest way to generate a static HTML from the browser (save
 as?).

 Thanks,
 Scott

 --
 You received this message because you are subscribed to the Google
 Groups "TiddlyWiki" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to tiddlywiki+...@googlegroups.com.
 To post to this group, send email to tiddl...@googlegroups.com.

 Visit this group at http://groups.google.com/group/tiddlywiki.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>> Jeremy Ruston
>>> mailto:jeremy...@gmail.com
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to tiddlywiki+unsubscr...@googlegroups.com.
>> To post to this group, send email to tiddlywiki@googlegroups.com.
>>
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> 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.
> For more options, visit https:/

[tw] Re: Announcing TiddlyWiki Classic version 2.9.0 BETA1

2014-08-31 Thread Eric Shulman
On Saturday, August 30, 2014 8:33:21 AM UTC-7, TheDiveO wrote:
>
> On Monday, August 25, 2014 3:59:29 AM UTC+2, Eric Shulman wrote:
>>
>> However, once TW5 is out of beta, my primary focus will shift to creating 
>> and publishing a TW5 version of TiddlyTools and developing new plugins for 
>> TiddlyWiki5, as well as writing TiddlyWiki5 documentation (perhaps an 
>> actual book?!?) and providing user support for the "migration path" from 
>> TiddlyWiki Classic to TiddlyWiki5 (i.e., guidelines and scripts for 
>> converting existing documents).  
>>
>
> Eric, please write an actual book (as in actual *e*book) on TW5 ... I 
> will immediately buy and gladly pay for it! An O'Reilly "TW5 in a Nutshell" 
> would be great. With insight for both beginners and hackers/customizers.
>

I would LOVE to write a book about TiddlyWiki.  The only catch... is that 
it takes a lot of time and undivided attention.  Unfortunately, because I 
am a self-employed software consultant, I have to spend a great deal of 
day-to-day effort on finding and earning income from various client 
projects, and TiddlyWiki inevitably get pushed to a lower priority until 
the monthly bills are paid.  Of course, if there was a enough income from 
TiddlyWiki to cover my monthly living expenses without other client work, I 
would gladly spend all of my time exclusively on writing the TiddlyWiki 
book.

Jeremy and I have been discussing how to make this happen, and we've been 
talking about creating a Kickstarter campaign in order to raise enough 
funds for me to work full-time on the book.

To do this, we need to decide on an outline of topics the book should 
address.  Once we have a proposed "Table Of Contents", I can then estimate 
how long it is likely to take to write that material. That will, in turn, 
help determine the initial funding goal and any "stretch" goals needed to 
complete the work.

We will also need to structure the Kickstarter campaign to provide various 
"rewards" for different levels of funding from contributors, so your ideas 
for campaign rewards that you think people would like are also important.

Your thoughts?

-e








-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Help exporting to static HTML (and then word)

2014-08-31 Thread Jeremy Ruston
Hi CB


> Is there a way to control the filename of the target file to be saved? As
> of now it prompts to save the output file with the same name as tiddly
> wiki.
>

The default filename for the download is currently set to the final portion
of the URL of the wiki (eg, index.html). There's currently no way to
override it.

Browsers other than Chrome appear to ignore any specified filename.

Best wishes

Jeremy


>
> Thanks
> CB
>
>
> On Wednesday, March 26, 2014 8:21:22 AM UTC-7, Jeremy Ruston wrote:
>
>> Hi Scott
>>
>> There's an example of how to save content in static HTML buried in the
>> control panel: in the "tools" tab there's a big green button to "Download
>> all tiddlers as static HTML". Clicking it should download a static HTML
>> file containing all the non-system tiddlers concatenated together in
>> alphabetical order.
>>
>> The code that creates the button is in "$:/core/ui/ControlPanel/Tools":
>>
>> <$button message="tw-download-file" 
>> param="$:/core/templates/alltiddlers.template.html"
>> class="btn-big-green"><>
>> {{$:/core/images/save-button}}
>>
>> In order to change the tiddlers that are included, and control their
>> ordering, you can overwrite the filter in "$:/core/templates/
>> alltiddlers.content":
>>
>> {{{ [!is[system]sort[title]] ||$:/core/templates/static-tiddler}}}
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>>
>> On Wed, Mar 26, 2014 at 2:39 PM, Scott Hatcher 
>> wrote:
>>
>>> Hello,
>>>
>>> I feel as though I'm nearly there, but also way off. There are similar
>>> questions on this group about doing the same thing (generating a static
>>> HTML document from all tiddlers, and then importing it into Word), but they
>>> haven't gotten me very far.
>>>
>>> My situation is the same as most. A large TW written for a boss that
>>> wants a Word document. I'm going to keep both, and explain that one will be
>>> updated and the other be static. He'll just be happy once he sees a word
>>> doc exists.
>>>
>>> the --render.allcontent shadow tiddler seems to be my answer, but I've
>>> also looked into plugins. I'm running a single stand-along .html document
>>> TW, and so there's no "plugins" folder. I'm completely confused.
>>>
>>> What's the easiest way to generate a static HTML from the browser (save
>>> as?).
>>>
>>> Thanks,
>>> Scott
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to tiddlywiki+...@googlegroups.com.
>>> To post to this group, send email to tiddl...@googlegroups.com.
>>>
>>> Visit this group at http://groups.google.com/group/tiddlywiki.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:jeremy...@gmail.com
>>
>


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] TW5FontAwesome: Font Awesome for TW5 customization

2014-08-31 Thread Jeremy Ruston
Hi TheDiveO

> To create the complete TW5 including my tiddlers I run the Node.js TW5
using --build to save $:/core/save/all. How do I avoid the tiddlywebadaptor
getting included? I suppose that I need a different tiddlywiki.info then?
I'm still having problems putting all the required pieces of knowledge into
place...

The tiddlywebadaptor (and filesystemadaptor) will only be included if it is
listed in the tiddlywiki.info file of the wiki you've loaded.

You should only include tiddlywebadaptor (and filesystemadaptor) if you
want to run the wiki in client-server configuration.

In the case of editions/tw5.com, I want to be be able to work on it in
client-server configuration but also to be able to build the wiki as a
standalone file without tiddlywebadaptor.

The best approach is for tw5.com not to include the client-server
components, and then to use a separate wiki folder that sets up the
client-server components and uses the includeWiki feature to include the
tiddlers from the tw5.com wiki.

See:

https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/tw5.com-server/tiddlywiki.info

Does that make sense?

Best wishes

Jeremy



On Sat, Aug 30, 2014 at 11:48 PM, BJ  wrote:

> HI TheDiveO,
> I use two tiddlywiki.info, one for building a standalone html, the other
> for nodejs.
> if you take a look at my plugin at https://github.com/buggyj/TW5-flexitype
> and look in the build dir, you will see two subdirs - demo (which contains
> the tiddlywiki.info for standalone) and demoedit ( that contains the
> tiddlywiki.info for nodejs).
> I have two command bld.sh that builds the standalone tiddlywiki and
> edit.sh which launches the nodejs version of the tiddlywiki
>
>
> Cheers
>
> BJ
>
>
> On Sunday, August 31, 2014 12:10:11 AM UTC+2, TheDiveO wrote:
>>
>> To create the complete TW5 including my tiddlers I run the Node.js TW5
>> using --build to save $:/core/save/all. How do I avoid the tiddlywebadaptor
>> getting included? I suppose that I need a different tiddlywiki.info
>> then? I'm still having problems putting all the required pieces of
>> knowledge into place...
>>
>


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Announcing TiddlyWiki Classic version 2.9.0 BETA1

2014-08-31 Thread Eric Shulman
On Friday, August 29, 2014 11:55:40 AM UTC-7, Yakov wrote:
>
> 159: fixed, works; is it really necessary to surrond all the values with 
> %22...%22? Even one-word, like true/false or numbers, like 
> txtMaxEditRows:30? (it would ease migrating)
> As far as I can see (from [1-3]), that would work as expected in both 
> versions of cookie-handling.
>

Although many option values are single words, numbers, or true/false, 
option values *can* contain whitespace, so at least some of the time, there 
is a need for the surrounding quotes.  However, a valid browser cookie 
should not contain any quotes, and cookies containing quotes are rejected 
by some (but not all) browsers. This is the basis for issue #159, which 
reported that Opera did not save the TiddlyWiki option values between 
sessions.  Although I have not confirmed, I think that this error was also 
responsible for preventing options from being saved in other browsers as 
well.

TWClassic uses String.encodeHashMap() [1] to construct a space-separated 
string of name/value pairs, where each option name is followed by a colon 
(:), and the option value is *always* enclosed in double-quotes, like this:
name1:"value1" name2:"value2" name3:"value3"

The fix for #159 did not change the way the individual option values are 
encoded/decoded from the cookie text.  Rather, it simply converts the 
*existing* use of quotes to %22 to avoid being rejected by the browser.  Of 
course, since most option values are single-words, numbers, or true/false, 
we could reduce -- but not completely eliminate -- the use of quotes in the 
encoded cookie text, by changing String.encodeHashMap() to check for 
whitespace in the option values, and only adding the surrounding quotes 
when actually needed.  The resulting cookie text would still need to have 
any quotes encoded as %22, so those option values could still be affected 
by the "version skew" issue that #whatever reported above.

So.. I now have two possible improvements for the 159 fix:

1) maintain backward-compatibility by adding a chkEncodeCookieQuotes option 
(default to false) to completely bypass the %22 encoding/decoding.  This 
will allow continued use of a mixed version environment (i.e., TW2.8.1 or 
earlier running along side TW2.9.0) for browsers that DO accept cookie 
values containing quotes.  Of course, because the cookie text would then 
contain quotes, browsers that DONT accept quotes will reject any changes to 
default option settings; thus, to enable the %22 encoding for those 
browsers, the TW author cannot simply "set an option checkbox" (as that 
setting would not be saved).  Instead, they would need to explicitly add a 
systemConfig tiddler containing:
config.options.chkEncodeCookieQuotes=true;

2) reduce (but not eliminate) the use of quotes in cookie text by checking 
for whitespace in String.encodeHashMap().  This limits the impact of the 
%22 encoding, so that MOST option values would be backward compatible 
unless they contain whitespace.

My only concern about solution (2) is that String.encodeHashMap() is not 
only used to encode the option cookie text, but is also used in the TWCore 
for some handling of custom fields.  A quick review of the code suggests 
that it would be "safe", but I prefer to keep changes as isolated as 
possible to minimize their any unexpected impact on existing TiddlyWiki 
uses.

[1] https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Strings.js#L249

I have a major problem though: I failed to save the new TW using 
> TiddlySaver in these 4 combinations:
> Windows 7 x64 + Opera 12.17 +
> either my PC with old Java (as far as I can see 7 update 17) or another PC 
> with the latest (7 update i-don't-remember-which) +
> either old TiddlySaver I still use or the new one in the package.
> On trying to save, the console sais:
> javaLoadFile: TypeError: 'applet.loadFile' is not a function
> javaSaveFile: TypeError: 'applet.saveFile' is not a function
> javaDebugInformation() gives:
> "Java Version: TypeError: Cannot convert 'method' to object
> Last Exception: TypeError: Cannot convert 'method' to object
> Last Exception Stack Trace: TypeError: Cannot convert 'method' to object
> System Properties: TypeError: Cannot convert 'method' to object"
> and that's in each case, including the fresh installation on the other PC.
>

Hmmm... I'm not sure what's happening here, but I don't see any problems 
using the new TiddlySaver.jar with Chrome, so perhaps it's an Opera bug? 
 Here's some info that might suggest an avenue of investigation to persue:


   - The TiddlySaver.jar included with TW290 was re-built about 6 months 
   ago by PVHL (to update the Certificate), and came from here:
   
   https://github.com/PVHL/tiddlywiki/tree/TiddlySaver1Beta1/java


   - The only TWCore code change related to TiddlySaver was a fix 
   to javaDebugInformation() to correct an erroneous function name.  Note that 
   javaDebugInformation is NOT called by the TWCore, and is only provided for 

Re: [tw] [TW5] Help exporting to static HTML (and then word)

2014-08-31 Thread Alex Hough
My planned use case is to generate static HTML file which would then be a
stripped down version of my Tiddling  for public view.

How would I export only default tiddlers, or a list of Tiddlers?

Maybe it's not the best approach. Copying the .tid files over then
generating a static from them might be easier?


Alex


On 31 August 2014 06:48, CB  wrote:

> Hi Jeremy,
>
> Is there a way to control the filename of the target file to be saved? As
> of now it prompts to save the output file with the same name as tiddly
> wiki.
>
> Thanks
> CB
>
>
> On Wednesday, March 26, 2014 8:21:22 AM UTC-7, Jeremy Ruston wrote:
>
>> Hi Scott
>>
>> There's an example of how to save content in static HTML buried in the
>> control panel: in the "tools" tab there's a big green button to "Download
>> all tiddlers as static HTML". Clicking it should download a static HTML
>> file containing all the non-system tiddlers concatenated together in
>> alphabetical order.
>>
>> The code that creates the button is in "$:/core/ui/ControlPanel/Tools":
>>
>> <$button message="tw-download-file" 
>> param="$:/core/templates/alltiddlers.template.html"
>> class="btn-big-green"><>
>> {{$:/core/images/save-button}}
>>
>> In order to change the tiddlers that are included, and control their
>> ordering, you can overwrite the filter in "$:/core/templates/
>> alltiddlers.content":
>>
>> {{{ [!is[system]sort[title]] ||$:/core/templates/static-tiddler}}}
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>>
>> On Wed, Mar 26, 2014 at 2:39 PM, Scott Hatcher 
>> wrote:
>>
>>> Hello,
>>>
>>> I feel as though I'm nearly there, but also way off. There are similar
>>> questions on this group about doing the same thing (generating a static
>>> HTML document from all tiddlers, and then importing it into Word), but they
>>> haven't gotten me very far.
>>>
>>> My situation is the same as most. A large TW written for a boss that
>>> wants a Word document. I'm going to keep both, and explain that one will be
>>> updated and the other be static. He'll just be happy once he sees a word
>>> doc exists.
>>>
>>> the --render.allcontent shadow tiddler seems to be my answer, but I've
>>> also looked into plugins. I'm running a single stand-along .html document
>>> TW, and so there's no "plugins" folder. I'm completely confused.
>>>
>>> What's the easiest way to generate a static HTML from the browser (save
>>> as?).
>>>
>>> Thanks,
>>> Scott
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to tiddlywiki+...@googlegroups.com.
>>> To post to this group, send email to tiddl...@googlegroups.com.
>>>
>>> Visit this group at http://groups.google.com/group/tiddlywiki.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:jeremy...@gmail.com
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> 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.
For more options, visit https://groups.google.com/d/optout.