Hi Mat

> This is what I hoping for and as far as I can tell, it even omits the need 
> for triple quotes as long as one can identify exactly what is the end of the 
> filter attribute. I.e, if I understand, the filter start is merely to 
> identify this string, right? - 
> 
>  filter="
> 
> But I figure the end quotemark of the filter can be identified by taking 
> advantage of string-segments from the other attributes, like so;
> 
> *" />
> *" >
> *" variable=
> *" emptyMessage=
> ...and some more
> 

The syntax could be defined in that way, but it would be an unusual approach; 
the closing quote is sufficient to mark the end of the attribute, so there’s 
generally no need for checking the additional characters.

> Or mabe even pattern search the "widget string" backwards to not deal with 
> the filter content at all and again look for a single quotation mark but that 
> doesn't belong to any of the other attributes. I mean, those other attributes 
> typically have friendly arguments without interfering quote marks so skipping 
> past these woudl be easy... and if - in this backward search - every secont 
> quotemark should be followed by an equal sign and an attribute name or that 
> second quotemark is not the one.

The trouble with “clever” parsers that try to save the user from typos is that 
they end up introducing even more complex rules, and there will be occasions 
where the user has to have those rules in their head. One sees the same thing 
over and again in languages like XML/JSON, wikitext, markup like HTML: the 
principle is to have simple syntax rules that lead to predictable results.
> 
> Ok, that was all. It would just save time and repeated trouble if users don't 
> hvae to deal with this. If my understanding is just off, then... well, I'll 
> be back eventually with more understanding.

If you’re really interested in this stuff you’ll have to become a coder (as FND 
did before you); I’m sure you’ll find it pretty easy after the intricacies of 
your work with TW,

Best wishes

Jeremy.


> 
> <:-)
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/6b152a0f-c748-4ef4-9bcc-595bc946ee57%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/6b152a0f-c748-4ef4-9bcc-595bc946ee57%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/DFD43BE0-179D-4115-BF5A-B68101914DD0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to