Mark S., BTC, TonyM, Stephan H.

Thank you! All very helpful  answers. 

They made clear to me sometimes I need to *fill in more context* so the 
person can answer better. TBH I didn't want to add the work process steps 
as I thought it would lumber you with detail you don't need.

The PURPOSE of this is part of an attempt/experiment to be able to prepare 
and *pre-process texts of all kinds within TW itself*. The "Json" of the 
example is not yet really a Json Tiddler, rather its the visual render in 
plain text of the processing of a large text document pasted into a tiddler 
that runs a series of regular expressions that generates a Json structure 
of the text. The render that looks like Jason is copied (the surface 
render, not a clone of the underlying tiddler content) and pasted into a 
new tiddler. That tiddler can then be exported as JSON and imported into 
any TW.

*The stumbling block* was only getting the title field enumerated because 
you have to have that explicit for TW imports. Regular expressions in 
JavaScript are quite limited. You can forget them being able to do any math.

FWIW--all your questions got me wondering why something so seemingly simple 
(effectively just adding a number to a line) was tricky. I don't really 
grasp the nature of what TW can do well. I'd wrongly assumed it would be 
easy. 

After a few hours messing about I've found a solution within TW that won't 
require any extra steps outside TW. Tests show *I should be able to use CSS 
COUNTERS to generate the numbers*.

Stephan's Bookmarklet I'll comment on separately.

Thanks again!
Josiah


Mark S.wondered:

> I don't know how you captured this data in the first place

 
BTC asked:

> Does this have to be done in TW? 
>

TonyM suspects me of inefficiency :-) ...

> The need to add numbers to make titles unique suggests you have made some 
> less than perfect choices.
>

Stephan Hradek wrote:
>
> What I don't understand is your workflow.
>
> Where do you get the data from?
>

-- 
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/3062b78d-1293-44ca-abcd-1a60149214fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to