Re: [tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Mohammad Rahmani
Well, I thought using regex could be easier here, but I could not find a simple solution! Best wishes Mohammad On Mon, Apr 12, 2021 at 1:38 AM Charlie Veniot wrote: > Yeah, that would be more flexible to modify the rules. Which would be > also nice in the sense that you could use the data

Re: [tw5] TiddlyForms Idea / Prototype

2021-04-11 Thread Mohammad Rahmani
Really great! So making complex UI seems getting easier! Thank you for Sharing! Best wishes Mohammad On Mon, Apr 12, 2021 at 4:15 AM Charlie Veniot wrote: > G'day all, > > Instead of writing too much as I'm prone to do, I decided to do a video > instead. > > Seeing as I have a face for

[tw5] Re: Refnotes plugin: New release 1.6.3

2021-04-11 Thread Mohammad
If you have Kookma Plugin Library installed, simply visit you Wiki $:/ControlPanel, open Plugins Tab, click on Get More Plugins button, open Kookma Plugin Library and update! Best wishes Mohammad -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.

[tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Charlie Veniot
*[enlist:raw[$inputTitle$]first[1]lowercase[]sentencecase[]]* can be replaced with something way shorter, but I prefer this to hopefully "future-proof" the filter and keep things consistent. An alternative that seems to work A-1: *[[$inputTitle$]lowercase[]sentencecase[]]* On Sunday,

[tw5] Refnotes plugin: New release 1.6.3

2021-04-11 Thread Mohammad Rahmani
Refnotes plugin has got a new update 1.6.3 This is a major update! - Demo: https://kookma.github.io/TW-Refnotes - Code: https://github.com/kookma/TW-Refnotes If you like it - test and send feedback - star it at GitHub References 1.

[tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Charlie Veniot
Fun coding exercise ! I should be doing chores, but I must tackle this first. Back in a bit ... On Sunday, April 11, 2021 at 8:16:53 AM UTC-3 Mohammad wrote: > I am trying to *peacefully *;-) :-) :-) convert the title of a book or > article to title case (see >

[tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Charlie Veniot
*NOTE: In the code below, I only applied lowercasing rules to a few of the many short conjunctions/articles/prepositions. A final solution would expand the code to include all of the short words.* Ok, that was fun. Here's how I approached it (paste the following content into a new tiddler)

Re: [tw5] Displaying HTML via _canonical_uri blocks CSS (sandbox)

2021-04-11 Thread Jeremy Ruston
Hi Mark As you suggest, rolling your own iframe with something like this macro might be workable in some situations: \define non-sandboxed-iframe(title) get[_canonical_uri]] }}}> \end In terms of improving core support, an obvious solution would be some sort of “_sandbox” field on text/html

Re: [tw5] Displaying HTML via _canonical_uri blocks CSS (sandbox)

2021-04-11 Thread Jeremy Ruston
Thanks Mohammad, the fix should be up in a few minutes, Best wishes Jeremy -- Jeremy Ruston jer...@jermolene.com https://jermolene.com > On 11 Apr 2021, at 11:27, Mohammad Rahmani wrote: > >  > Hi Jeremy! > > > >> On Sun, Apr 11, 2021 at 1:59 PM Jeremy Ruston >> wrote: >> Hi Mark >>

Re: [tw5] Re: video embedded in modal - how to call with link instead of button?

2021-04-11 Thread Sapphireslinger
That DetailsWidget list calls for 36 video Detailwidgets, each approximately 45 minutes. The first detailwidget I open, it is blank for 7 seconds, then a black rectangle appears and finally the player controls appear *24 seconds* later. I timed it with a timer. However, every video I click

Re: [tw5] Displaying HTML via _canonical_uri blocks CSS (sandbox)

2021-04-11 Thread Mohammad Rahmani
Hi Jeremy! On Sun, Apr 11, 2021 at 1:59 PM Jeremy Ruston wrote: > Hi Mark > > As you suggest, rolling your own iframe with something like this macro > might be workable in some situations: > > \define non-sandboxed-iframe(title) > get[_canonical_uri]] }}}> > \end > > In terms of improving

[tw5] Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Mohammad Rahmani
I am trying to *peacefully *;-) :-) :-) convert the title of a book or article to title case (see https://apastyle.apa.org/style-grammar-guidelines/capitalization/sentence-case ) So I wrote a code like below \define myTitle() multidisciplinary and multicultural knowledge transfer and sharing in

[tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Charlie Veniot
Bad testing on my part. That shorter alternative does not work. On Sunday, April 11, 2021 at 12:15:26 PM UTC-3 Charlie Veniot wrote: > *[enlist:raw[$inputTitle$]first[1]lowercase[]sentencecase[]]* can be > replaced with something way shorter, but I prefer this to hopefully > "future-proof"

[tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread 'Mark S.' via TiddlyWiki
What is "!isblack[]" ? That looks like fairly short, crisp code. On Sunday, April 11, 2021 at 4:16:53 AM UTC-7 Mohammad wrote: > I am trying to *peacefully *;-) :-) :-) convert the title of a book or > article to title case (see >

[tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Charlie Veniot
Total aside: to me, a good idea to explicitly deal with each kind of word, versus doing some kind of regexp thing. Because of two-letter person names , for example. Also, it might be a good idea to have some sort of override

[tw5] Re: [Plugin] MegaMenu – A scalable menu for your wiki!

2021-04-11 Thread jc-ose
Hi guys, Thanks again for the feedback. I've finally got around to updating the plugin to incorporate several of your suggestions. Hopefully this helps make the plugin more useful! I'm open to more ideas if anyone has any. [Plugin Update to 1.0.8] 1. Made the "root tag" select-able to

[tw5] freelinks alias-variant request, partial workaround

2021-04-11 Thread springer
Dear all, Freelinks are especially great when text gets dumped into a wiki from multiple sources (such as students in a class, or excepts from texts), and where the main author/curator of the wiki can't or shouldn't modify the text generated by other authors. Currently, out of caution

[tw5] TiddlyForms Idea / Prototype

2021-04-11 Thread Charlie Veniot
G'day all, Instead of writing too much as I'm prone to do, I decided to do a video instead. Seeing as I have a face for radio, I should be a natural for video recording, right? Ugh. I have such a hard time speaking while juggling my thoughts (herding puppies and kittens!), I can't translate

Re: [tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Mohammad Rahmani
Hi Charlie, Many thanks for the proposed solution! Best wishes Mohammad On Sun, Apr 11, 2021 at 7:39 PM Charlie Veniot wrote: > *NOTE: In the code below, I only applied lowercasing rules to a few of > the many short conjunctions/articles/prepositions. A final solution would > expand the

[tw5] Just an interesting quote about nonsequential writing

2021-04-11 Thread Charlie Veniot
This quote from Ted Nelson kind of explains a little bit why I love Wikis so much: "Writing nonsequentially will better disclose the true structure of ideas, permit the reader freer understanding of material, and permit new expository, stylistic and rhetorical inventions." *From a memo Ted

[tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Charlie Veniot
Yeah, that would be more flexible to modify the rules. Which would be also nice in the sense that you could use the data feeding the filter to also feed a documentation page to present nice help info related to the rules for Title Case. Entered once, and multi-purpose. Very cool. But, it

Re: [tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Mohammad Rahmani
Hi Mark, It was split[ ]!is[blank] Best wishes Mohammad On Sun, Apr 11, 2021 at 9:59 PM 'Mark S.' via TiddlyWiki < tiddlywiki@googlegroups.com> wrote: > What is "!isblack[]" ? > > That looks like fairly short, crisp code. > > On Sunday, April 11, 2021 at 4:16:53 AM UTC-7 Mohammad wrote: >

Re: [tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Mohammad Rahmani
I did not note that, your solution consider the first word! Best wishes Mohammad On Sun, Apr 11, 2021 at 7:39 PM Charlie Veniot wrote: > *NOTE: In the code below, I only applied lowercasing rules to a few of > the many short conjunctions/articles/prepositions. A final solution would >

[tw5] filter question

2021-04-11 Thread James Anderson
Hello, Probably quite a basic filter question: I have a tiddler named "a" with this expression in it: <$list filter="[tag[example]contains:rei[a]]"><$transclude tiddler={{!!title}} mode=block/> And a couple of other tiddlers tagged "example" with a "rei" field that contains "a" and a few

[tw5] Re: filter question

2021-04-11 Thread 'Mark S.' via TiddlyWiki
Try: <$list filter="[tag[example]contains:rei{!!title}]"><$transclude tiddler={{!!title}} mode=block/> Outside a filter, transclusions use {{!!myfield}} (double braces). Inside a filter, they replace the square brackets ...{!!myfield}... (single set of braces). You can use the regexp

[tw5] Re: filter question

2021-04-11 Thread James Anderson
Thanks on both counts M.ark, the filter worked! James On Sunday, 11 April 2021 at 21:40:25 UTC+1 Mark S. wrote: > Try: > > <$list filter="[tag[example]contains:rei{!!title}]"><$transclude > tiddler={{!!title}} mode=block/> > > Outside a filter, transclusions use {{!!myfield}} (double

Re: [tw5] Re: Question: Title case but not for prepositions and conjugations except if it is the first

2021-04-11 Thread Charlie Veniot
Yeah, sneaky me! I really did have a lot of fun putting that together. All cylinders were firing fiercely. Best kind of "brain age" game. On Sunday, April 11, 2021 at 4:04:43 PM UTC-3 Mohammad wrote: > Hi Mark, > It was split[ ]!is[blank] > > > > Best wishes > Mohammad > > > On Sun, Apr