[tw5] Re: Remove last character of a tiddler's text within a macro

2019-08-25 Thread TonyM
I would think transforming a field to a variable is a good approach <$set name=fieldname value={{!!fieldname}} emptyValue="DefaultValue"> You can than use <> or in filters or in macros $(fieldname)$ or <<__fieldname__>> or if used as a parameter $fieldname$ Notice how it is often fine using t

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread TonyM
Mohammad, This is becoming a very helpful resource. thanks for sharing your work, I noticed the test for leading caps in a title - I discovered a method on this to capitalise only when needed, for example try this in a tiddler named tiddlername <> or in 5.1.20 (First to lowercase is a good pat

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread TonyM
Folks, Sorry for my absence for a while. The IP address idea the first character in each number should be [0-2] because only 0, 1 and 2 are valid in the hundreds position. The idea would be to accept a value such as 124.3.0.1 and determine if it was valid ie no number between the dots should b

[tw5] Re: custom build target?

2019-08-25 Thread TonyM
Spencer, People are already doing similar things already and there are a number of approaches. You could take an empty tiddlywiki and craft it as your published site and design it so you can drag and drop import content. You then copy overwrite the public copy. You could generate and save or

[tw5] Re: Remove last character of a tiddler's text within a macro

2019-08-25 Thread MagoArcade
Wow - thanks Mark - that did it. That's some spot and some regex/tw coding right there! -- 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...@goo

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread Mohammad
See the latest update of documentation wiki in that most part of this thread has been documented rev: 0.5 url: http://tw-regexp.tiddlyspot.com/ --Mohammad On Sunday, August 25, 2019 at 11:34:11 PM UTC+4:30, @TiddlyTweeter wrote: > > Mark S. wrote: >> >> I think he means "02" literally. Usually

[tw5] Re: Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-25 Thread Mohammad
*Announcement: RegExp in Tiddlywiki* *Date: Aug 25, 2019* *Status: In progress* *Updated to Release 0.5* This update uses tag to collect all tiddlers describing a regexp pattern. These tiddlers have two fields a below and tagged with pattern - pattern - description A demo uses description an

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread Mohammad
Thanks Mark Thanks Josiah, I correct the example in documentation wiki http://tw-regexp.tiddlyspot.com/ Both of you help to demystify regexp (very scary when you are familiar and look at its strange pattern!!) in Tiddlywiki. I think (as Mat also noted) a better understanding of regexp can help

[tw5] Announcing Tiddlywiki and regexp Examples: Documentation wiki

2019-08-25 Thread Mohammad
*Announcement: RegExp in Tiddlywiki* *Date: Aug 25, 2019* *Status: In progress* *Purpose: Learn regexp in Tiddlywiki* Based on the great works of some Tiddlywikians a documentation wiki dedicated to learn and practice regular expression in Tiddlywiki has been created. Mostly Mark S and Tiddlytwe

[tw5] Re: [MATLAB script] Spreadsheet to tiddlers

2019-08-25 Thread Anjar
Wow that's a very impressive plugin, Mark! søndag 25. august 2019 20.26.51 UTC+2 skrev Mark S. følgende: > > You can convert spreadsheets with TW alone: > > https://tiddlywiki.com/editions/xlsx-utils/ > > On Sunday, August 25, 2019 at 7:01:08 AM UTC-7, Anjar wrote: >> >> >> I know MATLAB is quit

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread 'Mark S.' via TiddlyWiki
Most of your examples have an implied scope of the entire tiddler title. That is, if the tiddler can only have lower case letters, then *every single character* from start to end (^ to $) has to be lowercase. But duplicate words can start and end anywhere inside the title, so the scope doesn't

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
Mark S. wrote: > > I think he means "02" literally. Usually IP numbers aren't padded, so not > sure. > > It's the range 0-255 that's problematic. Here's what I have for the range: > > IP range > 0-256 > IF that means numbers 000 to 255 it looks doable. Hmm, I guess with an IP you could add the

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
Mohammad wrote: > > It seems the problem is with *^$*. > There are definitely issues with "scope" in TW that are currently unclear. Regex will fail, or do unexpected things, if its not fully clear what the context the regex is working in. This needs clarifying IMO. TT -- You received this

[tw5] Re: custom build target?

2019-08-25 Thread Spencer Wilson
hey scot, thanks for this-- it appears to be tied to tiddlyspot. perhaps i can reverse-engineer it, but my hope is to find a way that works with TW core... On Sunday, August 25, 2019 at 3:55:07 PM UTC+1, scot wrote: > > Hello Spencer Wilson, > you may be interested in this link. > > http://pub

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread Mohammad
Thanks Mark and Josiah, It seems the problem is with *^$*. I removed them and it works. But not sure where they are required. @Josiah, I add the consecutive duplicate words! Thank you again --Mohammad On Sunday, August 25, 2019 at 10:34:13 PM UTC+4:30, @TiddlyTweeter wrote: > > Mohammad >

[tw5] Re: [MATLAB script] Spreadsheet to tiddlers

2019-08-25 Thread 'Mark S.' via TiddlyWiki
You can convert spreadsheets with TW alone: https://tiddlywiki.com/editions/xlsx-utils/ On Sunday, August 25, 2019 at 7:01:08 AM UTC-7, Anjar wrote: > > > I know MATLAB is quite expensive, so maybe someone knows if similar tools > (or maybe not-plugin scripts in general?) have been created in py

[tw5] Re: Multi-value fields

2019-08-25 Thread Damon Pritchett
Thanks to all who have commented. I love the discussion and have found it very helpful as I always do in this group. Tiddlywiki Rocks! Damon On Saturday, August 24, 2019 at 11:32:38 AM UTC-7, Damon Pritchett wrote: > > Hello all, > > Forgive me if this topic has been addressed before, but I cou

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
Mohammad I'm not sure how much spaced repetition is an issue really ("I had an old an clock")? The commonest issue is simple sequential repeating ("I had an an ..."). But Mark's regex works on test data. Though I'd simplify it to ... (\b\w{2,}\b)(.*)\1 Example match in test data (match in li

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread 'Mark S.' via TiddlyWiki
I think he means "02" literally. Usually IP numbers aren't padded, so not sure. It's the range 0-255 that's problematic. Here's what I have for the range: IP range 0-256 Hmm, I guess with an IP you could add the mandatory delimiter (usually ".") and repeat the group. But you would have to man

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread 'Mark S.' via TiddlyWiki
Try Duplicate words On Sunday, August 25, 2019 at 8:29:10 AM UTC-7, Mohammad wrote: > > The duplicate words does not work! > > It seems only if the first word of title repeated it will be matched. Look > at the below two tiddler titles > > >1. This is a Tiddler This is Nice >2. Nice Tid

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread Mohammad
The duplicate words does not work! It seems only if the first word of title repeated it will be matched. Look at the below two tiddler titles 1. This is a Tiddler This is Nice 2. Nice Tiddler is This Tiddler The pattern will match the first but ignore the second while both have a duplic

[tw5] custom build target?

2019-08-25 Thread scot
Hello Spencer Wilson, you may be interested in this link. http://publish.tiddlyspot.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...@goo

[tw5] custom build target?

2019-08-25 Thread Spencer Wilson
new TW5 user here, really awesome concept and i'm excited that the community is so active. i'm hoping that TW can help me organize my notes for personal projects, academic work, and documentation all in one customizable, open-source platform. i have a question which i searched for but was unab

[tw5] Problems with FileSystemPaths-Config since v5.1.20

2019-08-25 Thread Mirko Richter
Hi, i upgraded my TW5 v5.1.19 to v5.1.20 (tag) and realized that my former *$:/config/FileSystemPaths*-config doesn't work properly anymore (Node JS). The tiddler-content is as follows: created: 20190715044104252 modified: 20190716151800429 tags: title: $:/config/FileSystemPaths [is[system]re

[tw5] [MATLAB script] Spreadsheet to tiddlers

2019-08-25 Thread Anjar
Hi, Maybe it exists already, but I made a simple MATLAB script to convert a spreadsheet to tiddlers in .tid format (so one can just drag and drop them to a wiki). The top row in the spreadsheet should be field names, where one cell needs to contain "title" and another "text". If standard fields

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
TonyM wrote: > > [02][0-255][0-255][0-255] > > [192][168][0-255][0-255] > Do you mean "02" *literally?* In regex [02] means "0" OR "2". The pattern can be matched I'm sure. But you need clarify what are "literals" & what are ranges. TT -- You received this message because you are subscribed t

[tw5] Re: Multi-value fields

2019-08-25 Thread TonyM
A Gloom, A lot of people her have similar backstories. I think the people that stick with Tiddlywiki discover the power of some basic "programming" or advanced macro techniques that empower them to take control of their own software platform. In the modern world these are surprisingly uncommon

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread TonyM
Thanks Josiah/TT So this suggests to me I may be able to test if an IP address is valid or in a local domain - [02][0-255][0-255][0-255] [192][168][0-255][0-255] Or variations there of? Have you put together some examples of the basic methods in tiddlywiki?. One would be the \define of the r

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread Mohammad
For date like 25th August 2019 1st January 2020 2nd February 2018 does the below pattern is correct? \d{2}(st|nd|rd|th)\s{1}(January|February|March|April|May|June|July|August| September|October|November|December)\s{1}\d{4} These are kind of date is used by Tiddlywiki journal. --Mohammad --

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
TonyM A bit more. Slightly more advanced. You could do a "pseudo-range" in regex like below. The regex uses "alternation", *"|", *to separate decade ranges, its a bit like an OR construct. (Though in regex its a pattern that advances from left to right, recusing through alternates, till there

[tw5] Re: CSS and TiddlyWiki - Open discussion

2019-08-25 Thread TonyM
Folks, Whilst I am still learning css I do have an understanding of how it works. I can also see various approaches to handling it. Though it is not a simple matter, it can be done this way or that. We need to collate and publish an approach to using it with specific knowledge of how it opprrat

[tw5] Re: Multi-value fields

2019-08-25 Thread PMario
Hi, I think the listops functions is what you want: https://tiddlywiki.com/#ActionListopsWidget 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

[tw5] Re: Multi-value fields

2019-08-25 Thread Flibbles
What @TonyM said. Just store colors in a field as space separated, like: "red black brown". List and enlist can separate them out just fine. ``` <$list filter="[list[Cardinal!!colour]]" /> <$list filter="[enlist{Cardinal!!colour}]" /> ``` both output ``` red black brown ``` Values with a space are

[tw5] Re: CSS and TiddlyWiki - Open discussion

2019-08-25 Thread @TiddlyTweeter
TonyM CSS in TW is much more logical than is usually the case. That is a correlate of it being a framework and THEN Tiddlers that are ALWAYS and ONLY identically structured for their outer "box" in the default. So there are two aspects. 1 - Normalisation of framework to another style-set 2 -

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
Mohammad I think about it. And keeping is simple. If I can't keep it simple enough I won't do it. It is actually a good case because it has *"small variations" *on e/E in the pattern. TT On Sunday, 25 August 2019 11:42:10 UTC+2, Mohammad wrote: > > Hi Josiah, > Mat explained it, BUT to keep

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
Mat wrote: > > > P.S What is that noise? Is that Josiah screaming curses, pulling his hair > and smashing his computer? ;-) > Tx Mat, Actually it's a change to be able to address issues in a way I can actually do with a sense of basic competence. :-). J. -- You received this message beca

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread Mohammad
Hi Josiah, Mat explained it, BUT to keep it practical and simple I would only need the below - _dp or _myprecision only appear at the end - decimal point can appear anywhere but not after _ - so a number like .123_dp is valid - so a number like ._dp is valid - so 1.23e4_

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
Very helpful! On Sunday, 25 August 2019 11:21:01 UTC+2, Mat wrote: > > Here's a wikipedia article on scientific notation / E notation > > https://en.wikipedia.org/wiki/Scientific_notation > > <:-) > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
Ciao TonyM Thanks. I now better understand what you are trying to do. The example below illustrates (1) "matching magnitude" (that regex can do; it can become, sort-of, a peasant's "pseudo-range" :-); (2) "matching length". Ask if you need any clarification. Because it uses *"[...]" *charac

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread Mat
Here's a wikipedia article on scientific notation / E notation https://en.wikipedia.org/wiki/Scientific_notation <:-) -- 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

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread Mat
@TiddlyTweeter wrote: > > > To get a preciser match I'd like to know where in the number "e" can > appear. > Since it means "10^e", the "e" is "functionally" at the end but it might not appear to be since the exponent can be any number e.g 1.2e-334556.232564264 (which means 1.2*10^-334...

[tw5] Re: a bug with the tabs macro calling javascript macro ?

2019-08-25 Thread PMario
Hi, Also see: https://tiddlywiki.com/#tabs%20Macro ... the last paragraph. -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.

[tw5] Re: CSS and TiddlyWiki - Open discussion

2019-08-25 Thread Mat
TonyM wrote: > > I would like to suggest we develop and document some guidelines and > techniques for making the most of html and css in the context of a tiddler. > Is it not just a matter of specificity and knowing about How to apply custom styles?

[tw5] Re: Multi-value fields

2019-08-25 Thread A Gloom
> > The list ops operators are all about multivalue fields. Tag is and they > are often lists of titles they can be any values. > I haven't gotten to the more advanced list functions like listops or enlist-- but will be now that you made me aware of the multi value capability : ) I am not re

[tw5] Re: CSS and TiddlyWiki - Open discussion

2019-08-25 Thread A Gloom
> > But I have noticed the style sections if displayed apply to the whole > window. So its necessary to to ensure they are scoped. True. That why you have to use unique class names for that tiddler-- to keep it from effecting the rest of the window... .class_name_for_this_tiddler_only { }

[tw5] Re: CSS and TiddlyWiki - Open discussion

2019-08-25 Thread TonyM
I was replying to gloomy :) But I can reply to you. I am all for reusable code but we need to support a standard to which we can rely for the tiddler scope, all tiddlers, specific tiddlers or so tagged etc... Its the middle ground we are after. Tony -- You received this message because you

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
Ciao Mohammad To get a preciser match I'd like to know where in the number "e" can appear. Its it *always* near the end? For instance ... +1.23e4_dp -1.23e4_dp 1.236e+5_dp -1.23e-5_wp In these "e" is *left-offset* from "_" either 2 or 3. In that *always* the case? TT On Sunday, 25 August 2

[tw5] Re: Tiddlywiki and regexp examples

2019-08-25 Thread @TiddlyTweeter
> > Mark S. wrote: >> >> My trick is to "flatten" the text before applying the target regular >> expression >> >> ...tiddlers...splitregexp[\n]join[ ]splitregexp ... >> > > Mat wrote: > These nuggets should probably be in the official docs. While it "is about > regex, not TW" it IS about regex

[tw5] Re: CSS and TiddlyWiki - Open discussion

2019-08-25 Thread Mat
TonyM wrote: > > But I have noticed the style sections if displayed apply to the whole > window. So its necessary to to ensure they are scoped. (who ya talkin' to?) If the style definitions are atomic/small enough then they don't have to be scoped. I.e the problem with a style made for, say, t

[tw5] Re: Multi-value fields

2019-08-25 Thread TonyM
The list ops operators are all about multivalue fields. Tag is and they are often lists of titles they can be any values. When you arrange tags a list field is created to store the order. Multi vale fields need more work but have a look at the select widget with multiple. Tags are a good firs

[tw5] Re: CSS and TiddlyWiki - Open discussion

2019-08-25 Thread TonyM
But I have noticed the style sections if displayed apply to the whole window. So its necessary to to ensure they are scoped. Tony -- 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, s

[tw5] Re: CSS and TiddlyWiki - Open discussion

2019-08-25 Thread Mat
LOL! I *just *posted this which is about a CSS framework that, AFAICT, would fit TW perfectly and, among other things, would address exactly what you bring up. IMO, the problem you describe comes from abstractions. The creator