Maybe I'm missing something obvious (other than the off-topic nature of this
thread ;), but assuming your paragraph breaks have some kind of easily
identified thing (like, two repeating carriage returns or something) I don't
see why it would be so hard to make your text into chunks of X size -- then
adjust to the next or previous paragraph based on some threshold.  Yes, it
won't be performance optimized, but I bet it would perform acceptably unless
you have really heavy traffic.

And since I hate making a suggestion without proving it would work I whipped
up the attached file.  It's a UDF called textToChunks() which takes a bunch
of text and gives you an array of chunks based on a target chunks size --
but it won't break paragraphs.  It would need to be tweaked for your
environment, but I think it shows that it's not crazy to think you could
"chunk" text programmatically without a "special" marker for page breaks (by
default, this just uses 2 regular Windows-style end of lines).

Happy to hear about any suggestions to improve this (for instance, using a
RegEx to find paragraphs) -- might post it up to CFLib.org.

 - Nathan


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Barney Boisvert
> Sent: Thursday, July 17, 2003 3:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] Multiple Pages
>
>
> I can't think of a good way to do it, unless you code the page breaks in
> somehow, perhaps using HTML comments.  You'd still have to pull the entire
> content out for each page, but then use the comments to only display the
> right section.  Probably doable, but it seems that having each page stored
> separatly would alleviate a lot of headaches, without adding much
> complexity.
>
> cheers,
> barneyb
>

Attachment: textToChunks.cfm
Description: Binary data

Reply via email to