To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.admin.suggestionsOpen lugnet.admin.suggestions in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Administrative / Suggestions / 658
657  |  659
Subject: 
Re: quoted-printable support
Newsgroups: 
lugnet.admin.suggestions, lugnet.admin.nntp
Date: 
Tue, 20 May 2003 19:07:11 GMT
Viewed: 
3548 times
  
"Todd Lehman" <todd@lugnet.com> writes:

In lugnet.admin.suggestions, William R. Ward writes:
Any of those would break words in half.  (The = at the end isn't guaranteed
to occur at a line break.)

It's usually at a line break, though, isn't it?

On the well-behaved e-mail clients, yes.  On the worse clients, they jam a
whole paragraph into a single line.  I saw one which resulted in a line 890
characters long.(!)

Yes, I've seen that too.  You could always use Text::Wrap to reformat
anything over 80 characters...

And even so it is
better than what is currently displayed;

I agree -- a hideously long line is better than one that's full of hdideous
= and =XX codes.

The biggest problem is the =3D in Brickshelf URL's.  Even a special
case to change =3D to = would be a huge help.

further refinements could be
made to make it better yet...

It'd be hard to back-port to older messages though (although I'll be saving
original backup copies of any mods, so it would be possible to re-do them
with an improved algorithm).

I assumed you would store the message without any changes, and convert
it when displaying the message, perhaps with a cache for performance
if needed.

Or just let the browser do the word wrapping in this case.

Well, see that's part of the problem.  The webserver outputs <TD NOWRAP> so
that the messages aren't fighting with the column on the right for screen
space.  It prevents regular messages from coming out like this:

xxxxxxxxxxxxxxxxxxxx
xxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxx
xxxxxxxxxxxxxxxxxxxx
xxxxxxx

Yes, but it isn't necessary to have wrapping enabled for all messages,
just the ones that were quoted-printable.

But I think I'll have a robust solution this week, because I need to solve
the text-wrapping problem once and for all for a larger class of text cases
for something related.

Cool!

--
William R Ward            bill@wards.net          http://www.wards.net/~bill/
-----------------------------------------------------------------------------
"A foolish consistency is the hobgoblin of little minds, adored by
little statesmen and philosophers and divines."        - Emerson



Message has 1 Reply:
  Re: quoted-printable support
 
(...) Unfortunately, Text::Wrap doesn't handle mail- and news-style quotations, and would happily convert: > >> >really especially long line of quoted text to (bad): > >> >really especially long line of quoted text instead of to (good): > >> >really (...) (21 years ago, 20-May-03, to lugnet.admin.suggestions, lugnet.admin.nntp)

Message is in Reply To:
  Re: quoted-printable support
 
(...) On the well-behaved e-mail clients, yes. On the worse clients, they jam a whole paragraph into a single line. I saw one which resulted in a line 890 characters long.(!) (...) I agree -- a hideously long line is better than one that's full of (...) (21 years ago, 20-May-03, to lugnet.admin.suggestions, lugnet.admin.nntp)

13 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR