Yes I concidered split at words, the colum balancing was better 'numericali' but most of the times at the end of the first colum you can find some few wprds (one or two) the rest of the line in white and the sentence continues at the begining of the second colum and it's a bit strange to find when reading a splited sentence if the end of the first part doen't touch the right margin of the first col. (hard to explain this in words, sorry if it's not so clear)
--this is no good col 1 col 2 sdf sf dff asdf s 'second' sd df s asdf as sffadf asd sdfs dfsd sdf sd sdd dsddd fgf rt g gh g dfgh ddfh 'first' fsdf s ddf sdf bad-->| --this is the nice one col 1 col 2 sdf sf dff asdf s 'second' sd df s asdf as sffadf asd sdfs dfsd sdf sd sdd dsddd fgf rt g gh g dfgh ddfh d sd dd sd 'first' fsdf s ddf sdf ----good-------->| Also concidered to let the writer include some strange character combination so the point for spliting can be fully controlled but something I don't like is force content editors to do 'strange things'. They just write in Htmlarea http://www.interactivetools.com/products/htmlarea/, format a bit the text like using Word or any other typical one and that's all. anyway I guess there is no way to simulate the best (like in printed media) but I decided to break in paragraphs to keep some kind of coherency. someboy told in this forum that two cols was not god in screen media as we usualy read from top to botton avoiding scrolling. yes that right but we also have the habit to scroll (visually) when reading printed text and I like the idea of doing something new if it's not so bad. In my web www.lamundial.net not comercial is where I can test this kind of things without 'economical' risc thanks Stefan for your interest aniceto lopez :: DYNAMICAL.BIZ web development & host services Barcelona - Spain -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: miercoles, 03 de septiembre de 2003 11:00 Para: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Asunto: Re:[PHP] dynamical balancing text in two colums Hello Just asking why do you want to split at paragraphs? Couldn't you just simply look for a word boundary and then split the columns? You could exclude tags from the split meaning wordboundaries cannot be inside <> that way no breaking of tags. Since the result is checked by a human they can easily change the appearance by including breaks as needed. So simply do your half split and than work your way back to the first word boundary. That should give a fairly balanced column. Regards Stefan Langer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php