🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by Steve Mon, 17 Nov 2003 20:18
[slrn] wrap html posts
#137666
Author: Steve
Date: Mon, 17 Nov 2003 20:18
6 lines
1320 bytes
The newbie again.

How does one go about forcing posts (often generated from html forum
software, mirrored to Usenet), that span the whole width of a term window
inside of slrn to a more readable 72-80 chars, when viewing the article
body?
Re: [slrn] wrap html posts
#137678
Author: SINNER
Date: Mon, 17 Nov 2003 22:19
13 lines
1809 bytes
* Steve Wrote in news.software.readers, on Mon, 17 Nov 2003 15:18:52 -0500:
> The newbie again.

> How does one go about forcing posts (often generated from html forum
> software, mirrored to Usenet), that span the whole width of a term window
> inside of slrn to a more readable 72-80 chars, when viewing the article
> body?

Hit the W.
-- 
David                    | AGM Favorite Games - http://tinyurl.com/loec 
Writing is turning one's worst moments into money.
		-- J.P. Donleavy
Re: [slrn] wrap html posts
#137687
Author: Thomas Schultz
Date: Mon, 17 Nov 2003 22:55
14 lines
1700 bytes
* Steve [2003-11-17 20:18] :

> How does one go about forcing posts (often generated from html forum
> software, mirrored to Usenet), that span the whole width of a term
> window inside of slrn to a more readable 72-80 chars, when viewing
> the article body?

Did you try wrap_article ("W" in article mode) or the wrap_* config
variables?
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2003-08-25] Released slrn 0.9.8.0
| Home of the slrn newsreader | [2003-08-19] New slrn FAQ available
| http://slrn.sourceforge.net | [2003-07-31] First beta with offline reading
Re: [slrn] wrap html posts
#137692
Author: Steve
Date: Mon, 17 Nov 2003 23:47
14 lines
1764 bytes
On Mon, 17 Nov 2003 22:19:33 GMT, SINNER in news.software.readers wrote:
> * Steve Wrote in news.software.readers, on Mon, 17 Nov 2003 15:18:52 -0500:
>> The newbie again.

>> How does one go about forcing posts (often generated from html forum
>> software, mirrored to Usenet), that span the whole width of a term window
>> inside of slrn to a more readable 72-80 chars, when viewing the article
>> body?

> Hit the W.

No, that doesn't acheive what I need (and I know of that one). The 'W'
simply wraps long lines to fill the width of my term. I'm sure it's in
the fine manual, which I'm reading presently.
Re: [slrn] wrap html posts
#137693
Author: Steve
Date: Mon, 17 Nov 2003 23:49
13 lines
1781 bytes
On Mon, 17 Nov 2003 22:55:41 +0000 (UTC), Thomas Schultz in news.software.readers wrote:
> * Steve [2003-11-17 20:18] :

>> How does one go about forcing posts (often generated from html forum
>> software, mirrored to Usenet), that span the whole width of a term
>> window inside of slrn to a more readable 72-80 chars, when viewing
>> the article body?

> Did you try wrap_article ("W" in article mode) or the wrap_* config
> variables?

I used 'W' in article mode, and it does wrap, but to fill the width of
my term, not to 72-80 chars. Must be another switch somewhere?
Re: [slrn] wrap html posts
#137833
Author: Bill Marcum
Date: Thu, 20 Nov 2003 22:24
20 lines
1987 bytes
On Mon, 17 Nov 2003 18:49:44 -0500, Steve 
  <Steve.D. Allen@sweetpig.dyndns.org> wrote:
> On Mon, 17 Nov 2003 22:55:41 +0000 (UTC), Thomas Schultz in news.software.readers wrote:
>> * Steve [2003-11-17 20:18] :
>
>>> How does one go about forcing posts (often generated from html forum
>>> software, mirrored to Usenet), that span the whole width of a term
>>> window inside of slrn to a more readable 72-80 chars, when viewing
>>> the article body?
>
>> Did you try wrap_article ("W" in article mode) or the wrap_* config
>> variables?
>
> I used 'W' in article mode, and it does wrap, but to fill the width of
> my term, not to 72-80 chars. Must be another switch somewhere?

Resize your terminal to 80 characters wide.

-- 
You can go anywhere you want if you look serious and carry a clipboard.
Re: [slrn] wrap html posts
#137845
Author: Steve
Date: Fri, 21 Nov 2003 03:15
20 lines
2146 bytes
On Thu, 20 Nov 2003 17:24:11 -0500, Bill Marcum in news.software.readers wrote:
> On Mon, 17 Nov 2003 18:49:44 -0500, Steve 
>  <Steve.D. Allen@sweetpig.dyndns.org> wrote:
>> On Mon, 17 Nov 2003 22:55:41 +0000 (UTC), Thomas Schultz in news.software.readers wrote:
>>> * Steve [2003-11-17 20:18] :

>>>> How does one go about forcing posts (often generated from html forum
>>>> software, mirrored to Usenet), that span the whole width of a term
>>>> window inside of slrn to a more readable 72-80 chars, when viewing
>>>> the article body?

>>> Did you try wrap_article ("W" in article mode) or the wrap_* config
>>> variables?

>> I used 'W' in article mode, and it does wrap, but to fill the width of
>> my term, not to 72-80 chars. Must be another switch somewhere?

> Resize your terminal to 80 characters wide.

Yeah, Yeah, so I guess you don't have a solution either?
Re: [slrn] wrap html posts
#137858
Author: Sven Guckes
Date: Fri, 21 Nov 2003 10:46
30 lines
2307 bytes
* Steve <Steve.D. Allen@bell.ca>:
> On Thu, 20 Nov 2003 17:24:11 -0500, Bill Marcum in news.software.readers wrote:
>> On Mon, 17 Nov 2003 18:49:44 -0500, Steve
>>  <Steve.D. Allen@sweetpig.dyndns.org> wrote:
>>> On Mon, 17 Nov 2003 22:55:41 +0000 (UTC), Thomas Schultz in news.software.readers wrote:
>>>> * Steve [2003-11-17 20:18] :
>
>>>>> How does one go about forcing posts (often generated from html forum
>>>>> software, mirrored to Usenet), that span the whole width of a term
>>>>> window inside of slrn to a more readable 72-80 chars, when viewing
>>>>> the article body?
>
>>>> Did you try wrap_article ("W" in article mode) or the wrap_* config
>>>> variables?
>
>>> I used 'W' in article mode, and it does wrap, but to fill the width of
>>> my term, not to 72-80 chars. Must be another switch somewhere?
>
>> Resize your terminal to 80 characters wide.
>
> Yeah, Yeah, so I guess you don't have a solution either?

you make changes to your post with your *editor* -
and not by configuring your newsreader.  get a clue.

> From: Steve <"Steve.D. Allen"@bell.ca>

broken by concept?

Sven
Re: [slrn] wrap html posts
#137862
Author: Thomas Schultz
Date: Fri, 21 Nov 2003 11:27
48 lines
3008 bytes
* Steve [2003-11-21 03:15] :
> On Thu, 20 Nov 2003 17:24:11 -0500, Bill Marcum wrote:
[...]
>> Resize your terminal to 80 characters wide.
> Yeah, Yeah, so I guess you don't have a solution either?

If you really want to wrap after 80 characters in a wider terminal,
you can do this using a macro (get current article text with
read_article_as_string, replace it after processing with
replace_article). You can either write the logic to do the wrapping
yourself, or you can use an external program like fold(1).

Actually, the following macro (the part between the #v+/#v- marks)
should already do what you want:

#v+
define display_filter ()
{
   variable filter = "fold -s";
   variable tempfile = strcat(getenv("HOME"),"/.slrn-display-article");
   variable fp = popen (filter + " > " + tempfile, "w");

   if (fp == NULL) verror ("Unable to open %s", filter);
   if ((-1 == fputs (article_as_string(), fp)) or
       (-1 == fclose (fp)))
     verror ("Error writing to %s", filter);
   
   variable buf;
   variable article;
   fp = fopen (tempfile, "r");
   if (fp == NULL) verror ("fopen %s failed", tempfile);
   article = strjoin (fgetslines (fp),"");
   if (-1 == fclose (fp))
     verror ("Error closing %s", tempfile);
   if (-1 == remove (tempfile))
     verror ("Error removing %s", tempfile);
   
   replace_article(article);
}

!if (1 == register_hook("read_article_hook", "display_filter"))
  error ("Could not register display_filter for read_article_hook");
#v-
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2003-08-25] Released slrn 0.9.8.0
| Home of the slrn newsreader | [2003-08-19] New slrn FAQ available
| http://slrn.sourceforge.net | [2003-07-31] First beta with offline reading
Re: [slrn] wrap html posts
#137875
Author: Steve
Date: Fri, 21 Nov 2003 15:55
20 lines
2012 bytes
On 21 Nov 2003 10:46:37 GMT, Sven Guckes in news.software.readers wrote:
> * Steve <Steve.D. Allen@bell.ca>:
>> On Thu, 20 Nov 2003 17:24:11 -0500, Bill Marcum in news.software.readers wrote:

>>> Resize your terminal to 80 characters wide.

>> Yeah, Yeah, so I guess you don't have a solution either?

> you make changes to your post with your *editor* -
> and not by configuring your newsreader.  get a clue.

Fuck off Sven, I'm tired of your attitude. Your wife/boyfriend been
giving you a difficult time lately?

>> From: Steve <"Steve.D. Allen"@bell.ca>

> broken by concept?

Oh yeah, the mysterious Sven...that's on purpose btw.
Re: [slrn] wrap html posts
#137876
Author: Steve
Date: Fri, 21 Nov 2003 15:58
14 lines
1903 bytes
On Fri, 21 Nov 2003 11:27:32 +0000 (UTC), Thomas Schultz in news.software.readers wrote:

> If you really want to wrap after 80 characters in a wider terminal,
> you can do this using a macro (get current article text with
> read_article_as_string, replace it after processing with
> replace_article). You can either write the logic to do the wrapping
> yourself, or you can use an external program like fold(1).

> Actually, the following macro (the part between the #v+/#v- marks)
> should already do what you want:

<snip>

Thanks Thomas.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads