Every version I try gave me an error starting like this:
Error: EINVAL: invalid argument, open
'D:\data\Wikis\temp\output\$:\boot\boot.cs
s.tid'
at Object.openSync (fs.js:438:3)
Somewhere I'm pretty sure it promised it would handle disambiguation.
So if I do my own disambiguation/conversion :
D:\data\Wikis>tiddlywiki --verbose --load SFG\garden.html --render
"[is[tiddler]]" "[encodeuricomponent[]addsuffix[.tid]]" text/plain
"$:/core/templates/tid-tiddler"
This works, but the titles are really ugly and hard to read.
After some more experimentation, I have:
tiddlywiki --verbose --load SFG\garden.html --output SFG\tiddlers2
--render "[is[tiddler]]"
"[splitregexp[\$|\*|:|/|\s]join[_]addsuffix[.tid]]" text/plain
"$:/core/templates/tid-tiddler"
My concern here is that the ad-hoc way I used to convert the titles to file
names might result in identical file names that will overwrite each other.
What, if anything, is the trick to get node to generate the same kind of
tiddler names that it does when using --listen ?
Thanks!
On Tuesday, March 31, 2020 at 8:44:45 AM UTC-7, Mark S. wrote:
>
> Hi Jeremy,
>
> I guess I should have asked for the complete magic incantation for
> creating tiddlers from an existing TW file.
>
> I've tried
>
> tiddlywiki SFG --load SFG\garden.html --render "[is[tiddler]]" --output
> SFG\tiddlers2
>
> and other variations. I've looked at everything tagged "node.js" at
> TiddlyWiki.com. There are a couple instructions for converting tiddlers to
> TW files, though some of them use the older command set and one of them is
> for TW2 . But I couldn't find any examples for exporting individual
> tiddlers en masse via node.
>
> My goal is to pour tiddlers back and forth between single file and data
> file formats, depending on current user requirements.
>
> Thank you!
>
>
> On Tuesday, March 31, 2020 at 3:57:52 AM UTC-7, Jeremy Ruston wrote:
>>
>> Hi Mark
>>
>> > On 28 Mar 2020, at 00:23, 'Mark S.' via TiddlyWiki <
>> [email protected]> wrote:
>> >
>> > If I wanted to export everything from a single-file wiki necessary to
>> make an identical node-based wiki, what filter would I use?
>>
>> One can use exactly the same tiddlers in both configurations (apart from
>> needing the tiddlyweb and filesystem plugins, but those are usually handled
>> by reference from the tiddlywiki.info file), so the filter to use would
>> be [is[tiddler]].
>>
>> 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a5cd6d7f-df91-40ce-b204-36ede819c874%40googlegroups.com.