[tw5] Re: RFC Request for Comment - color intuitions

2020-08-28 Thread TW Tones
Here are Some additional elements for styling;

   - Tag Color standards
   - Tag Icons
   - Tiddler Icons
   - Tiddler color field
   - Tiddler Class field

How would you suggest we use these?

What can you think of?

Regards
Tones

On Saturday, 29 August 2020 14:42:04 UTC+10, TW Tones wrote:
>
> Folks,
>
> I have being playing with CSS and its integration into TiddlyWiki and 
> realise there is more than enough opportunity especially with the new Custom 
> styles by data tags 
>  etc... to 
> realise a smart, subtle and intuitive interface.
>
> This is not an idea for a theme, nor even just CSS but taking a range 
> tiddlywiki tiddler and page elements, that change and provide a subtle 
> variation particularly with colour, pale backgrounds, boarder style, 
> thickness and shadows.
>
> Examples may be
>
>- A pail green background when a tiddler is in draft mode, 
>- A Dark a green border if the tiddler begins with "New Tiddler" 
>- A yellow boarder if the tiddler is an Orphan
>- A Pale grey background if the tiddler an unedited shadow
>- and many more
>
> The idea is to take common facts about tiddlers or the wiki as a whole and 
> use these to leave subtle messages to the user 
>
>- We need not know the exact detail of such indicators, because if you 
>use a consistent set they will become evident over time.
>   - This would be supported further, if we *produce a de facto 
>   standard and shared it widely *(or added to the standard 
>   distribution)
>- They should be designed for light and dark themes and not influence 
>the overall theme too much.
>- Scanning down the story list it will be quick and easy to locate 
>tiddlers based on these subtle colors
>- When viewing or editing a tiddler various things will be evident 
>that may not normally be visible, like this tiddler is also a tag.
>- Using color and other elements, even just coloured shadows will not 
>impact the layout in anyway.
>- Perhaps something similar could be added to the standard list item 
>so links suggest the tiddlers content as well.
>- All this could be toggled on and off with a click.
>
> So I started this topic for *feedback and inspiration from the community*, 
> if you have any ideas such as the following please comment.
>
>- Identify elements we can style in both view and edit mode
>- Suggested meaning for things like dotted boarders
>- Or meaning full associations with colors eg; red warning, green new, 
>etc...
>- What are the ways to identify these different attributes? eg no 
>tags/tags  {{{ [{!!tags}is[blank]then[notags]] }}} {{{ 
>[{!!tags}!is[blank]then[hastags]] }}}
>- Indicating an over all wikimode?
>
> To support this effort I have also built a library of more than 800 named 
> colours, so a spectrum of colours can be used eg "Bigger tiddlers darker 
> boarder" etc...
>
> Regards
> TW Tones
>

-- 
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/2f0adff4-8f55-4b6e-80c9-c7ce895fbc70o%40googlegroups.com.


[tw5] RFC Request for Comment - color intuitions

2020-08-28 Thread TW Tones
Folks,

I have being playing with CSS and its integration into TiddlyWiki and 
realise there is more than enough opportunity especially with the new Custom 
styles by data tags 
 etc... to 
realise a smart, subtle and intuitive interface.

This is not an idea for a theme, nor even just CSS but taking a range 
tiddlywiki tiddler and page elements, that change and provide a subtle 
variation particularly with colour, pale backgrounds, boarder style, 
thickness and shadows.

Examples may be

   - A pail green background when a tiddler is in draft mode, 
   - A Dark a green border if the tiddler begins with "New Tiddler" 
   - A yellow boarder if the tiddler is an Orphan
   - A Pale grey background if the tiddler an unedited shadow
   - and many more

The idea is to take common facts about tiddlers or the wiki as a whole and 
use these to leave subtle messages to the user 

   - We need not know the exact detail of such indicators, because if you 
   use a consistent set they will become evident over time.
  - This would be supported further, if we *produce a de facto standard 
  and shared it widely *(or added to the standard distribution)
   - They should be designed for light and dark themes and not influence 
   the overall theme too much.
   - Scanning down the story list it will be quick and easy to locate 
   tiddlers based on these subtle colors
   - When viewing or editing a tiddler various things will be evident that 
   may not normally be visible, like this tiddler is also a tag.
   - Using color and other elements, even just coloured shadows will not 
   impact the layout in anyway.
   - Perhaps something similar could be added to the standard list item so 
   links suggest the tiddlers content as well.
   - All this could be toggled on and off with a click.

So I started this topic for *feedback and inspiration from the community*, 
if you have any ideas such as the following please comment.

   - Identify elements we can style in both view and edit mode
   - Suggested meaning for things like dotted boarders
   - Or meaning full associations with colors eg; red warning, green new, 
   etc...
   - What are the ways to identify these different attributes? eg no 
   tags/tags  {{{ [{!!tags}is[blank]then[notags]] }}} {{{ 
   [{!!tags}!is[blank]then[hastags]] }}}
   - Indicating an over all wikimode?

To support this effort I have also built a library of more than 800 named 
colours, so a spectrum of colours can be used eg "Bigger tiddlers darker 
boarder" etc...

Regards
TW Tones

-- 
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/d2ae6e20-45fd-4a6a-bbcd-731e3d3f4c2do%40googlegroups.com.


[tw5] Re: Regarding list bullets

2020-08-28 Thread TW Tones
Eric,  Perhaps any other css master,

I do not mean to wander too far from the OT but it seems appropriate to 
raise this.

This .myBullets class is functional but is there any other way to define 
all these css settings without repeating the major class name?, in part 
because it would be nice to repeat this in other circumstances or make the 
class name a local variable.

I will explore this myself in time but I am looking for a simpler workflow.

Regards
Tony

On Friday, 28 August 2020 12:39:25 UTC+10, Eric Shulman wrote:
>
> On Thursday, August 27, 2020 at 5:15:57 PM UTC-7, TW Tones wrote:
>>
>> This method will apply the styles to any list open on screen even in 
>> other tiddlers, if the one containing the style is displayed.
>> Can you suggest the simple method to ensure these custom styles apply 
>> only in the current tiddler?, perhaps we use a section or div around the 
>> content of the tiddler?
>>
>
> Indeed, it is as simple as wrapping the bullet list in a div with a named 
> class, and using that class in the CSS declarations, like this:
> 
> .myBullets li {list-style-type: decimal; }
> .myBullets li li {list-style-type: lower-alpha; }
> .myBullets li li li {list-style-type: lower-roman; }
> .myBullets li li li li {list-style-type: circle; }
> 
> 
>
> # Some random Question
> ## Subsection 1
> ## Subsection 2
> # Another Random Question
> ## Subsection 1
> ### Subsection 1.1
> ### Subsection 1.2
> ## Subsection 2
> ### Subsection 2.1
> ### Subsection 2.2
> # One More Random Question
> ## Subsection 1
> ### Subsection 1.1
>  Subsection 1.1.1
> # Subsection 1.1.1
> 
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/257a709e-4365-4f9c-9cd6-77667f438072o%40googlegroups.com.


[tw5] Re: [plugin] TOC generic - shows toc,backlinks,list and listed up front

2020-08-28 Thread Birthe C
HC Haase,

Thank you for your update. 
You have been missed by the way, but time is the master.


Birthe

-- 
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/3d1696e7-8478-448c-85a2-8e54e60e8aefo%40googlegroups.com.


[tw5] Re: Organising mixed Journal and 'Fact/Knowledge Base' Tiddlers

2020-08-28 Thread Eric Shulman
On Friday, August 28, 2020 at 4:41:52 PM UTC-7, TW Tones wrote:
>
> There are many ways to achieve something like this. Default tiddlers can 
> be used to load something at the top every time but another way is to use 
> the special tiddler $:/config/EmptyStoryMessage 
> 
>

Both of these methods allow the "pinned" tiddler to be closed as long as 
there are other tiddlers still showing in the Story River.

-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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ef08d8f6-5b80-4787-a994-e88403baf0dbo%40googlegroups.com.


[tw5] Re: Organising mixed Journal and 'Fact/Knowledge Base' Tiddlers

2020-08-28 Thread TW Tones
Jon,

There are many ways to achieve something like this. Default tiddlers can be 
used to load something at the top every time but another way is to use the 
special tiddler $:/config/EmptyStoryMessage 


Who's content will appear on using close all
You could transclude the tiddler {{Home}}  and add it to default tiddlers 
so home loads on starup, and if you close every thing you see home on the 
background.

This is like a pin one item.

Regards
Tony


On Saturday, 29 August 2020 03:05:26 UTC+10, Jon Light wrote:
>
>
> Hi
>
> I am a noobie, absolute convert to TiddlyWiki, its just what I have been 
> searching for during my travels through TagSpaces, CherryTree and other 
> places, loving it!!! 
>
> Is it possible to have a tiddler that is 'pinned' so as to always appear 
> position one on my home page so that I can filter all tiddlers that have a 
> particular tag so as to create a new view?
>
> Ideally I would like to create views so that clicking on a tag in top 
> pinned tiddler would give me a page listing all tiddlers having that tag.
>
> I would like to add code in the pinned tiddler that listed all tags and so 
> presented me with the option to go to a view showing only tiddlers that 
> have the tag I just clicked on, it would be nice to have a way of getting 
> back to the main selection. 
>
> One reason for wanting this is that my TiddlyWiki contains what I might 
> call information based tiddlers and also journal based tiddlers that 
> represent my thoughts and understanding relating to the fact based 
> tiddlers. At the moment my default view shows everything in chronological 
> order, I would like to split the view into one that contained only facts 
> and one that contained only journal tiddlers.
>
> Thanks in advance for any advice. 
>
>
>
>   
>
>
>

-- 
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/bd1f725f-8e91-4abb-84bb-8da36fa12749o%40googlegroups.com.


[tw5] Re: Regarding list bullets

2020-08-28 Thread David Gifford
I liked this so much I added it to the toolmap instantly.

On Thursday, August 27, 2020 at 9:39:25 PM UTC-5 Eric Shulman wrote:

> On Thursday, August 27, 2020 at 5:15:57 PM UTC-7, TW Tones wrote:
>>
>> This method will apply the styles to any list open on screen even in 
>> other tiddlers, if the one containing the style is displayed.
>> Can you suggest the simple method to ensure these custom styles apply 
>> only in the current tiddler?, perhaps we use a section or div around the 
>> content of the tiddler?
>>
>
> Indeed, it is as simple as wrapping the bullet list in a div with a named 
> class, and using that class in the CSS declarations, like this:
> 
> .myBullets li {list-style-type: decimal; }
> .myBullets li li {list-style-type: lower-alpha; }
> .myBullets li li li {list-style-type: lower-roman; }
> .myBullets li li li li {list-style-type: circle; }
> 
> 
>
>
> # Some random Question
> ## Subsection 1
> ## Subsection 2
> # Another Random Question
> ## Subsection 1
> ### Subsection 1.1
> ### Subsection 1.2
> ## Subsection 2
> ### Subsection 2.1
> ### Subsection 2.2
> # One More Random Question
> ## Subsection 1
> ### Subsection 1.1
>  Subsection 1.1.1
> # Subsection 1.1.1
> 
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ce7b78d1-dc7f-4232-ad10-429f07becff4n%40googlegroups.com.


Re: [tw5] Re: Importing a tiddler written with python?

2020-08-28 Thread Jimmy Sweeney
Thanks Mark! Adding those things to my TODO.

This is literally my first ever program that I wrote on my own. So this
little script is the equivalent of that first wobbly table that a kid makes
in woodworking. I’m just happy that it works!

I actually noticed that there are some not-so-obscure ISBNs that meta can’t
find. But there are some other tools in isbnlib for finding books so I’ll
look into that as well.

A little background on why I made this. I have a list of books read/to read
on Goodreads that I wanted to import easily into my TiddlyWiki. I also have
an xml file of exported posts from Wordpress that I’d like to import to my
TW. Now that I know it’s possible I’ll get working on a script that can do
that next (unless someone knows of something that can already do that).

On Fri, Aug 28, 2020 at 11:29 AM 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

>
>
> Nice Work!
>
> It's been a long time since using Python, but it was one of my favorite
> languages.
>
> Comments
>
> Since python has a library for everything, I'm thinking they must have a
> library for JSON. This way you don't have to build your own strings, which
> is subject to error (as you discovered). Just a thought.
>
> I don't see any error handling. What happens if someone mis-types an ISBN
> number? Or if "meta" can't find a number (I was just looking for an obscure
> ISBN yesterday -- it wasn't on Amazon).
>
> It appears you're hard-coding {{!!title}} etc. into the text field. That
> means if you want to change the appearance you will have to go back to
> every single tiddler and change it. You might want to consider using
> tiddlywiki templates instead.
>
> https://tiddlywiki.com/#TemplateTiddlers
>
> Have fun!
>
>
>
>
> On Friday, August 28, 2020 at 8:04:01 AM UTC-7, Jimmy Sweeney wrote:
>>
>> Thanks all! I figured it out!
>>
>> Mark - you were correct. I needed to get rid of any line breaks so that
>> the resulting file was all just one line.
>>
>> --
> 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/VCn3kDOmTD4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/32525d9f-6dd5-4aab-9202-35126a06f125o%40googlegroups.com
> 
> .
>
-- 
Sent from Gmail Mobile

-- 
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/CAC8Gt88J%2B3DiS6-9Nm-mjR-L57AzywUxivq-eVOgPB%2BX6KgDfQ%40mail.gmail.com.


[tw5] Re: Organising mixed Journal and 'Fact/Knowledge Base' Tiddlers

2020-08-28 Thread Mat
Jon Light,

Maybe you should consider the MenuBar 
plugin 
which adds a menu along the top edge of the screen.  

<:-)

-- 
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/b5882903-4b4c-449a-9e4b-c6f10100f4c7o%40googlegroups.com.


[tw5] Re: Regarding list bullets

2020-08-28 Thread Millo
Thanks Eric, this was very helpful.

On Friday, August 28, 2020 at 8:09:25 AM UTC+5:30 Eric Shulman wrote:

> On Thursday, August 27, 2020 at 5:15:57 PM UTC-7, TW Tones wrote:
>>
>> This method will apply the styles to any list open on screen even in 
>> other tiddlers, if the one containing the style is displayed.
>> Can you suggest the simple method to ensure these custom styles apply 
>> only in the current tiddler?, perhaps we use a section or div around the 
>> content of the tiddler?
>>
>
> Indeed, it is as simple as wrapping the bullet list in a div with a named 
> class, and using that class in the CSS declarations, like this:
> 
> .myBullets li {list-style-type: decimal; }
> .myBullets li li {list-style-type: lower-alpha; }
> .myBullets li li li {list-style-type: lower-roman; }
> .myBullets li li li li {list-style-type: circle; }
> 
> 
>
>
> # Some random Question
> ## Subsection 1
> ## Subsection 2
> # Another Random Question
> ## Subsection 1
> ### Subsection 1.1
> ### Subsection 1.2
> ## Subsection 2
> ### Subsection 2.1
> ### Subsection 2.2
> # One More Random Question
> ## Subsection 1
> ### Subsection 1.1
>  Subsection 1.1.1
> # Subsection 1.1.1
> 
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9caa3fd0-e65a-410d-aebb-48f54efd5d42n%40googlegroups.com.


[tw5] Re: Organising mixed Journal and 'Fact/Knowledge Base' Tiddlers

2020-08-28 Thread Eric Shulman
On Friday, August 28, 2020 at 10:05:26 AM UTC-7, Jon Light wrote:
>
> Is it possible to have a tiddler that is 'pinned' so as to always appear 
> position one on my home page so that I can filter all tiddlers that have a 
> particular tag so as to create a new view?
>

Try tagging the tiddler with $:/tags/AboveStory.

Note that this only renders the tiddler *content* (i.e., no tiddler frame, 
titlebar, or tiddler controls), but you can still open that tiddler as a 
normal part of the Story River to edit it.

-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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6a12073f-db29-449c-a845-d3b567248043o%40googlegroups.com.


[tw5] Organising mixed Journal and 'Fact/Knowledge Base' Tiddlers

2020-08-28 Thread Jon Light

Hi

I am a noobie, absolute convert to TiddlyWiki, its just what I have been 
searching for during my travels through TagSpaces, CherryTree and other 
places, loving it!!! 

Is it possible to have a tiddler that is 'pinned' so as to always appear 
position one on my home page so that I can filter all tiddlers that have a 
particular tag so as to create a new view?

Ideally I would like to create views so that clicking on a tag in top 
pinned tiddler would give me a page listing all tiddlers having that tag.

I would like to add code in the pinned tiddler that listed all tags and so 
presented me with the option to go to a view showing only tiddlers that 
have the tag I just clicked on, it would be nice to have a way of getting 
back to the main selection. 

One reason for wanting this is that my TiddlyWiki contains what I might 
call information based tiddlers and also journal based tiddlers that 
represent my thoughts and understanding relating to the fact based 
tiddlers. At the moment my default view shows everything in chronological 
order, I would like to split the view into one that contained only facts 
and one that contained only journal tiddlers.

Thanks in advance for any advice. 



  


-- 
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/e4fd4d3b-8623-4c66-8f2b-6113ad04e724n%40googlegroups.com.


Re: [tw5] Re: Importing a tiddler written with python?

2020-08-28 Thread 'Mark S.' via TiddlyWiki


Nice Work!

It's been a long time since using Python, but it was one of my favorite 
languages.

Comments

Since python has a library for everything, I'm thinking they must have a 
library for JSON. This way you don't have to build your own strings, which 
is subject to error (as you discovered). Just a thought.

I don't see any error handling. What happens if someone mis-types an ISBN 
number? Or if "meta" can't find a number (I was just looking for an obscure 
ISBN yesterday -- it wasn't on Amazon).

It appears you're hard-coding {{!!title}} etc. into the text field. That 
means if you want to change the appearance you will have to go back to 
every single tiddler and change it. You might want to consider using 
tiddlywiki templates instead. 

https://tiddlywiki.com/#TemplateTiddlers

Have fun!




On Friday, August 28, 2020 at 8:04:01 AM UTC-7, Jimmy Sweeney wrote:
>
> Thanks all! I figured it out! 
>
> Mark - you were correct. I needed to get rid of any line breaks so that 
> the resulting file was all just one line.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/32525d9f-6dd5-4aab-9202-35126a06f125o%40googlegroups.com.


[tw5] Re: Variable scope question

2020-08-28 Thread 'Werner' via TiddlyWiki


OK, here's what worked for me. It took me a bit to figure it out, 
especially for making it work on a JSON tree, but it works.

\define makeRowspan()
 <$vars currentAction={{{ [all[current]indexes[Actions]sort[]first[]] }}} 
cnt="0" >
  <>
 
\end

define addRows() 
 <$set name="Items" filter=
"[all[current]indexes[Actions]addprefix[Actions/]addsuffix[/Items]]" select
=<> >
  <$set name="itemCount" value={{{ [all[current]indexescount[]] }}} >
   <$vars cnt={{{ [add] }}} >
<$list variable="currentAction" filter=
"[all[current]indexes[Actions]sort[]after]" emptyMessage=
"<>" >
 <>

   
  
 
\end

and then in the 

<$wikify name=rows text=<> >
> > 
...

Thanks so much, Saq and Tony, this took me a lot further on the learning 
curve. Without you, I would have never come across using first[] and 
after[].

Best, Werner



Am Donnerstag, 27. August 2020 19:56:38 UTC+2 schrieb Saq Imtiaz:
>
> @werner precisely, its a recursive macro that processes each row, and 
> calls the macro again with the next row, inside a new vars widget with the 
> new incremented value of the variable.
>
> The emptyMessage is triggered at the end and gives the final cumulative 
> value.
>
> On Thursday, August 27, 2020 at 6:36:01 PM UTC+2 Werner wrote:
>
>> Thanks, Saq, so this means you are using recursion? Didn't realize this 
>> was possible in TW. I will yet have to try it out and get back to you.
>>
>>
>> Am Mittwoch, 26. August 2020 22:41:16 UTC+2 schrieb Saq Imtiaz:
>>>
>>> I'm a bit tired so this isn't as clear as I would like, but hopefully 
>>> this pseudocode will point you in the correct direction for the pattern for 
>>> getting this done with just wikitext:
>>>
>>> \define processRow()
>>> nestedRows = level2 +count[]
>>> <$vars cnt={{{[add]}}}>
>>> <$list filter="[[allrows] +[after]]" 
>>> emptyMessage="<>">
>>> <>
>>> 
>>> 
>>> \end
>>>
>>> \define processAllRows()
>>> <$vars currentTiddler={{{[allrows] + first[]}}} cnt="0">
>>> <>
>>> 
>>> \end
>>>
>>> > > or set it to a variable for re-use.
>>>
>>> On Wednesday, August 26, 2020 at 9:16:30 PM UTC+2 Werner wrote:
>>>
 Good evening guys, me again.

 I understand that the scope of a variable is defined by the enclosing 
 <$vars> <$set> or <$wikify> widgets. I also understand that any new <$set> 
 widget opens up a new scope, where a variable  defined in an outer 
 scope would be overridden. I am facing a problem where I would need to 
 access out-of-scope variables (or come up with a completely different 
 approach).

 I am still working on a set of double-nested JSON data (using Josh 
 Fontany's JSONmangler plugin). I want to display the content of the data 
 in 
 a table using table cells spanning multiple rows like . 
 The problem here is, the rowspan is defined by the number of elements in 
 the lowest nested level and I would need it before rendering the table and 
 looping through the array elements fetching the data. So typically, in a 
 garden variety programming language, I would do something as follows:

 totalRows = 0
 Loop through Level1
nestedRows= Level2.count()
totalRows += nestedRows
 End Loop

 Could anybody enlighten me, if a construct like this is possible in TW 
 and how I would achieve it?

 Two fallback options: 
 - storing the number of elements in the JSON structure (yuck - feels 
 like cheating).
 - throwing the whole JSON data structure at an JS macro. Positive side 
 effect: I would have to dive into it and learn something new.

 Thanks for helping me out on this.
 Best, Werner







-- 
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/25008790-0ef4-4215-971c-b44a53db2e42o%40googlegroups.com.


Re: [tw5] Re: Importing a tiddler written with python?

2020-08-28 Thread Jimmy Sweeney
Thanks all! I figured it out!

Mark - you were correct. I needed to get rid of any line breaks so that the
resulting file was all just one line.

If anyone else wants to use my program, here it is:
https://github.com/sweenejp/files/blob/master/isbn_to_json_for_tiddlywiki.py
and
an example of an output file here:
https://github.com/sweenejp/files/blob/master/Cosmos.json

Sorry the python code is a little messy (I'm very much a beginner at
coding). I made everything a field and then had certain fields transcluded
into the text field. You can change the fields to whatever you want (for
instance the "tags" field).

Pretty cool to know that TiddlyWiki files are basically like Python
dictionaries. Now that I say that, I'm sure there would have been a much
cleaner way to write my code. I could have just created a dictionary based
on the keys and values that a Tiddler requires. Oh well.

Thanks for all the help!

On Thu, Aug 27, 2020 at 5:51 PM TW Tones  wrote:

> FYI: Someone has already done an ISBN tiddler, Not sure where, sorry.
>
> Tones
>
> On Friday, 28 August 2020 06:24:38 UTC+10, Jimmy Sweeney wrote:
>>
>> Hi there,
>>
>> Would anyone have any clues why this file
>> 
>> isn't importing nice and cleanly into my TiddlyWiki? It imports but not
>> nice and clean like dragging and dropping a tiddler from another TiddlyWiki
>> site does.
>>
>> I'm trying to create a python script that creates tiddler files. I input
>> the ISBN (a book ID number essentially) and spits out a tiddler file with
>> the title, author, cover image, etc.
>>
>> Anyway, I based my format on the format of a Tiddler
>>  that I
>> exported from tiddlywiki.com .
>>
>> What magic ingredients am I missing?
>>
>>
>> --
> 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/VCn3kDOmTD4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/fca6251b-d5ad-4657-9f94-bcd7332c8a52o%40googlegroups.com
> 
> .
>


-- 
414 5540826

-- 
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/CAC8Gt8_QvJMD80gNmVhQyTTamkpqp3msubLYUQM1wqJG_z8vyQ%40mail.gmail.com.


[tw5] Re: Day Number

2020-08-28 Thread Ed Heil
Hey, thanks all.  

That macro is outstanding.  I'd definitely rather exploit existing filter 
techniques than add in a plugin!

I had run across the term "ordinal date" in wikipedia for this thing, and 
"day of year" would also be an intuitively clear way to refer to it.  I'll 
pick one of those to use for my field. :)

On Thursday, August 27, 2020 at 7:52:50 PM UTC-4 Eric Shulman wrote:

> On Thursday, August 27, 2020 at 4:08:23 PM UTC-7, TW Tones wrote:
>>
>> For clarity we would call this the "day of year number" DOY
>>
>
> Based on my recent work with time and date (
> http://TiddlyTools.com/timer.html), I have learned quite a bit about date 
> nomenclature.
>
> In fact, there is a well-defined international standard, ISO-8601 (
> https://en.wikipedia.org/wiki/ISO_8601 
> ), that defines how 
> dates are represented and referenced
>
> Using that international standard, the "day of year number" is called the 
> *"ordinal 
> date"* (https://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates).
>
> Similarly, the standard defines the "week of year" number, which is just 
> referred to as the *"week number"* (
> https://en.wikipedia.org/wiki/ISO_week_date).
>
> There is also a standard for "*weekday number*" which is *"a digit d from 
> 1 through 7, beginning with Monday and ending with Sunday"*
>
> Note that the TWCore date formatting (https://tiddlywiki.com/#DateFormat) 
> that 
> is used by the <> macro already supports "week number" using "WW" and 
> "0WW" formatting codes.  It also supports both 4-digit and 2-digit "year 
> number with respect to week number, using "w" and "wYY" formatting 
> codes respectively.
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d16bcfc3-bb3f-4645-af2b-9287815301c1n%40googlegroups.com.


[tw5] Re: Split a Date, show as text not link?

2020-08-28 Thread PMario
On Friday, August 28, 2020 at 1:03:24 AM UTC+2, TW Tones wrote:
>
> Amreus, Et Al...
>
> I do think there ought to be some sort of shortcut syntax for non-linked 
>> text in filtered transclusion.  I wouldn't have a preference yet as to how 
>> it might look.
>>
>
> I totally agree with this, but rather than say "non-linked text". I would 
> say plain text. Its such a fundamental need, the long winded text widget is 
> a pain when reading code.
>
> Just as a suggestion what it triple single quotes delimited it?
>
> '''{{{[[2020-06-26]split[-]first[]]}}}'''
>

There is a discussion at github about this exact problem. Discussion about 
a possible solution starts here: 
https://github.com/Jermolene/TiddlyWiki5/issues/4816#issuecomment-673971149 
.. .You'll also need to read the following posts from Jeremy. 

So there is a chance that we get a fix. .. You may want to +1 your 
favorites at the github issues page. 

-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/8a839d2b-1d85-42c9-9789-e31721a4fc6bo%40googlegroups.com.


[tw5] Re: Overriding class style

2020-08-28 Thread demon...@gmail.com
Ah thank you all, I think the easist for the time being is just to sort the 
stylesheets in my own order! 



On Thursday, August 27, 2020 at 8:57:03 PM UTC+3 PMario wrote:

> Hi, 
>
> The ControlPanel : Info : 
> Advanced : Stylesheet  - menu
>
> allows you to drag & drop sort the stylesheets. ... So the *lower in the 
> list*, the *higher* the *priority*. 
>
> -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/f7871e36-14c3-44df-b0bc-48ec396f2133n%40googlegroups.com.