RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-27 Thread Dave Brotherstone
: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm On Wed, Dec 26, 2001 at 11:32:22PM -0500, Sean R. Bright wrote : I need to find a plaintext version of Knuth's paper, then maybe I could help. I don't want to look at fmt's code. You should. It's pretty

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-27 Thread Markus Fischer
On Thu, Dec 27, 2001 at 10:08:04AM -, Dave Brotherstone wrote : Forgive me, but what does BC stand for? Backwards compatibility. I'd be happy to have a go at creating the new function though... No one will be going to stop you ;-) -- Please always Cc to me when replying to me

RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-27 Thread Dominik Roettsches
Hello, Sean: I need to find a plaintext version of Knuth's paper, then maybe I could help. I don't want to look at fmt's code. You should. It's pretty straightforward to bind. I mailed you 2 files which could be interesting for you. Dave: I'd be happy to have a go at creating the

RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-27 Thread Dominik Roettsches
Hello Sean, My concern (though maybe unwarrented, someone more familiar with these matters might correct me) is that fmt is released under the GPL and I recall us having problems with things like readline in the past. Is this a non-issue? Otherwise I could read the paper and write a clean

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-26 Thread derick
On Wed, 26 Dec 2001, Markus Fischer wrote: On Wed, Dec 26, 2001 at 02:22:02AM -, Dominik Roettsches wrote : Another suggestion is to replace the wordwrap code by the algorithm of Knuth. This would break BC and therefore isn't an option. Only changin the algorithm, but not

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-26 Thread Markus Fischer
On Wed, Dec 26, 2001 at 01:10:47PM +0100, [EMAIL PROTECTED] wrote : On Wed, 26 Dec 2001, Markus Fischer wrote: On Wed, Dec 26, 2001 at 02:22:02AM -, Dominik Roettsches wrote : Another suggestion is to replace the wordwrap code by the algorithm of Knuth. This would break BC

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-26 Thread Stig Venaas
On Wed, Dec 26, 2001 at 01:10:47PM +0100, [EMAIL PROTECTED] wrote: On Wed, 26 Dec 2001, Markus Fischer wrote: On Wed, Dec 26, 2001 at 02:22:02AM -, Dominik Roettsches wrote : Another suggestion is to replace the wordwrap code by the algorithm of Knuth. This would break BC

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-26 Thread Dominik Roettsches
[EMAIL PROTECTED] (Stig Venaas) schrieb in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: On Wed, Dec 26, 2001 at 01:10:47PM +0100, [EMAIL PROTECTED] wrote: On Wed, 26 Dec 2001, Markus Fischer wrote: On Wed, Dec 26, 2001 at 02:22:02AM -, Dominik Roettsches wrote : Another suggestion

RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-26 Thread Sean R. Bright
: Suggestion: Adding fmt like linebreak algorithm [EMAIL PROTECTED] (Stig Venaas) schrieb in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: On Wed, Dec 26, 2001 at 01:10:47PM +0100, [EMAIL PROTECTED] wrote: On Wed, 26 Dec 2001, Markus Fischer wrote: On Wed, Dec 26, 2001 at 02

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-26 Thread Markus Fischer
On Wed, Dec 26, 2001 at 11:32:22PM -0500, Sean R. Bright wrote : I need to find a plaintext version of Knuth's paper, then maybe I could help. I don't want to look at fmt's code. You should. It's pretty straightforward to bind. -- Please always Cc to me when replying to me on the

[PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Yasuo Ohgaki
Dominik Roettsches wrote: Hi there, I've been searching for a PHP implementation of the GNU textformatting tool fmt (http://www.gnu.org/software/textutils/textutils.html) which provides an almost optimal linebreak for your text. I'm not skilled in enough in C programming to implement

[PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Dominik Roettsches
Hello Yasuo How about submit bug report (Feature Request)? Okay, I did that, thanks for your hint. I didn't know about the usual way of submitting articles to this group. I hope it gets integrated, I'd really appreciate that feature. Regards, Dominik -- PHP Development Mailing List

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Markus Fischer
On Tue, Dec 25, 2001 at 11:20:25PM -, Dominik Roettsches wrote : Hello Yasuo How about submit bug report (Feature Request)? Okay, I did that, thanks for your hint. I didn't know about the usual way of submitting articles to this group. I hope it gets integrated, I'd really

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Yasuo Ohgaki
Markus Fischer wrote: On Tue, Dec 25, 2001 at 11:20:25PM -, Dominik Roettsches wrote : Hello Yasuo How about submit bug report (Feature Request)? Okay, I did that, thanks for your hint. I didn't know about the usual way of submitting articles to this group. I hope it gets integrated,

RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Sean R. Bright
Doesn't wordwrap() already handle this? Or am i missing something? Sean -Original Message- From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 25, 2001 8:22 PM To: [EMAIL PROTECTED]; Markus Fischer Subject: Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Yasuo Ohgaki
Sean R. Bright wrote: Doesn't wordwrap() already handle this? Or am i missing something? Sean Almost, just missing some features that can be found in fmt. Which is useful for text message formatting :) -- Yasuo Ohgaki -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Dominik Roettsches
[EMAIL PROTECTED] (Sean R. Bright) schrieb in news:001301c18daf$df79f6f0 $e18e0418@cc230545b: Doesn't wordwrap() already handle this? Or am i missing something? Sean wordwrap() does just a simple wordwrap searching for the first whitespace backwards and breaking the line. The formatting

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Yasuo Ohgaki
Dominik Roettsches wrote: [EMAIL PROTECTED] (Sean R. Bright) schrieb in news:001301c18daf$df79f6f0 $e18e0418@cc230545b: Doesn't wordwrap() already handle this? Or am i missing something? Sean wordwrap() does just a simple wordwrap searching for the first whitespace backwards and

Re: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm

2001-12-25 Thread Markus Fischer
On Wed, Dec 26, 2001 at 02:22:02AM -, Dominik Roettsches wrote : Another suggestion is to replace the wordwrap code by the algorithm of Knuth. This would break BC and therefore isn't an option. -- Please always Cc to me when replying to me on the lists. -- PHP Development Mailing