RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm
| From: | Dominik Roettsches | Date: | Thu, 27 Dec 2001 12:55:08 +0000 |
| Subject: | RE: [PHP-DEV] Re: Suggestion: Adding fmt like linebreak algorithm | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75117@lists.php.net to get a copy of this message | ||
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 new function though...
for those who'd like to have a go in trying to implement
Knuth's algorithm or adapt it from fmt, I can provide some
useful links:
http://www.cstug.cz/latex/ltnavig/general/tex-source.html
- you can find a DVI-file here of a smaller version of
"Breaking lines into paragraphs" from Knuth
The source and binaries for the GNU textutils which fmt
is a part of can be found (for example) here:
ftp://gnu.ms.uky.edu/pub/mirrors/gnu/textutils/
Please tell me, if could be of assistance any further.
Thanks to those who try to implement this into wordwrap,
Dominik