๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
19 messages
19 total messages Started by Chris Gordon-Smith Thu, 20 Dec 2012 23:11
slrn Wrap Body Text
#252885
Author: Chris Gordon-Smith
Date: Thu, 20 Dec 2012 23:11
12 lines
1388 bytes
These days there are a lot of postings on Usenet that use 'long
lines'. If I press 'w' in slrn, the text wraps around and is easier to
read.

However, it wraps around at the edge of my 19 inch screen, so the
lines are still far too long. 

What I would like is to have them wrap around at about 70 or so
characters. Does anyone know whether slrn can be configured to do this?

Chris Gordon-Smith
www.simsoup.info
Re: slrn Wrap Body Text
#252886
Author: Lewis
Date: Thu, 20 Dec 2012 23:55
18 lines
2038 bytes
In message <ajhk8mFghdvU1@mid.individual.net> 
  Chris Gordon-Smith <use.address@my.homepage> wrote:
> These days there are a lot of postings on Usenet that use 'long
> lines'. If I press 'w' in slrn, the text wraps around and is easier to
> read.

> However, it wraps around at the edge of my 19 inch screen, so the
> lines are still far too long. 

> What I would like is to have them wrap around at about 70 or so
> characters. Does anyone know whether slrn can be configured to do this?

Nope, but it's a feature request that's been made several times. At
least once by me.

-- 
'Is it heroic to die like this?' said Conina.  'I think it is,' he said,
'and when it comes to dying, there's only one opinion that matters.'
Re: slrn Wrap Body Text
#252889
Author: J.B. Nicholson-Owens
Date: Fri, 21 Dec 2012 03:10
19 lines
1970 bytes
Chris Gordon-Smith wrote:
> What I would like is to have them wrap around at about 70 or so
> characters. Does anyone know whether slrn can be configured to do this?

I'm sure one could do this with an S-Lang macro; one approach is to grab 
the article text with article_as_string(), process the text as needed, 
then replace_article() to put the text back in the article body viewer.

One would probably want to be mindful of the "#v+" and "#v-" lines in 
the article body as they mean something special to slrn (see 
http://slrn.sourceforge.net/docs/slrn-manual-6.html#ss6.46 for more 
info), so don't alter these lines.

One would probably also want to have a configuration variable for 
wrapping width too.  Changing the wrap point and redrawing the article 
could make for a nice pair of keys to widen or narrow the width of the 
article.

Good luck!
Re: slrn Wrap Body Text
#252891
Author: Lewis
Date: Fri, 21 Dec 2012 05:18
32 lines
2884 bytes
In message <kb0jue$gp9$1@speranza.aioe.org> 
  J.B. Nicholson-Owens <jbn@forestfield.org> wrote:
> Chris Gordon-Smith wrote:
>> What I would like is to have them wrap around at about 70 or so
>> characters. Does anyone know whether slrn can be configured to do this?

> I'm sure one could do this with an S-Lang macro; one approach is to grab 
> the article text with article_as_string(), process the text as needed, 
> then replace_article() to put the text back in the article body viewer.

> One would probably want to be mindful of the "#v+" and "#v-" lines in 
> the article body as they mean something special to slrn (see 
> http://slrn.sourceforge.net/docs/slrn-manual-6.html#ss6.46 for more 
> info), so don't alter these lines.

> One would probably also want to have a configuration variable for 
> wrapping width too.  Changing the wrap point and redrawing the article 
> could make for a nice pair of keys to widen or narrow the width of the 
> article.

This all sounds great. When do you expec to have the macros available
for us to test?

> Good luck!

Oh. So that's how it is.

;)

-- 
"The good news: Hadron Collider went live and did not destroy ALL
reality. Bad: I'm the only one who remembers President Gore's 2 terms."
Re: slrn Wrap Body Text
#252890
Author: Adam Funk
Date: Fri, 21 Dec 2012 10:41
23 lines
1865 bytes
On 2012-12-20, Lewis wrote:

> In message <ajhk8mFghdvU1@mid.individual.net> 
>   Chris Gordon-Smith <use.address@my.homepage> wrote:
>> These days there are a lot of postings on Usenet that use 'long
>> lines'. If I press 'w' in slrn, the text wraps around and is easier to
>> read.
>
>> However, it wraps around at the edge of my 19 inch screen, so the
>> lines are still far too long. 
>
>> What I would like is to have them wrap around at about 70 or so
>> characters. Does anyone know whether slrn can be configured to do this?
>
> Nope, but it's a feature request that's been made several times. At
> least once by me.

"me too"


-- 
A lot of people never use their intiative because no-one
told them to.                                 --- Banksy
Re: slrn Wrap Body Text
#252892
Author: Steve Crook
Date: Fri, 21 Dec 2012 12:15
41 lines
2614 bytes
On Thu, 20 Dec 2012 23:55:16 +0000 (UTC), Lewis wrote in
Message-Id: <slrnkd79b3.bn3.g.kreme@mbp55.local>:

> In message <ajhk8mFghdvU1@mid.individual.net> 
>   Chris Gordon-Smith <use.address@my.homepage> wrote:
>> These days there are a lot of postings on Usenet that use 'long
>> lines'. If I press 'w' in slrn, the text wraps around and is easier to
>> read.
>
>> However, it wraps around at the edge of my 19 inch screen, so the
>> lines are still far too long. 
>
>> What I would like is to have them wrap around at about 70 or so
>> characters. Does anyone know whether slrn can be configured to do this?
>
> Nope, but it's a feature request that's been made several times. At
> least once by me.

Looking at the slrn source, there appears to be support for wrapping at
a fixed width.

src/art_misc.c

static int Art_Hide_Quote_Level = 1;
int Slrn_Wrap_Mode = 3;
int Slrn_Wrap_Method = 2;
int Slrn_Wrap_Width = -1;

By default wrapping is at window-width but setting it to something
between 5 and window-width should result in wrapping at the next
whitespace.

If I'm reading it right (which is highly debatable), wrap modes are:
1: Wrap headers
2: Wrap headers and quoted content
3: Wrap everything

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Re: slrn Wrap Body Text
#252895
Author: Adam Funk
Date: Fri, 21 Dec 2012 20:26
31 lines
1941 bytes
On 2012-12-21, Steve Crook wrote:

> Looking at the slrn source, there appears to be support for wrapping at
> a fixed width.
>
> src/art_misc.c
>
> static int Art_Hide_Quote_Level = 1;
> int Slrn_Wrap_Mode = 3;
> int Slrn_Wrap_Method = 2;
> int Slrn_Wrap_Width = -1;
>
> By default wrapping is at window-width but setting it to something
> between 5 and window-width should result in wrapping at the next
> whitespace.
>
> If I'm reading it right (which is highly debatable), wrap modes are:
> 1: Wrap headers
> 2: Wrap headers and quoted content
> 3: Wrap everything


When you say "there appears to be support", do you mean if other bits
of the source code are modified?  I guess this isn't accessible
through the s-lang configurable bits?


-- 
Some say the world will end in fire; some say in segfaults.
                                                 [XKCD 312]
Re: slrn Wrap Body Text
#252898
Author: Chris Gordon-Smith
Date: Fri, 21 Dec 2012 21:00
13 lines
1524 bytes
Lewis <g.kreme@gmail.com.dontsendmecopies>:

> > What I would like is to have them wrap around at about 70 or so
> > characters. Does anyone know whether slrn can be configured to do this?
> 
>  Nope, but it's a feature request that's been made several times. At
>  least once by me.
> 
Hmm. Does anyone know if there is another lightweight reader that does
it?  tin?  trn?

Chris Gordon-Smith
www.simsoup.info
Re: slrn Wrap Body Text
#252897
Author: notbob
Date: Fri, 21 Dec 2012 21:17
9 lines
1446 bytes
On 2012-12-21, Chris Gordon-Smith <use.address@my.homepage> wrote:

> Hmm. Does anyone know if there is another lightweight reader that does
> it?  tin?  trn?

Not a problem.  I jes KF the jerks too lame to wrap their posts
correctly.  Problem solved.

nb
Re: slrn Wrap Body Text
#252899
Author: Steve Crook
Date: Fri, 21 Dec 2012 21:36
50 lines
2595 bytes
On Fri, 21 Dec 2012 20:26:47 +0000, Adam Funk wrote in
Message-Id: <79teq9xh86.ln2@news.ducksburg.com>:

> On 2012-12-21, Steve Crook wrote:
>
>> Looking at the slrn source, there appears to be support for wrapping at
>> a fixed width.
>>
>> src/art_misc.c
>>
>> static int Art_Hide_Quote_Level = 1;
>> int Slrn_Wrap_Mode = 3;
>> int Slrn_Wrap_Method = 2;
>> int Slrn_Wrap_Width = -1;
>>
>> By default wrapping is at window-width but setting it to something
>> between 5 and window-width should result in wrapping at the next
>> whitespace.
>>
>> If I'm reading it right (which is highly debatable), wrap modes are:
>> 1: Wrap headers
>> 2: Wrap headers and quoted content
>> 3: Wrap everything
>
>
> When you say "there appears to be support", do you mean if other bits
> of the source code are modified?  I guess this isn't accessible
> through the s-lang configurable bits?

>From a quick test, wrapping appears to be fully supported in the version
I'm using (1.0.0-49).

Initally I changed the source of art_misc.c to state:
int Slrn_Wrap_Width = 72;
After compiling it, pressing 'w' in the article window wraps at 72
chars.

Next I exited slrn and edited .slrnrc to include:
set wrap_width 40
Pressing 'w' resulted in the article wrapping at 40 shars, overriding my
compiled in default.

I've now changed it to:
set wrap_width 80
This also works fine.

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Re: slrn Wrap Body Text
#252939
Author: Lewis
Date: Sat, 22 Dec 2012 05:42
21 lines
2135 bytes
In message <slrnkd9ljc.g6.steve@snorky.mixmin.net> 
  Steve Crook <steve@mixmin.net> wrote:
> From a quick test, wrapping appears to be fully supported in the version
> I'm using (1.0.0-49).

Ah, much newer than what is in ports for me. I will see about manually
compiling it.

> set wrap_width 80
> This also works fine.

This causes slrn to explode on launch (1.0.0-18)

> .slrnrc: Error encountered processing line 18
> set wrap_width 80


-- 
THE DEATH OF A WARRIOR OR THE OLD MAN OR THE LITTLE CHILD, THIS I
UNDERSTAND, AND I TAKE AWAY THE PAIN AND END THE SUFFERING. I DO NOT
UNDERSTAND THIS DEATH-OF-THE-MIND. --The Light Fantastic
Re: slrn Wrap Body Text
#252967
Author: Chris Gordon-Smith
Date: Sat, 22 Dec 2012 22:06
16 lines
1713 bytes
On Fri, 21 Dec 2012 21:17:19 +0000, notbob wrote:

> On 2012-12-21, Chris Gordon-Smith <use.address@my.homepage> wrote:
> 
>> Hmm. Does anyone know if there is another lightweight reader that does
>> it?  tin?  trn?
> 
> Not a problem.  I jes KF the jerks too lame to wrap their posts
> correctly.  Problem solved.
> 
> nb

Erm. How does that solve the problem?

Chris Gordon-Smith
www.simsoup.info
Re: slrn Wrap Body Text
#253152
Author: Adam Funk
Date: Thu, 03 Jan 2013 11:00
11 lines
1590 bytes
On 2012-12-21, Steve Crook wrote:

> From a quick test, wrapping appears to be fully supported in the version
> I'm using (1.0.0-49).


Is there a .deb of it?


-- 
"Mrs CJ and I avoid clichรฉs like the plague."
Re: slrn Wrap Body Text
#253150
Author: Steve Crook
Date: Thu, 03 Jan 2013 11:10
22 lines
1806 bytes
On Thu, 03 Jan 2013 11:00:01 +0000, Adam Funk wrote in
Message-Id: <hu4gr9x4k6.ln2@news.ducksburg.com>:

> On 2012-12-21, Steve Crook wrote:
>
>> From a quick test, wrapping appears to be fully supported in the version
>> I'm using (1.0.0-49).
>
>
> Is there a .deb of it?

If there is, it's not published yet:-
http://packages.qa.debian.org/s/slrn.html

Debian is currently in change freeze (pre-wheezy release) so I doubt
it's going to appear in there any time soon, unless the maintainer
creates it under "experimental".

-- 
What shall we use 
To fill the empty spaces 
Where we used to talk?
Re: slrn Wrap Body Text
#253154
Author: Adam Funk
Date: Thu, 03 Jan 2013 13:56
30 lines
2316 bytes
On 2013-01-03, Steve Crook wrote:

> On Thu, 03 Jan 2013 11:00:01 +0000, Adam Funk wrote in
> Message-Id: <hu4gr9x4k6.ln2@news.ducksburg.com>:
>
>> On 2012-12-21, Steve Crook wrote:
>>
>>> From a quick test, wrapping appears to be fully supported in the version
>>> I'm using (1.0.0-49).
>>
>>
>> Is there a .deb of it?
>
> If there is, it's not published yet:-
> http://packages.qa.debian.org/s/slrn.html
>
> Debian is currently in change freeze (pre-wheezy release) so I doubt
> it's going to appear in there any time soon, unless the maintainer
> creates it under "experimental".


Never mind, gitting & compiling it was relatively painless.  I'm a bit
unclear on whether Thomas Wiegner's "minimal multipart patch" has been
included now, though.


-- 
Nam Sibbyllam quidem Cumis ego ipse oculis meis vidi in ampulla 
pendere, et cum illi pueri dicerent: beable beable beable; respondebat 
illa: doidy doidy doidy.                                   [plorkwort]
Re: slrn Wrap Body Text
#253153
Author: Lewis
Date: Thu, 03 Jan 2013 14:20
58 lines
3665 bytes
In message <29fgr9xr63.ln2@news.ducksburg.com> 
  Adam Funk <a24061@ducksburg.com> wrote:
> On 2013-01-03, Steve Crook wrote:

>> On Thu, 03 Jan 2013 11:00:01 +0000, Adam Funk wrote in
>> Message-Id: <hu4gr9x4k6.ln2@news.ducksburg.com>:
>>
>>> On 2012-12-21, Steve Crook wrote:
>>>
>>>> From a quick test, wrapping appears to be fully supported in the version
>>>> I'm using (1.0.0-49).
>>>
>>>
>>> Is there a .deb of it?
>>
>> If there is, it's not published yet:-
>> http://packages.qa.debian.org/s/slrn.html
>>
>> Debian is currently in change freeze (pre-wheezy release) so I doubt
>> it's going to appear in there any time soon, unless the maintainer
>> creates it under "experimental".

> Never mind, gitting & compiling it was relatively painless.  I'm a bit
> unclear on whether Thomas Wiegner's "minimal multipart patch" has been
> included now, though.

He's mentioned quite a lot int he changes.txt file, but since I don't
know the patch you refer to...

Hmm. It appears not. The patch applies changes to art.c

  while (l != NULL)
     {
        int smart_space = (Slrn_Smart_Quote & 0x01) && ! (l->flags & QUOTE_LINE)
          && (*l->buf != 0);
+        if (l->flags & HIDDEN_LINE)
+        {
+          l = l->next;
+          continue;
+        }          
        if ((*l->buf == 0) && (Slrn_Smart_Quote & 0x02))

I didn't look any further, but those lines are not in the source for
1.0.1. That is not to say that the problem addressed by the patch may
not have been handled in some other source file in some other way.

The patch file is for 0.9.9, so I would be hesitant about applying it to
1.0.1 (well, no, not hesitant, I wouldn't do it at all). The line
numbers do not match at least int he art.c file and the patch is pretty
extensive.

There is a mime.sl file and this note in the changes.txt:

> 32. macros/mime.sl: Added initial support for multipart mime messages.

-- 
BUGS: There is no conversion specification for the phase of the moon."
strftime(3) man page
Re: slrn Wrap Body Text
#253164
Author: Adam Funk
Date: Thu, 03 Jan 2013 14:50
37 lines
2815 bytes
On 2013-01-03, Lewis wrote:

>   Adam Funk <a24061@ducksburg.com> wrote:

>> Never mind, gitting & compiling it was relatively painless.  I'm a bit
>> unclear on whether Thomas Wiegner's "minimal multipart patch" has been
>> included now, though.
>
> He's mentioned quite a lot int he changes.txt file, but since I don't
> know the patch you refer to...
>
> Hmm. It appears not. The patch applies changes to art.c
...
> I didn't look any further, but those lines are not in the source for
> 1.0.1. That is not to say that the problem addressed by the patch may
> not have been handled in some other source file in some other way.
>
> The patch file is for 0.9.9, so I would be hesitant about applying it to
> 1.0.1 (well, no, not hesitant, I wouldn't do it at all). The line
> numbers do not match at least int he art.c file and the patch is pretty
> extensive.

That would explain why the patch command (which I'm not very familiar
with) barfed when I tried it.


> There is a mime.sl file and this note in the changes.txt:
>
>> 32. macros/mime.sl: Added initial support for multipart mime messages.

Thanks.


-- 
They do (play, that is), and nobody gets killed, but Metallic K.O. is
the only rock album I know where you can actually hear hurled beer
bottles breaking against guitar strings.             --- Lester Bangs
Re: slrn Wrap Body Text
#253177
Author: John E. Davis
Date: Thu, 03 Jan 2013 17:20
9 lines
1807 bytes
On Thu, 03 Jan 2013 13:56:18 +0000, Adam Funk <a24061@ducksburg.com>
wrote:
> Never mind, gitting & compiling it was relatively painless.  I'm a bit
> unclear on whether Thomas Wiegner's "minimal multipart patch" has been
> included now, though.

Mime support was added in early 2012.  I do not believe that the
patch is necessary.  --John
Re: slrn Wrap Body Text
#253181
Author: Adam Funk
Date: Thu, 03 Jan 2013 20:45
18 lines
1893 bytes
On 2013-01-03, John E. Davis wrote:

> On Thu, 03 Jan 2013 13:56:18 +0000, Adam Funk <a24061@ducksburg.com>
> wrote:
>> Never mind, gitting & compiling it was relatively painless.  I'm a bit
>> unclear on whether Thomas Wiegner's "minimal multipart patch" has been
>> included now, though.
>
> Mime support was added in early 2012.  I do not believe that the
> patch is necessary.  --John

Thanks!


-- 
They do (play, that is), and nobody gets killed, but Metallic K.O. is
the only rock album I know where you can actually hear hurled beer
bottles breaking against guitar strings.             --- Lester Bangs
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