🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #265310

Re: nn (was: Replace Google Groups with ?)

#265310
From: Peter J Ross
Date: Fri, 14 Jan 2022 19:43
32 lines
2194 bytes
On 2022-01-09, Ted Heise <theise@panix.com> wrote:

>   smw <smw@mort.smwonline.ca> wrote:
> 
>> The other item on my wish list is to convert quoted-printable text to
>> UTF automatically, with an option to force line wrapping at a
>> user-settable column (because flowed paragraphs in QP present as a
>> single line with many hundreds of characters).
>
> For what it's worth, slrn does this with the command "w" (for "wrap" I
> suppose) while reading articles.  Maybe knowing what to look for in
> that code would simplify using some of it?  I could be way off base
> here, having only ever glanced at sources.

slrn's pager wraps (if wrapping is desired) at the edge of the screen or
window, not at "a user-settable column". I'm not sure why a user would
want to set a column for wrapping.

Other aspects of wrapping are configurable in slrn by setting the
variables "wrap_flags" and "wrap_method" in .slrnrc.

https://slrn.info/docs/slrn-manual-6.html#ss6.133
https://slrn.info/docs/slrn-manual-6.html#ss6.134

slrn is written in C. If nn is written is C, the relevant code ought to
be easy to adapt.

https://slrn.info/download.html


-- 
PJR :-)
Technical Details
Message-ID: <slrnsu3kjm.278s.pjr@pjr.example.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net> <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com> <srctle$se9$2@dont-email.me> <slrnstloce.cir.theise@panix2.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnsu3kjm.278s.pjr@pjr.example.invalid>
Subject: Re: nn (was: Replace Google Groups with ?)
Date: Fri, 14 Jan 2022 19:43:50 +0000
From: Peter J Ross <pjr@example.invalid>
References: <c6e80c2a-e732-4f7c-8071-48c2d284a81a@googlegroups.com> <1aydncHF-7-KR4fNnZ2dnUVZ_u-dnZ2d@giganews.com> <jvet6k$n0i$1@n102.xanadu-bbs.net> <4fSdndK4LcY5vYHNnZ2dnUVZ_h2dnZ2d@giganews.com> <jvhorp$ekl$1@n102.xanadu-bbs.net> <CpOdnbBHrtmv6oDNnZ2dnUVZ_iydnZ2d@giganews.com> <srctle$se9$2@dont-email.me> <slrnstloce.cir.theise@panix2.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.os.linux.slackware,news.software.readers
Lines: 32
X-Trace: individual.net mPwHs6XCkhWpH5HBkcOjaQsUKma252wVj7SPMI0t/wfdtKXz7/
Cancel-Lock: sha1:jVkYAFRW4Eatb4v2mcWEaa+36Gc=
User-Agent: slrn/1.0.3 (Linux)