Hi Amanda

Here's a completely random bit of text I just generated

Terrific random text if I may say so.

which matches the format of my real document. It has the headers + plain paragraphs with line breaks in-between. This was created in Sublime text editor. I then pasted it and split it. As expected, each paragraph was its own tiddler. 

The sample lacks <p> tags around the paragraphs. I tried pasting the text as it is into both a text/html tiddler and an ordinary wikitext tiddler. In both cases, the broken markup prevents things from working properly.

I added <p> tags around the paragraphs (attached). Processing the result as text/html does have the expected output of a separate tiddler for each heading and for paragraph.

If that’s looking like it’s going to generate too many tiddlers for your texts, then the best approach may be to extend the text-slicer plugin with more options, so that we could have a tiddler for each heading plus it’s immediate text.

I won’t have time to explore that for a while. The other option would be to preprocess your texts to merge contiguous paragraphs, putting a couple of <br>s in between.

Btw, I must say I'm overwhelmed and impressed by the community. I posted some questions in a few places online regarding other plugins. Everyone answered within 24 hours. It just blew me away. I'm used to the less friendly communities of major CMS software apps…

Thank you — from my perspective the community is also what makes doing this such fun.

Best wishes

Jeremy


Best, 

--
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/9AA37EF5-5F6F-4EB1-9C89-7977D81BA573%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
<h1>Heading 1</h1>

<p>Tuxedo cats always looking dapper i like big cats and i can not lie. Spread 
kitty litter all over house hide at bottom of staircase to trip human yet mark 
territory, yet lick sellotape. Curl into a furry donut. Meow. Caticus cuteicus 
fall over dead (not really but gets sypathy). Jump off balcony, onto stranger's 
head chase dog then run away. Mew mark territory flee in terror at cucumber 
discovered on floor but the dog smells bad, so shove bum in owner's face like 
camera lens. Please stop looking at your phone and pet me scratch leg; meow for 
can opener to feed me so chase red laser dot or swat turds around the house and 
hide when guests come over, for scamper. Poop on grasses hopped up on catnip, 
or if it fits, i sits. Pelt around the house and up and down stairs chasing 
phantoms. </p>

<p>Leave fur on owners clothes find empty spot in cupboard and sleep all day 
and peer out window, chatter at birds, lure them to mouth. Stand in front of 
the computer screen purr for no reason and loves cheeseburgers. Love to play 
with owner's hair tie burrow under covers, and knock dish off table head butt 
cant eat out of my own dish hunt anything that moves. Lick yarn hanging out of 
own butt. Leave fur on owners clothes ignore the squirrels, you'll never catch 
them anyway. </p>

<p>Make meme, make cute face make meme, make cute face. Jump launch to pounce 
upon little yarn mouse, bare fangs at toy run hide in litter box until treats 
are fed cat slap dog in face. Vommit food and eat it again hola te quiero, for 
poop in the plant pot for rub face on everything, so soft kitty warm kitty 
little ball of furr curl into a furry donut under the bed. Sniff other cat's 
butt and hang jaw half open thereafter jump launch to pounce upon little yarn 
mouse, bare fangs at toy run hide in litter box until treats are fed chase 
mice. Eat a plant, kill a hand hiss at vacuum cleaner, and gnaw the corn cob or 
play time. Mark territory. Lick yarn hanging out of own butt. Lick butt human 
is washing you why halp oh the horror flee scratch hiss bite find empty spot in 
cupboard and sleep all day run outside as soon as door open flee in terror at 
cucumber discovered on floor chase after silly colored fish toys around the 
house find something else more interesting. Dream about hunting birds. Sit in 
box. Hack up furballs roll on the floor purring your whiskers off, or sniff 
other cat's butt and hang jaw half open thereafter yet chase laser. Tuxedo cats 
always looking dapper lounge in doorway chew iPad power cord, for attack dog, 
run away and pretend to be victim cat slap dog in face chirp at birds. Howl 
uncontrollably for no reason soft kitty warm kitty little ball of furr. Scratch 
leg; meow for can opener to feed me stare at the wall, play with food and get 
confused by dust for sleep nap flee in terror at cucumber discovered on floor 
so eat prawns daintily with a claw then lick paws clean wash down prawns with a 
lap of carnation milk then retire to the warmest spot on the couch to claw at 
the fabric before taking a catnap or if it smells like fish eat as much as you 
wish, but sleep in the bathroom sink. Thug cat drink water out of the faucet 
swat turds around the house. Cat snacks refuse to drink water except out of 
someone's glass, chase after silly colored fish toys around the house. All of a 
sudden cat goes crazy stand in front of the computer screen chew foot. Lick 
butt and make a weird face present belly, scratch hand when stroked and spread 
kitty litter all over house so play riveting piece on synthesizer keyboard 
meow. Pee in human's bed until he cleans the litter box swat at dog, and 
intrigued by the shower, for steal the warm chair right after you get up yet 
eat and than sleep on your face. </p>


<h1>Heading 2</h1>
<p>ad (not really but gets sypathy). Jump off balcony, onto stranger's head 
chase dog then run away. Mew mark territory flee in terror at cucumber 
discovered on floor but the dog smells bad, so shove bum in owner's face like 
camera lens. Please stop looking at your phone and pet me scratch leg; meow for 
can opener to feed me so chase red laser dot or swat turds around the house and 
hide when guests come over, for scamper. Poop on grasses hopped up on catnip, 
or if it fits, i sits. Pelt around the house and up and down stairs chasing 
phantoms. </p>

<p>Love to play with owner's hair tie burrow under covers, and knock dish off 
table head butt cant eat out of my own dish hunt anything that moves. Lick yarn 
hanging out of own butt. Leave fur on owners clothes ignore the squirrels, 
you'll never catch them anyway. </p>

<p>Make meme, make cute face make meme, make cute face. Jump launch to pounce 
upon little yarn mouse, bare fangs at toy run hide in litter box until treats 
are fed cat slap dog in face. Vommit food and eat it again hola te quiero, for 
poop in the plant pot for rub face on everything, so soft kitty warm kitty 
little ball of furr curl into a furry donut under the bed. Sni. Sit in box. 
Hack up furballs roll on the floor purring your whiskers off, or sniff other 
cat's butt and hang jaw half open thereafter yet chase laser. Tuxedo cats 
always looking dapper lounge in doorway chew iPad power cord, for attack dog, 
run away and pretend to be victim cat slap dog in face chirp at birds. Howl 
uncontrollably for no reason soft kitty warm kitty little ball of furr. Scratch 
leg; meow for can opener to feed me stare at the wall, play with food and get 
confused by dust for sleep nap flee in terror at cucumber discovered on floor 
so eat prawns daintily with a claw then lick paws clean wash down prawns with a 
lap of carnation milk then retire to the warmest spot on the couch to claw at 
the fabric before taking a catnap or if it smells like fish eat as much as you 
wish, but sleep in the bathroom sink. Thug cat drink water out of the faucet 
swat turds around the house. Cat snacks refuse to drink water except out of 
someone's glass, chase after silly colored fish toys around the house. All of a 
sudden cat goes crazy stand in front of the computer screen chew foot. Lick 
butt and make a weird face present belly, scratch hand when stroked and spread 
kitty litter all over house so play riveting piece on synthesizer keyboard 
meow. Pee in human's bed until he cleans the litter box swat at dog, and 
intrigued by the shower, for steal the warm chair right after you get up yet 
eat and than sleep on your face. </p>


<h1>Heading 3</h1>
<p>ttle ball of furr. Scratch leg; meow for can opener to feed me stare at the 
wall, play with food and get confused by dust for sleep nap flee in terror at 
cucumber discovered on floor so eat prawns daintily with a claw then lick paws 
clean wash down prawns with a lap of carnation milk then retire to the warmest 
spot on the couch to claw at the fabric before taking a catnap or if it smells 
like fish eat as much as you wish, but sleep in the bathroom sink. Thug cat 
drink water out of the faucet swat turds around the house. Cat snacks refuse to 
drink water except out of someone's glass, chase after silly colored fish toys 
around the house. All of a sudden cat goes crazy stand in front of the computer 
screen chew foot. Lick butt and make a weird face present belly, scratch hand 
when stroked and spread kitty litter all over house so play riveting pie</p>

<p>Hettle ball of furr. Scratch leg; meow for can opener to feed me stare at 
the wall, play with food and get confused by dust for sleep nap flee in terror 
at cucumber discovered on floor so eat prawns daintily with a claw then lick 
paws clean wash down prawns with a lap of carnation milk then retire to the 
warmest spot on the couch to claw at the fabric before taking a catnap or if it 
smells like fish eat as much as you wish, but sleep in the bathroom sink. Thug 
cat drink water out of the faucet swat turds around the house. Cat snacks 
refuse to drink water except out of someone's glass, chase after silly colored 
fish toys around the house. All of a sudden cat goes crazy stand in front of 
the computer screen chew foot. Lick butt and make a weird face present belly, 
scratch hand when stroked and spread kitty litter all over house so play 
riveting pie</p>

<h1>Heading 4</h1>
<p>ttle baof the faucet swat turds around the house. Cat snacks refuse to drink 
water except out of someone's glass, chase after silly colored fish toys around 
the house. All of a sudden cat goes crazy stand in front of the computer screen 
chew foot. Lick butt and make a weird face present belly, scratch hand when 
stroked and spread kitty litter all over house so play riveting pie</p>

<p>td the house. All of a sudden cat goes crazy stand in front of the computer 
screen chew foot. Lick butt and make a weird face present belly, scratch hand 
when stroked and spread kitty litter all over house so play riveting pie</p>

<h1>Heading 5</h1>
<p>wall, play with food and get confused by dust for sleep nap flee in terror 
at cucumber discovered on floor so eat prawns daintily with a claw then lick 
paws clean wash down prawns with a lap of carnation milk then retire to the 
warmest spot on the couch to claw at the fabric before taking a catnap or if it 
smells like fish eat as much as you wish, but sleep in the bathroom sink. Thug 
cat drink water out of the faucet swat turds around the house. Cat snacks 
refuse to drink water except out of someone's glass, chase after silly colored 
fish toys around the house. All of a sudden cat goes crazy stand in front of 
the computer screen chew foot. Lick butt and make a weird face present belly, 
scratch hand when stroked and spread kitty litter all over house so play 
rivet</p>

<p>s swat turds around the house. Cat snacks refuse to drink water except out 
of someone's glass, chase after silly colored fish toys around the house. All 
of a sudden cat goes crazy stand in front of the computer screen chew foot. 
Lick butt and make a weird face present belly, scratch hand when stroked and 
spread kitty litter all over house so play rivet</p>
LG

On Monday, May 9, 2016 at 11:58:06 AM UTC-4, Jeremy Ruston wrote:
Hi LG

Interesting, can you share an excerpt of some of your text?

It sounds like you’d benefit from finer control over the tiddlerisation; perhaps making a tiddler for heading, rather than for each paragraph.

Best wishes

Jeremy

On 8 May 2016, at 15:02, LG <ama...@godaisies.com> wrote:

Great tool! Thank you. 

I copied Word into Mammoth.js (on a WP site) then into a text editor to remove all the paragraph tags. When I pasted the newly cleaned text over into TW and sliced it, I ran into the million or so new tiddlers at the paragraph level. Has there been any progress on keeping the texts at the header level chunking? 

I have 13.5 years worth of text I'd like to put into TW. Having every single line/paragraph broken into a tiddler would surely break the system (I generate about 300 pages of text every 4 months x 13.5 years). 

Thanks, 

LG

On Saturday, August 1, 2015 at 8:31:06 AM UTC-4, Jeremy Ruston wrote:
I've just pushed a new prerelease that includes an early cut of a tool to slice longer texts into individual tiddlers based on headings and lists. It's based on ideas that have come up in previous discussions about dealing with long, structured tiddlers.

You can try it out at:


You'll need to carefully follow the instructions in the "HelloThere" tiddler:

* Scroll down to the "Sample Text" tiddler and click on the "text slicer" icon
* Click the "import" button in the resulting import listing
* Open the tiddler "Sliced up Sample Text"

You should see a copy of the original text, but you can explore the table of contents to see how it is composed of individual tiddlers that are threaded together by tags.

I'd welcome any feedback on the tool. I would also love some help in finding a better sample text, something public domain that we can re-distribute.

Best wishes

Jeremy


-- 
Jeremy Ruston
mailto:jeremy...@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 [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/c7beb1eb-8d72-48dc-b35f-81e73a968d74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<sample_text_for_slicer.txt>

--
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/9AA37EF5-5F6F-4EB1-9C89-7977D81BA573%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to