Hi Coda, thanks for stretching your points out in this way ;–)

This is exactly the kind of discussion I had been looking for, very helpful 
indeed. 
In the meantime I have updated the docs, have a look at 
http://tid.li/tw5/hacks.html#TextStretch 

It was of course my intention to make authoring as efficient as possible, 
that’s why I use default values. When writing a book, I think you want to 
stay consitent and use these all/most of the time. Your effort with my 
solution would look like this: 

<tiddler>
Some text <<macroname "your content">> and for the second TextStretch 
element with the preset label <<macroname "other content" id>>.
</tiddler>



Alternatively, with Mat’s solution, you would have to write

<tiddler>
Some text <<macroname label "your content">> and for the second StretchText 
element with the same label <<macroname label_id "other content">>.
</tiddler>

As you can see: you need an id in both cases.

My second concern was computing power. The steps to process my macro call 
are:

   1. receive params
   2. use content, id and label (as they are defined by the author or the 
   default)

Mat’s solution does this (simplified):

   1. receive params
   2. separate id from label (this is not a simple step!)
   3. use content, label and id

So please reconsider, whitch way suits you best, and let us know, if you 
find an even better way! 

Concerning the last point, I have added some licence information in my docs 
:–D


All the best, Thomas





-- 
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/b27aed8b-d517-484a-846f-7a85b8af9bcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to