Discussion:
[tw] [TW5] Importing large number of text files
(too old to reply)
Jon
2015-03-11 06:23:43 UTC
Permalink
Hi,

I've split a word document into about 100 small text files which I want to
import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a "tiddler
name.txt" with a "Plain text" file type. Removing the .txt from each
tiddler name and altering the file type would obviously be too laborious
for a large number of files. Is there an easier way to do this?

Thanks,
Jon.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jeremy Ruston
2015-03-11 11:54:59 UTC
Permalink
Hi Jon

The easiest quick and dirty solution would be to drag all the files into TW
in one go, and then run a little bit of JavaScript to remove the .txt
extension from the filename and set the type to wikitext.

Once you've done the import, open your browsers JavaScript console and
paste the code given here:

https://gist.github.com/Jermolene/1c1ff69c7afe91550057

Best wishes

Jeremy.
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want to
import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a "tiddler
name.txt" with a "Plain text" file type. Removing the .txt from each
tiddler name and altering the file type would obviously be too laborious
for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
Jeremy Ruston
mailto:***@gmail.com
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 12:36:32 UTC
Permalink
Hi Jeremy,

I'll try that when I get home.

Thanks a lot
Jon
Post by Jeremy Ruston
Hi Jon
The easiest quick and dirty solution would be to drag all the files into
TW in one go, and then run a little bit of JavaScript to remove the .txt
extension from the filename and set the type to wikitext.
Once you've done the import, open your browsers JavaScript console and
https://gist.github.com/Jermolene/1c1ff69c7afe91550057
Best wishes
Jeremy.
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a "tiddler
name.txt" with a "Plain text" file type. Removing the .txt from each
tiddler name and altering the file type would obviously be too laborious
for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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
<javascript:>.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
Jeremy Ruston
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 19:17:32 UTC
Permalink
Hi Jeremy,

I'm using FireFox, I opened the Developer tab then Web Console, pasted code
into bottom window and hit enter but the response was: "ReferenceError: $tw
is not defined". I've tried it a few times but same result.

Thanks
Jon
Post by Jeremy Ruston
Hi Jon
The easiest quick and dirty solution would be to drag all the files into
TW in one go, and then run a little bit of JavaScript to remove the .txt
extension from the filename and set the type to wikitext.
Once you've done the import, open your browsers JavaScript console and
https://gist.github.com/Jermolene/1c1ff69c7afe91550057
Best wishes
Jeremy.
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a "tiddler
name.txt" with a "Plain text" file type. Removing the .txt from each
tiddler name and altering the file type would obviously be too laborious
for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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
<javascript:>.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
Jeremy Ruston
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jeremy Ruston
2015-03-11 19:21:00 UTC
Permalink
Hi Jon
Post by Jon
I'm using FireFox, I opened the Developer tab then Web Console, pasted
code into bottom window and hit enter but the response was:
"ReferenceError: $tw is not defined". I've tried it a few times but same
result.

That's weird. It sounds like you are typing into the console for a
different tab than the one containing the TW document. An alternative way
to open developer tools is to right click on the TW page and select
"Inspect Element".

Best wishes

Jeremy
Post by Jon
Thanks
Jon
Post by Jeremy Ruston
Hi Jon
The easiest quick and dirty solution would be to drag all the files into
TW in one go, and then run a little bit of JavaScript to remove the .txt
extension from the filename and set the type to wikitext.
Once you've done the import, open your browsers JavaScript console and
https://gist.github.com/Jermolene/1c1ff69c7afe91550057
Best wishes
Jeremy.
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a
"tiddler name.txt" with a "Plain text" file type. Removing the .txt from
each tiddler name and altering the file type would obviously be too
laborious for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
Jeremy Ruston
--
Jeremy Ruston
mailto:***@gmail.com
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 19:28:00 UTC
Permalink
Hi Jeremy,

that was an easier way of getting in to it, but I ended up at the same
place so I can see the TW with the console opened at the bottom. This time,
however, the result was just "undefined". (Sorry for the bother)

Thanks
Jon
Post by Jeremy Ruston
Hi Jon
Post by Jon
I'm using FireFox, I opened the Developer tab then Web Console, pasted
"ReferenceError: $tw is not defined". I've tried it a few times but same
result.
That's weird. It sounds like you are typing into the console for a
different tab than the one containing the TW document. An alternative way
to open developer tools is to right click on the TW page and select
"Inspect Element".
Best wishes
Jeremy
Post by Jon
Thanks
Jon
Post by Jeremy Ruston
Hi Jon
The easiest quick and dirty solution would be to drag all the files into
TW in one go, and then run a little bit of JavaScript to remove the .txt
extension from the filename and set the type to wikitext.
Once you've done the import, open your browsers JavaScript console and
https://gist.github.com/Jermolene/1c1ff69c7afe91550057
Best wishes
Jeremy.
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a
"tiddler name.txt" with a "Plain text" file type. Removing the .txt from
each tiddler name and altering the file type would obviously be too
laborious for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
Jeremy Ruston
--
Jeremy Ruston
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 20:19:43 UTC
Permalink
Hi Jeremy,

Despite the "undefined" response, I've just discovered it worked anyway and
without me realising! Nothing appeared to happen as the list of .txt files
remained in place on the import page. But when I searched for the new
tiddlers by the same name minus .txt, they're all there!

Many thanks
Jon
Post by Jon
Hi Jeremy,
that was an easier way of getting in to it, but I ended up at the same
place so I can see the TW with the console opened at the bottom. This time,
however, the result was just "undefined". (Sorry for the bother)
Thanks
Jon
Post by Jeremy Ruston
Hi Jon
Post by Jon
I'm using FireFox, I opened the Developer tab then Web Console, pasted
"ReferenceError: $tw is not defined". I've tried it a few times but same
result.
That's weird. It sounds like you are typing into the console for a
different tab than the one containing the TW document. An alternative way
to open developer tools is to right click on the TW page and select
"Inspect Element".
Best wishes
Jeremy
Post by Jon
Thanks
Jon
Post by Jeremy Ruston
Hi Jon
The easiest quick and dirty solution would be to drag all the files
into TW in one go, and then run a little bit of JavaScript to remove the
.txt extension from the filename and set the type to wikitext.
Once you've done the import, open your browsers JavaScript console and
https://gist.github.com/Jermolene/1c1ff69c7afe91550057
Best wishes
Jeremy.
Post by Jon
Hi,
I've split a word document into about 100 small text files which I
want to import as individual tiddlers and I'm looking for a way to do this
as a batch.
Importing or dragging/dropping an individual text file creates a
"tiddler name.txt" with a "Plain text" file type. Removing the .txt from
each tiddler name and altering the file type would obviously be too
laborious for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
Jeremy Ruston
--
Jeremy Ruston
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
RickL
2015-04-13 20:33:26 UTC
Permalink
How does this work with Chrome? Pardon my ignorance as I am no developer,
but I like the idea of changing all these tiddlers with one click
Post by Jeremy Ruston
Hi Jon
The easiest quick and dirty solution would be to drag all the files into
TW in one go, and then run a little bit of JavaScript to remove the .txt
extension from the filename and set the type to wikitext.
Once you've done the import, open your browsers JavaScript console and
https://gist.github.com/Jermolene/1c1ff69c7afe91550057
Best wishes
Jeremy.
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a "tiddler
name.txt" with a "Plain text" file type. Removing the .txt from each
tiddler name and altering the file type would obviously be too laborious
for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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
<javascript:>.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
Jeremy Ruston
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/efc37931-4d9e-4754-ad51-855e939ab86e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeremy Ruston
2015-04-13 21:32:41 UTC
Permalink
Hi Rick
Post by RickL
How does this work with Chrome? Pardon my ignorance as I am no developer,
but I like the idea of changing all these tiddlers with one click
The code given will work in Chrome as well as Firefox.

Best wishes

Jeremy.
Post by RickL
Post by Jeremy Ruston
Hi Jon
The easiest quick and dirty solution would be to drag all the files into
TW in one go, and then run a little bit of JavaScript to remove the .txt
extension from the filename and set the type to wikitext.
Once you've done the import, open your browsers JavaScript console and
https://gist.github.com/Jermolene/1c1ff69c7afe91550057
Best wishes
Jeremy.
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a
"tiddler name.txt" with a "Plain text" file type. Removing the .txt from
each tiddler name and altering the file type would obviously be too
laborious for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
Jeremy Ruston
--
Jeremy Ruston
mailto:***@gmail.com
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJZCU0rJM706wigH5dq3E%2BPuUp1hX-YvNonKZZF5_CVbYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Eric Shulman
2015-04-13 21:45:55 UTC
Permalink
Post by RickL
How does this work with Chrome? Pardon my ignorance as I am no developer,
but I like the idea of changing all these tiddlers with one click
In Chrome, you can use ctrl-shift-j to quickly open the developer
'console'. Then, paste in the code provided by Jeremy. Because it uses
TiddlyWiki-defined core functions, it will work the same in every browser.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f4eaee6d-71fc-43d0-87ac-c8c82e687ff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Rick
2015-04-14 12:56:09 UTC
Permalink
Already tried that...there is no 'paste' option in the console...most
likely this is very simple but I don't see it
Post by Eric Shulman
Post by RickL
How does this work with Chrome? Pardon my ignorance as I am no
developer, but I like the idea of changing all these tiddlers with one click
In Chrome, you can use ctrl-shift-j to quickly open the developer
'console'. Then, paste in the code provided by Jeremy. Because it uses
TiddlyWiki-defined core functions, it will work the same in every browser.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
--
You received this message because you are subscribed to a topic in the
Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/tiddlywiki/7q8mYGUZ3lo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f4eaee6d-71fc-43d0-87ac-c8c82e687ff3%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/f4eaee6d-71fc-43d0-87ac-c8c82e687ff3%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAK-Y%3DBAOcKQgju7Y69SvGm9an%3DHtwXRj7PqumS%3DiuXSXmQrc5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-04-14 16:24:33 UTC
Permalink
Have you tried using the keyboard shortcut for paste: Press Ctrl and V?
Regards
Jon
Post by Rick
Already tried that...there is no 'paste' option in the console...most
likely this is very simple but I don't see it
Post by Eric Shulman
Post by RickL
How does this work with Chrome? Pardon my ignorance as I am no
developer, but I like the idea of changing all these tiddlers with one click
In Chrome, you can use ctrl-shift-j to quickly open the developer
'console'. Then, paste in the code provided by Jeremy. Because it uses
TiddlyWiki-defined core functions, it will work the same in every browser.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
--
You received this message because you are subscribed to a topic in the
Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/tiddlywiki/7q8mYGUZ3lo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
<javascript:>.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f4eaee6d-71fc-43d0-87ac-c8c82e687ff3%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/f4eaee6d-71fc-43d0-87ac-c8c82e687ff3%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9b9d0981-7d12-44e0-a450-f4ec66b06cc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RickL
2015-04-14 17:25:28 UTC
Permalink
I have now...worked like a charm...thanks...I knew it would be simple; I
should have known that!
Post by Jon
Have you tried using the keyboard shortcut for paste: Press Ctrl and V?
Regards
Jon
Post by Rick
Already tried that...there is no 'paste' option in the console...most
likely this is very simple but I don't see it
Post by Eric Shulman
Post by RickL
How does this work with Chrome? Pardon my ignorance as I am no
developer, but I like the idea of changing all these tiddlers with one click
In Chrome, you can use ctrl-shift-j to quickly open the developer
'console'. Then, paste in the code provided by Jeremy. Because it uses
TiddlyWiki-defined core functions, it will work the same in every browser.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
--
You received this message because you are subscribed to a topic in the
Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/tiddlywiki/7q8mYGUZ3lo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f4eaee6d-71fc-43d0-87ac-c8c82e687ff3%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/f4eaee6d-71fc-43d0-87ac-c8c82e687ff3%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c98a22c0-dd02-4d54-92eb-fa8a9003ed79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Stephen Kimmel' via TiddlyWiki
2015-03-11 12:36:44 UTC
Permalink
Given that you have already split the word document into separate files,
Jeremy's answer is probably as good as there is. However, for the next time
you need to do something like this, consider that you could have done the
operation differently.

I import Word files into TiddlyWiki all the time and some of them are quite
large. I open the document in Word and copy the entire document. I then
paste it into TiddlyWiki creating one large tiddler. The copy and paste
operation nearly converts the document into a text document but not quite
and some of the formatting has to be repaired. Once I've saved the large
tiddler, for many of my purposes, I'm done. When I need a small portion of
the large tiddler, I can split it out simply enough. If you highlight the
portion of the text in display mode and drag it to an open area of
TiddlyWiki, say under the sidebar, and drop it there, TiddlyWiki will treat
that as though you're importing a new untitled tiddler. You can then
complete the import and rename that tiddler anything you would like. The
net result is that you could do the entire operation in about the same
amount of time as you have done already.

An alternative approach is to get yourself a copy of TiddlyWiki Classic
from Eric's TiddlyTools http://www.tiddlytools.com/ with the Quickstart
Basics package. That includes an editor function that will allow you to
split a large tiddler into smaller ones while leaving either links or
transclusions in the main document to retain the order of the original
document. Eric also has what I would call a powertool called SplitTiddler
that will split the large tiddler automatically in a number of different
ways including at a user defined section marker. Eric's tools will only
work with TiddlyWiki Classic. However, once you have the document split up
or refactored, you can then import the finished tiddlers into TW5.

Although TiddlyWiki was designed with small tiddlers in mind, I find it
handles large ones just as well. You can leave the Word document as a
single tiddler if that suits your needs or split it up as required. Next
time you import a Word document, consider what you are actually trying to
accomplish before you go to the effort of splitting it up.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 12:44:52 UTC
Permalink
Hi Stephen,

that's very interesting - I didn't know you could do that. I'll try that
method for the next file.

Thanks
Jon
Post by 'Stephen Kimmel' via TiddlyWiki
Given that you have already split the word document into separate files,
Jeremy's answer is probably as good as there is. However, for the next time
you need to do something like this, consider that you could have done the
operation differently.
I import Word files into TiddlyWiki all the time and some of them are
quite large. I open the document in Word and copy the entire document. I
then paste it into TiddlyWiki creating one large tiddler. The copy and
paste operation nearly converts the document into a text document but not
quite and some of the formatting has to be repaired. Once I've saved the
large tiddler, for many of my purposes, I'm done. When I need a small
portion of the large tiddler, I can split it out simply enough. If you
highlight the portion of the text in display mode and drag it to an open
area of TiddlyWiki, say under the sidebar, and drop it there, TiddlyWiki
will treat that as though you're importing a new untitled tiddler. You can
then complete the import and rename that tiddler anything you would like.
The net result is that you could do the entire operation in about the same
amount of time as you have done already.
An alternative approach is to get yourself a copy of TiddlyWiki Classic
from Eric's TiddlyTools http://www.tiddlytools.com/ with the Quickstart
Basics package. That includes an editor function that will allow you to
split a large tiddler into smaller ones while leaving either links or
transclusions in the main document to retain the order of the original
document. Eric also has what I would call a powertool called SplitTiddler
that will split the large tiddler automatically in a number of different
ways including at a user defined section marker. Eric's tools will only
work with TiddlyWiki Classic. However, once you have the document split up
or refactored, you can then import the finished tiddlers into TW5.
Although TiddlyWiki was designed with small tiddlers in mind, I find it
handles large ones just as well. You can leave the Word document as a
single tiddler if that suits your needs or split it up as required. Next
time you import a Word document, consider what you are actually trying to
accomplish before you go to the effort of splitting it up.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 13:26:13 UTC
Permalink
Hi Stephen
Next time you import a Word document, consider what you are actually
trying to accomplish before you go to the effort of splitting it up.
I was splitting it up so I could separate out individual elements and make
them tiddlers and then transclude them in different relationships.

Unless there's another way of leaving the original document intact and
referencing/transcluding the particular sections of the document?

Thanks
Jon
Hi Stephen,
that's very interesting - I didn't know you could do that. I'll try that
method for the next file.
Thanks
Jon
Post by 'Stephen Kimmel' via TiddlyWiki
Given that you have already split the word document into separate files,
Jeremy's answer is probably as good as there is. However, for the next time
you need to do something like this, consider that you could have done the
operation differently.
I import Word files into TiddlyWiki all the time and some of them are
quite large. I open the document in Word and copy the entire document. I
then paste it into TiddlyWiki creating one large tiddler. The copy and
paste operation nearly converts the document into a text document but not
quite and some of the formatting has to be repaired. Once I've saved the
large tiddler, for many of my purposes, I'm done. When I need a small
portion of the large tiddler, I can split it out simply enough. If you
highlight the portion of the text in display mode and drag it to an open
area of TiddlyWiki, say under the sidebar, and drop it there, TiddlyWiki
will treat that as though you're importing a new untitled tiddler. You can
then complete the import and rename that tiddler anything you would like.
The net result is that you could do the entire operation in about the same
amount of time as you have done already.
An alternative approach is to get yourself a copy of TiddlyWiki Classic
from Eric's TiddlyTools http://www.tiddlytools.com/ with the Quickstart
Basics package. That includes an editor function that will allow you to
split a large tiddler into smaller ones while leaving either links or
transclusions in the main document to retain the order of the original
document. Eric also has what I would call a powertool called SplitTiddler
that will split the large tiddler automatically in a number of different
ways including at a user defined section marker. Eric's tools will only
work with TiddlyWiki Classic. However, once you have the document split up
or refactored, you can then import the finished tiddlers into TW5.
Although TiddlyWiki was designed with small tiddlers in mind, I find it
handles large ones just as well. You can leave the Word document as a
single tiddler if that suits your needs or split it up as required. Next
time you import a Word document, consider what you are actually trying to
accomplish before you go to the effort of splitting it up.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
PMario
2015-03-11 14:52:07 UTC
Permalink
Post by Jon
I was splitting it up so I could separate out individual elements and make
them tiddlers and then transclude them in different relationships.
That's the intended way for TiddlyWiki. TW encourages users to split up
content into tidders, tag them, combine them in a different way ...
Post by Jon
Unless there's another way of leaving the original document intact and
referencing/transcluding the particular sections of the document?
Transcluding sections of a small tiddler is intentionally not supported by
the core. Partly because of technical reasons and partly because ot TWs
nature.

-------

A second way you could get "easy" import, would be to create the text files
in a special way. ... eg: with word macros.

If a text file looks like this, it's easy to import.

created: 20130822170200000
modified: 20141219155007260
creator: JeremyRuston
modifier: Me
tags: TableOfContents [[tag with spaces]]
title: HelloThere
type: text/vnd.tiddlywiki

! A Heading

lorem ipsum sit amet dolor, lorem ipsum sit amet dolor, lorem ipsum sit
amet dolor,

If you drag a text file like this into a TW it will be renamed, tagged,
....

All the fields are optional except: title and type

have fun!
mario
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 15:07:13 UTC
Permalink
Thanks, Mario. That's more for me to play with.

Regards
Jon
Post by PMario
Post by Jon
I was splitting it up so I could separate out individual elements and
make them tiddlers and then transclude them in different relationships.
That's the intended way for TiddlyWiki. TW encourages users to split up
content into tidders, tag them, combine them in a different way ...
Post by Jon
Unless there's another way of leaving the original document intact and
referencing/transcluding the particular sections of the document?
Transcluding sections of a small tiddler is intentionally not supported by
the core. Partly because of technical reasons and partly because ot TWs
nature.
-------
A second way you could get "easy" import, would be to create the text
files in a special way. ... eg: with word macros.
If a text file looks like this, it's easy to import.
created: 20130822170200000
modified: 20141219155007260
creator: JeremyRuston
modifier: Me
tags: TableOfContents [[tag with spaces]]
title: HelloThere
type: text/vnd.tiddlywiki
! A Heading
lorem ipsum sit amet dolor, lorem ipsum sit amet dolor, lorem ipsum sit
amet dolor,
If you drag a text file like this into a TW it will be renamed, tagged,
....
All the fields are optional except: title and type
have fun!
mario
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
'Stephen Kimmel' via TiddlyWiki
2015-03-11 17:29:04 UTC
Permalink
Post by Jon
I was splitting it up so I could separate out individual elements and make
them tiddlers and then transclude them in different relationships.
The question is whether you split - import - transclude or import - split -
transclude. My preferred answer is to import first and let TiddliWiki
create the fields and do the heavy lifting for me when I split.
Post by Jon
Unless there's another way of leaving the original document intact and
referencing/transcluding the particular sections of the document?
If you import the entire document and then do the copy - drag - drop
approach, your original document in TiddlyWiki remains intact as long as
you want. The new smaller tiddlers can be transcluded or referenced as
you'd like. There is no method that I am aware of to reference a subsection
of a tiddler within another tiddler.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 17:47:49 UTC
Permalink
OK, thanks Stephen. I'll play around with the various options.

Regards
Jon
Post by Jon
I was splitting it up so I could separate out individual elements and make
Post by Jon
them tiddlers and then transclude them in different relationships.
The question is whether you split - import - transclude or import - split
- transclude. My preferred answer is to import first and let TiddliWiki
create the fields and do the heavy lifting for me when I split.
Post by Jon
Unless there's another way of leaving the original document intact and
referencing/transcluding the particular sections of the document?
If you import the entire document and then do the copy - drag - drop
approach, your original document in TiddlyWiki remains intact as long as
you want. The new smaller tiddlers can be transcluded or referenced as
you'd like. There is no method that I am aware of to reference a subsection
of a tiddler within another tiddler.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Peter Miller
2015-03-11 15:07:52 UTC
Permalink
If you are working with individual paragraphs, then
http://www.convertcsv.com/csv-to-json.htm might do the job. Put the title
on the same line as the paragraph but separated by a bar symbol |. Enter
title|text as the first line and paste in the remainder below. Select the
bar as the separator, ensure you have the requisite number of fields
showing (1,2) and convert.

There's also a CSV Template Editor which I think should allow you to add
additional fields, e.g. tags, that are common to all the tiddlers. Might
need some playing with.

bw

Peter

You can probably use the
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want to
import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a "tiddler
name.txt" with a "Plain text" file type. Removing the .txt from each
tiddler name and altering the file type would obviously be too laborious
for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-03-11 15:55:47 UTC
Permalink
Thanks also Peter. I wish I'd asked this question before I spent hours
splitting up the file - I think these options would have been much quicker
but I'll know for next time!
Regards
Jon.
Post by Peter Miller
If you are working with individual paragraphs, then
http://www.convertcsv.com/csv-to-json.htm might do the job. Put the title
on the same line as the paragraph but separated by a bar symbol |. Enter
title|text as the first line and paste in the remainder below. Select the
bar as the separator, ensure you have the requisite number of fields
showing (1,2), convert and import.
There's also a CSV Template Engine which I think should allow you to add
additional fields, e.g. tags, that are common to all the tiddlers. Might
need some playing with.
bw
Peter
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a "tiddler
name.txt" with a "Plain text" file type. Removing the .txt from each
tiddler name and altering the file type would obviously be too laborious
for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Måns
2015-04-14 03:40:55 UTC
Permalink
Eric made CreateTiddlersFromCSV for twClassic
http://tiddlytools.com/#CreateTiddlersFromCSV
I have used it to create a bunch of tiddlers in a TWClassic and then
imported those into a TW5 by dropping the twClassic file onto a TW5.
Unfortunately I had to convert each indivdual tiddler from the classic
format into the TW5 format after the import.
It's a tedious process to open each and every tiddler and click "convert" -
so I will only do it when it's absolutely neccesary and I have a lot of
data which I need to include in tiddlers as custom fields. It's also very
easy to create a predefined tag structure in a csv file...

Cheers MÃ¥ns MÃ¥rtensson
Post by Peter Miller
If you are working with individual paragraphs, then
http://www.convertcsv.com/csv-to-json.htm might do the job. Put the title
on the same line as the paragraph but separated by a bar symbol |. Enter
title|text as the first line and paste in the remainder below. Select the
bar as the separator, ensure you have the requisite number of fields
showing (1,2), convert and import.
There's also a CSV Template Engine which I think should allow you to add
additional fields, e.g. tags, that are common to all the tiddlers. Might
need some playing with.
bw
Peter
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a "tiddler
name.txt" with a "Plain text" file type. Removing the .txt from each
tiddler name and altering the file type would obviously be too laborious
for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3c07c837-0ea4-4c0f-9ef1-c72d0bc86c8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jon
2015-04-14 05:21:45 UTC
Permalink
Also see Jeremy's solution here
<https://groups.google.com/forum/#!topic/TiddlyWiki/4UGtMV1npe4> to add
tags to any that are already existing.
Regards
Jon
Post by MÃ¥ns
Eric made CreateTiddlersFromCSV for twClassic
http://tiddlytools.com/#CreateTiddlersFromCSV
I have used it to create a bunch of tiddlers in a TWClassic and then
imported those into a TW5 by dropping the twClassic file onto a TW5.
Unfortunately I had to convert each indivdual tiddler from the classic
format into the TW5 format after the import.
It's a tedious process to open each and every tiddler and click "convert"
- so I will only do it when it's absolutely neccesary and I have a lot of
data which I need to include in tiddlers as custom fields. It's also very
easy to create a predefined tag structure in a csv file...
Cheers MÃ¥ns MÃ¥rtensson
Post by Peter Miller
If you are working with individual paragraphs, then
http://www.convertcsv.com/csv-to-json.htm might do the job. Put the
title on the same line as the paragraph but separated by a bar symbol |.
Enter title|text as the first line and paste in the remainder below. Select
the bar as the separator, ensure you have the requisite number of fields
showing (1,2), convert and import.
There's also a CSV Template Engine which I think should allow you to add
additional fields, e.g. tags, that are common to all the tiddlers. Might
need some playing with.
bw
Peter
Post by Jon
Hi,
I've split a word document into about 100 small text files which I want
to import as individual tiddlers and I'm looking for a way to do this as a
batch.
Importing or dragging/dropping an individual text file creates a
"tiddler name.txt" with a "Plain text" file type. Removing the .txt from
each tiddler name and altering the file type would obviously be too
laborious for a large number of files. Is there an easier way to do this?
Thanks,
Jon.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f2999b53-b0d2-456c-85db-a79f05a08e51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...