Hi!
Is there any way to import a TiddlyWiki document to Scrivener preserving the Tiddly original structure in the new scrivener document in order to use only Scrivener (and forget the Tiddlywiki file?)
Thanks!
I’ve only used TiddlyWiki a little bit, so I’m not sure about this, but…
As I understand it, a TiddlyWiki document is a fairly complex combination of HTML text and Javascript code. To import it into Scrivener, you would need a way to strip out just the text, throwing the rest away.
So I’m going to say no, you won’t be able to import it directly. But if either TiddlyWiki itself or a purpose-built script can extract the text portion, you should be able to import that.
A quick and dirty way to accomplish this might be to expand all the component tiddlers, then simply copy and paste the text out of your browser window. That will give you one big file, which you can split up using Scrivener’s Split functions.
Hope this helps,
Katherine
I do believe there are modules you can install into the TiddlyWiki that will let you export all of the tiddlers into individual files. I would think HTML would be the best route to take, unless you can find one that does RTF. If you use HTML, you would want to set your import settings to convert HTML files to text instead of web archive, for maximum usefulness.
Of course the main thing you’ll lose, which I think you might be referring to as structure, is the linking. Scrivener doesn’t have a “web site” import; something that can import a cohesive network of interlinked files that retain those links after import. If you’ve invested a lot of time in this thing, it might be best to just continue running it along side Scrivener, rather than trying to get it in.
Hi and thanks for the help!
Scrivener can successfully import the tiddly as a web page, and you can even click on the links to see the “subdocuments”, but yes, you are right, I guess I should find a way to export from tiddly wiki as rtf or so… and then import it into scrivener… I’ll try to find a way.
Oh! I didn’t know the Scrivener’s Split functions!
Thanks again.
There is also a File/Import/Import and Split...
command that may come in useful to you if the only exporters you can find create one long file instead of individual files for each tiddler. If you can get it to insert a character string in between them, like “----”, then you can set Scrivener to look for that and automatically split the file up whenever it encounters one.
Could scrivener links be imported that way too? Wherever there’s a wiki link, surround it with [[ ]]'s, and then somehow make scrivener transform those into links…
Good idea, but unfortunately not. Those are only trapped while you are typing them in, they aren’t examined when imported. You’d have to through and find each ‘]]’, delete the ‘]]’ and retype them. That would probably be easier than any other route, though.
For the OP: this feature isn’t enabled by default. Turn it on in the Corrections preference pane if you want to.