Thanks, that should make the TagCloud a realistic option! I'm still 
primarily interested in the table (e.g., for scrolling on a phone) though.

> Try these subfilters

Unfortunately that did not restrict the count (to within the added 
category). It also caused the table to be no longer sorted by the count, 
nor alphabetically. So I don't really understand what it did. :)

> You might even be able to do "OR" combinations like this

(OR combinations would also be cool!)

Now I also noticed that the first solution (which I said works) doesn't 
actually seem to sort alphabetically those Tiddlers with equal count. (I 
recall thinking that it did, but looking more closely, they seem random to 
me apart from the count as the primary sort.)

Thanks for your patience despite my delay - I don't always have a wiki day 
:)
Teo

On Friday, August 7, 2020 at 8:20:10 PM UTC+3 Eric Shulman wrote:

> On Friday, August 7, 2020 at 8:37:37 AM UTC-7, Teo Piitulainen wrote:
>>
>> Thank you, that solved it!
>>
>
> YAY!
>  
>
>> (The cloud view was actually quite unusable with some of my categories 
>> containing >100 entries and their counts ranging from 1 to triple digits 
>> :-) )
>>
>
>  In TiddlyTools/FilterGenerators/TagCloud, the tag-pill-styles() macro 
> includes this line:
> font-size:calc(0.5em + (0.2em * ($(count)$ / 5) ) );
>
> The first number (0.5em) is the smallest font size to use.  The second 
> number (0.2em) is the font size increment.  The third number (5) is the tag 
> count for each group.
>
> For the default values above:
> The smallest tags will use 0.5em font size,
> increasing to 0.7em if there are 5 or more tagged items,
> increasing to 0.9em if there are 10 or more tagged items,
> increasing to 1.1em if there are 15 or more tagged items,
> etc.
>
> If you have a wide range of tag counts, you can adjust the tag pill 
> scaling calculation so the font size of the most frequent tags doesn't get 
> too big.
> In particular, if you make the tag count larger (e.g. by changing "5" to 
> "25"), this will keep the scaling from increasing too much.
> You could also make the font size increment smaller (e.g. by changing 
> 0.2em to 0.1em).
> font-size:calc(0.5em + (0.1em * ($(count)$ / 25) ) );
>
> I was further wondering if the subfilter could be an even stricter filter, 
>> e.g. do the count only for "books", "papers", or an intersection like 
>> "English" + "books"?
>>
> This way, such tables could show the count distribution of any tag 
>> category (e.g. "topics") within any intersection of categories.
>> * Of course, clicking on the tag pill would still pop-up-list all the 
>> Tiddlers with that tag, even if the subfiltered count were more restricted.
>
>
> Try these subfilters (one at a time, of course!):
> \define sub() [tagging[]tag[books]count[]]
> \define sub() [tagging[]tag[papers]count[]]
> \define sub() [tagging[]tag[English]tag[books]count[]]
>
> You might even be able to do "OR" combinations like this:
> \define sub() [tagging[]tag[English]tag[books]] [tagging[]tag[French]tag[
> books]] +[count[]]
>
> Let me know how it goes...
>
> enjoy,
> -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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e5bd871d-f97f-4945-81e5-a3b7cb45dbdan%40googlegroups.com.

Reply via email to