Now that there's a way to make TiddlyPocketBooks (aka PocketMod) with
TW, I'm looking for ways to easily create portable documents. My
current technique is to create one central library with various sets
of 8 pages that make up the PocketBook. I pull the pages into the
PocketBook using Eric Shulman's ExternalTiddlerPlugin and a control
tiddler to specify the base names of the pages I want, where each
page
is numbered like Tiddler1, Tiddler2, etc.
One problem is that when sourcing new material, it can be tedious to
split it into 8 chunks of about the right size. So, here's my first
stab at it:
http://marksbasement.tiddlyspot.com/#SplitTextIntoTiddlers
Open it up to read the documentation and view the supporting
requirements.
This script will allow you to split up a large chunk of copied text
into however many tiddlers you want, using a specified base (stem)
name for the generated tiddlers. It currently uses a character count
to to determine the break point, along with word boundaries. A
character count isn't perfect, but unless someone can point me to a
technique that can readily calculate the space a given bit of text
with a given font will take inside a specified box, it will have to
do. Picking the right character count for your particular project
should get you pretty close, and make the job mostly one of tweaking
here or there afterward.
Thanks to everyone, especially Eric, for all the help and examples in
these forums that makes it possible to create these types of scripts.
-- Mark
*********************************************************
I can also see it as being useful for making long articles into more
manageable/searchable chunks. -- Ken Girard
*********************************************************
Please make comments at:
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/f31f3434b7ab2c2c?hl=en