[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-08 Thread Måns
Eric - is it somehow possible to make the script work on a lineseperated list produced by a fET? This would give infinite possibilites for producing tables with data fetched from tiddlers - and sorted by the fET.. I know how to make a single multicolumned table in a fET already - but it would add

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-08 Thread Måns
Ok - Thanks for explaining... I've got it working now - and I am happy to say that it works on a simple lineseperated list as well as on a hr-seperated list. That's great - thanks a lot! YS Måns Mårtensson On 9 Sep., 01:21, Eric Shulman wrote: > > I tried to implement these line in the first sc

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-08 Thread Eric Shulman
> I tried to implement these line in the first script like this: > > var out=""; > var txt=store.getTiddlerText("$1",""); > var items=txt.split("\n\n"); { > if (!items[1]) items=txt.split("\n"); // start a new row > out += "|"+items[i]; // add item to row > > } > out += "|\n"; // end last row

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-08 Thread Måns
Eric > Alternatively, here's some general-purpose code that first tries to > split the text on the HR separator... and if only one item results > (i.e., there are *no* HR separators in the text), then tries splitting > on just a simple newline, allowing either format to be used, as > appropriate:

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-08 Thread Eric Shulman
> I guess, above all, slices allow you to put any context around them, > without influencing your ability to list them. > So you're not constrained to a "well-formed" hr-separated list. Slices *are* very useful. However, there are some limitations that you should be aware of: You need to know w

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-08 Thread Tobias
Hi Måns... I guess, above all, slices allow you to put any context around them, without influencing your ability to list them. So you're not constrained to a "well-formed" hr-separated list. Tobias. On Sep 8, 12:20 am, Måns wrote: > Thanks for the hint Tobias - I haven't used sections and slic

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-07 Thread Måns
Thanks for the hint Tobias - I haven't used sections and slices very much yet. I've been using fields, tags and fETs to retrieve information for use in tables. If you think it's a good idea in this context - I will try to learn how .. YS Måns Mårtensson On 7 Sep., 23:48, Tobias wrote: > Thanks

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-07 Thread Tobias
Thanks for the detailed information. So, I understand that, just as tables, those separated lists are a concise way to structure information which you just don't want to go down some "one tiddler for each item" approach. As for that, maybe slices and sections in combination with scripting and l

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-07 Thread Måns
I simply wanted: 1) A table with several rows for better visual overview 2) Yet another way to benefit from a list, that I already use in another context. a) For each new use of a source (list) - inside the same TW the nearer it gets to be a real database. b) Economics - less input - more o

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-07 Thread Tobias Beer
Sorry, no Danish language skills on my part... What's the general purpose of your table as compared to the tiddler simply containing the hr-separated list? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki"

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-07 Thread Måns
Hi Tobias I am using the script for splitting the text on the HR separator and putting the results in a table here: http://dl.getdropbox.com/u/1064531/SangTimer/SangTimer.html#SangBogen2Table I hope you can find your way - it's in Danish... The TW is a work in progress - and I haven't decided w

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-07 Thread Tobias
Hi Måns, Can you show us the final solution which you're using after all of this? I'd be interested in seeing it work rather than reading about how it should ;-) Tobias. On Sep 7, 1:58 am, Måns wrote: > Thanks a lot Eric > > As you know I like many options :-) > > YS Måns Mårtensson > > On 6

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-06 Thread Måns
Thanks a lot Eric As you know I like many options :-) YS Måns Mårtensson On 6 Sep., 22:13, Eric Shulman wrote: > > Can I "automake" a hr-seperated list from a normal lineseperated list > > with quickeditplugin in some way? > > If the tiddler contains single lines, you could use it as is, by >

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-06 Thread AlanBCohen
Eric, Thanks for the information on the HR formatted lists as well as te answer as to how to parse it. Alan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tidd

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-06 Thread Eric Shulman
> Can I "automake" a hr-seperated list from a normal lineseperated list > with quickeditplugin in some way? If the tiddler contains single lines, you could use it as is, by changing the script from var items=store.getTiddlerText("$1","").split("\n\n") to just var items=store.getTiddlerT

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-06 Thread Måns
Eric - You've made my day - and have certainly given me a new indispensable tool for making tables... Thanks a *lot* Ps: It is very satisfying to be able to use the same list for different purposes - Btw: Can I "automake" a hr-seperated list from a normal lineseperated list with quickeditplugin

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-06 Thread Eric Shulman
> <> > I presume it's a matter of changing ("SomeTiddler","") to ('$1','') ?? > Am I on the right track? Yup. That will work. (note: the "with:" param above needs to have a ":" on the end of it) > My next action with the hr-seperated list would be to add toggletag A > and toggletag B to each i

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-06 Thread Måns
Hi Eric - this is true magic : - ) Of course *you* would say that it's easy - I only had a hunch - that it ought to be easy - considering what I've seen uptill now!! 2 questions: 1) If I could make it work with any hr-seperated lists like this: <> It would be even better... I presume it's a mat

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-06 Thread Eric Shulman
> First question, I m not familiar with the term "hr-seperated list".. An 'HR-separated list' is a text-based syntax that I've developed and used in numerous TiddlyTools plugins and inline scripts. Basically, it's a tiddler containing lines of text, divided up into 'items' of one or more lines,

[tw] Re: How to turn a hr-seperated list into a table with several columns?

2009-09-06 Thread AlanBCohen
First question, I m not familiar with the term "hr-seperated list".. Do you mean a list which has each item separated by a 'hard return' or combination? Or is there some other character string separating the items? If this is a one-time occurrence to take this list and change it,I'd suggest cop