[Zope] How to split text into few parts?
Ben Avery
ben@thesite.org
Wed, 12 Feb 2003 13:09:54 +0000
hi Jaroslav,
If you want to print the paragraphs separately, as a newspaper would,
then you need the text to already be split into those paragraphs.
Otherwise you would just get chunks of 300 words, which would most
likely break mid-sentence, and look clumsy.
Are you generating the text yourself, in this file?
If you don't want to have to structure the text in html yourself, have a
look at structured text:
http://www.zope.org/Documentation/Articles/STX
http://www.zope.org/Members/millejoh/structuredText
This might do what you want without even having to change the text
itself, or you might have to put in double line breaks for new paragraphs.
try just using this on your existing file first:
<dtml-var filename fmt=structured-text>
then have a muck around with the formatting, consulting the articles above.
hope this helps
Ben
Jaroslav Lukesh wrote:
> Hi all,
>
> does somebody know how to put text into balanced (or gradually unbalanced)
> columns, like printed newspapers has? Something like that:
>
> <dtml-let "sizing=get_size(filename)/3">
> <table><tr><td>
> <dtml-var filename size=sizing>
> </td><td>
> <dtml-var filename sizefrom=sizing size=sizing>
> </td><td>
> <dtml-var filename sizefrom=sizing*2>
> </td></tr></table>
> </dtml-let>
>
> Nice, but <dtml-var filename size=300> does not help because it shows only
> first part of text. But what about other parts?
>
> Many thanks, J. Lukesh
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>