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 "cl

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

2001-12-27 Thread Sean R. Bright
room" implementation... Sean > -Original Message- > From: Dominik Roettsches [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 27, 2001 7:55 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak > algorithm > > > Hell

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 cr

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 Dave Brotherstone
tsches'; [EMAIL PROTECTED] > Subject: Re: [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.

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 list

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

2001-12-26 Thread Sean R. Bright
ED] > Subject: Re: [PHP-DEV] Re: 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: > >>

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 s

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 wou

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 w

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 t

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 Mailin

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

2001-12-25 Thread Dominik Roettsches
Hello Yasuo, > I've never take a look at wordwrap code, but Dominik's suggestion > sounds nice to me. > > There are many search & replace algorithms patented, but I don't > think any of Knuth's algorithms are patented :) if others also would agree, there's the problem of finding someone who is

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 > bac

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 formattin

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 To unsubscr

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: Suggest

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 hop

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 reall

[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

[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 impl