Thread View: news.software.readers
21 messages
21 total messages
Started by J.B. Nicholson
Sat, 04 Nov 2017 05:33
[slrn] Interesting macro ideas?
Author: J.B. Nicholson
Date: Sat, 04 Nov 2017 05:33
Date: Sat, 04 Nov 2017 05:33
4 lines
1223 bytes
1223 bytes
Got an idea for an interesting slrn macro? Follow-up to this post and describe as much about the idea as you can. Maybe you'll inspire someone to help implement it.
Re: [slrn] Interesting macro ideas?
Author: Yeechang Lee
Date: Sat, 04 Nov 2017 08:33
Date: Sat, 04 Nov 2017 08:33
21 lines
3351 bytes
3351 bytes
J.B. Nicholson wrote: > Follow-up to this post and describe as much about the idea as you > can. Maybe you'll inspire someone to help implement it. I'd love to see one that will reparse all Date: lines to the same time zone. Example: Date: Sat, 04 Nov 2017 08:25:25 +0000 in an article is displayed as Date: Sat 04 Nov 2017 01:25:25 AM PDT when read. I wrote Elisp code to do this within VM, my mail client (it uses whatever is the locale standard format), but don't have any experience with Slang. -- geo:37.783333,-122.416667
Re: [slrn] Interesting macro ideas?
Author: J.B. Nicholson
Date: Sun, 05 Nov 2017 04:27
Date: Sun, 05 Nov 2017 04:27
14 lines
1770 bytes
1770 bytes
Yeechang Lee <ylee@columbia.edu> wrote: > I wrote Elisp code to do this within VM, my mail client (it uses > whatever is the locale standard format), but don't have any > experience with Slang. Are you doing the time string conversion in your Elisp code, calling upon some other program to do the conversion, then accepting what that program outputs as the string to display, or something else? If you're doing the conversion yourself, perhaps you could post a URL where people can get the Elisp code? This could help them see how you're doing it and doing something comparable in S-Lang? Thanks.
Re: [slrn] Interesting macro ideas?
Author: J.B. Nicholson
Date: Sun, 05 Nov 2017 05:23
Date: Sun, 05 Nov 2017 05:23
22 lines
2157 bytes
2157 bytes
I <jbn@forestfield.org> wrote: > Are you doing the time string conversion in your Elisp code, calling > upon some other program to do the conversion, then accepting what > that program outputs as the string to display, or something else? I don't know how your code does this job, but it looks like date (from GNU coreutils) will do the job: date --date='Sat, 04 Nov 2017 08:25:25 +0000' +'%a %B %d %Y %I:%M:%S %p %Z' looks like it will output the converted date and time in your timezone. So, roughly, this should be a matter of getting the Date: header, vetting it to be sure the result is sane and parseable, passing it to GNU date in the above syntax to be converted, capturing the output, and rewriting the article. I don't much like the idea of passing arbitrary input to an external command (regex vetting should be done but it inherently creates a security hole and an external dependency), but the rest should be feasible.
Re: [slrn] Interesting macro ideas?
Author: Lewis
Date: Sun, 05 Nov 2017 15:02
Date: Sun, 05 Nov 2017 15:02
16 lines
1686 bytes
1686 bytes
In message <slrnovqka0.57k.jbn@forestfield.org> J.B. Nicholson <jbn@forestfield.org> wrote: > Got an idea for an interesting slrn macro? > Follow-up to this post and describe as much about the idea as you > can. Maybe you'll inspire someone to help implement it. This should be simple, but I don't know enough about macros to know that it is. When you view the scores for a posting, it would be nice if selecting a score and hitting return would open the score file *at that point*. -- Death is caused by swallowing small amounts of saliva over a long period of time.
Re: [slrn] Interesting macro ideas?
Author: Yeechang Lee
Date: Mon, 06 Nov 2017 08:25
Date: Mon, 06 Nov 2017 08:25
9 lines
3040 bytes
3040 bytes
Lewis wrote: > When you view the scores for a posting, it would be nice if selecting a > score and hitting return would open the score file *at that point*. Already implemented. In .slrnrc, %d is used to pass the desired line number to editor_command. -- geo:37.783333,-122.416667
Re: [slrn] Interesting macro ideas?
Author: Lewis
Date: Mon, 06 Nov 2017 18:16
Date: Mon, 06 Nov 2017 18:16
13 lines
1640 bytes
1640 bytes
In message <slrnp0074e.g6p.ylee@columbia.edu> Yeechang Lee <ylee@columbia.edu> wrote: > Lewis wrote: >> When you view the scores for a posting, it would be nice if selecting a >> score and hitting return would open the score file *at that point*. > Already implemented. In .slrnrc, %d is used to pass the desired line > number to editor_command. Hmm. doesn't appear to work (and never has) (I use vim) -- I never read much; I have something else to do.
Re: [slrn] Interesting macro ideas?
Author: Will Parsons
Date: Mon, 06 Nov 2017 20:20
Date: Mon, 06 Nov 2017 20:20
17 lines
1459 bytes
1459 bytes
Lewis wrote: > In message <slrnp0074e.g6p.ylee@columbia.edu> Yeechang Lee <ylee@columbia.edu> wrote: >> Lewis wrote: >>> When you view the scores for a posting, it would be nice if selecting a >>> score and hitting return would open the score file *at that point*. > >> Already implemented. In .slrnrc, %d is used to pass the desired line >> number to editor_command. > > Hmm. doesn't appear to work (and never has) (I use vim) It's worked for me for years. I don't use vim, but using Emacs the following works: set editor_command "emacs +%d %s" -- Will
Re: [slrn] Interesting macro ideas?
Author: Lewis
Date: Mon, 06 Nov 2017 22:21
Date: Mon, 06 Nov 2017 22:21
23 lines
2145 bytes
2145 bytes
In message <f6bugiFmq34U1@mid.individual.net> Will Parsons <wbp@nodomain.invalid> wrote: > Lewis wrote: >> In message <slrnp0074e.g6p.ylee@columbia.edu> Yeechang Lee <ylee@columbia.edu> wrote: >>> Lewis wrote: >>>> When you view the scores for a posting, it would be nice if selecting a >>>> score and hitting return would open the score file *at that point*. >> >>> Already implemented. In .slrnrc, %d is used to pass the desired line >>> number to editor_command. >> >> Hmm. doesn't appear to work (and never has) (I use vim) > It's worked for me for years. I don't use vim, but using Emacs the following > works: > set editor_command "emacs +%d %s" set editor_command "vim -c 'set filetype=mail' +%d %s" Score file always opens at line 1. -- 'My strength is like the strength of ten because my heart is pure,' said Carrot. 'Really? Well, there's eleven of them.' --Jingo
Re: [slrn] Interesting macro ideas?
Author: Lewis
Date: Mon, 06 Nov 2017 22:24
Date: Mon, 06 Nov 2017 22:24
24 lines
2290 bytes
2290 bytes
In message <slrnp01o2h.pc.g.kreme@snow.local> Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > In message <f6bugiFmq34U1@mid.individual.net> Will Parsons <wbp@nodomain.invalid> wrote: >> Lewis wrote: >>> In message <slrnp0074e.g6p.ylee@columbia.edu> Yeechang Lee <ylee@columbia.edu> wrote: >>>> Lewis wrote: >>>>> When you view the scores for a posting, it would be nice if selecting a >>>>> score and hitting return would open the score file *at that point*. >>> >>>> Already implemented. In .slrnrc, %d is used to pass the desired line >>>> number to editor_command. >>> >>> Hmm. doesn't appear to work (and never has) (I use vim) >> It's worked for me for years. I don't use vim, but using Emacs the following >> works: >> set editor_command "emacs +%d %s" > set editor_command "vim -c 'set filetype=mail' +%d %s" sorry, set post_editor_command -- 'My strength is like the strength of ten because my heart is pure,' said Carrot. 'Really? Well, there's eleven of them.' --Jingo
Re: [slrn] Interesting macro ideas?
Author: Whiskers
Date: Tue, 07 Nov 2017 13:40
Date: Tue, 07 Nov 2017 13:40
36 lines
2547 bytes
2547 bytes
On 2017-11-06, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > In message <slrnp01o2h.pc.g.kreme@snow.local> Lewis > <g.kreme@gmail.com.dontsendmecopies> wrote: >> In message <f6bugiFmq34U1@mid.individual.net> Will Parsons >> <wbp@nodomain.invalid> wrote: >>> Lewis wrote: >>>> In message <slrnp0074e.g6p.ylee@columbia.edu> Yeechang Lee >>>> <ylee@columbia.edu> wrote: >>>>> Lewis wrote: >>>>>> When you view the scores for a posting, it would be nice if >>>>>> selecting a score and hitting return would open the score file >>>>>> *at that point*. >>>> >>>>> Already implemented. In .slrnrc, %d is used to pass the desired >>>>> line number to editor_command. >>>> >>>> Hmm. doesn't appear to work (and never has) (I use vim) > >>> It's worked for me for years. I don't use vim, but using Emacs the >>> following works: set editor_command "emacs +%d %s" > >> set editor_command "vim -c 'set filetype=mail' +%d %s" > > sorry, set post_editor_command I have these editor settings, which seem to work as expected: set editor_command "vim %s" set mail_editor_command "vim -c 'set filetype=mail' +8 %s" set post_editor_command "vim -c 'set filetype=mail' +8 %s" set score_editor_command "vim -c +%d %s" -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [slrn] Interesting macro ideas?
Author: Whiskers
Date: Tue, 07 Nov 2017 13:52
Date: Tue, 07 Nov 2017 13:52
41 lines
2802 bytes
2802 bytes
On 2017-11-07, Whiskers <catwheezel@operamail.com> wrote: > On 2017-11-06, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: >> In message <slrnp01o2h.pc.g.kreme@snow.local> Lewis >> <g.kreme@gmail.com.dontsendmecopies> wrote: >>> In message <f6bugiFmq34U1@mid.individual.net> Will Parsons >>> <wbp@nodomain.invalid> wrote: >>>> Lewis wrote: >>>>> In message <slrnp0074e.g6p.ylee@columbia.edu> Yeechang Lee >>>>> <ylee@columbia.edu> wrote: >>>>>> Lewis wrote: >>>>>>> When you view the scores for a posting, it would be nice if >>>>>>> selecting a score and hitting return would open the score file >>>>>>> *at that point*. >>>>> >>>>>> Already implemented. In .slrnrc, %d is used to pass the desired >>>>>> line number to editor_command. >>>>> >>>>> Hmm. doesn't appear to work (and never has) (I use vim) >> >>>> It's worked for me for years. I don't use vim, but using Emacs the >>>> following works: set editor_command "emacs +%d %s" >> >>> set editor_command "vim -c 'set filetype=mail' +%d %s" >> >> sorry, set post_editor_command > > I have these editor settings, which seem to work as expected: > > set editor_command "vim %s" > set mail_editor_command "vim -c 'set filetype=mail' +8 %s" > set post_editor_command "vim -c 'set filetype=mail' +8 %s" > set score_editor_command "vim -c +%d %s" Oh dear - correction: that last line should of course be set score_editor_command "vim +%d %s" -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [slrn] Interesting macro ideas?
Author: Whiskers
Date: Tue, 07 Nov 2017 14:02
Date: Tue, 07 Nov 2017 14:02
13 lines
1446 bytes
1446 bytes
On 2017-11-04, J.B. Nicholson <jbn@forestfield.org> wrote: > Got an idea for an interesting slrn macro? > > Follow-up to this post and describe as much about the idea as you > can. Maybe you'll inspire someone to help implement it. Getting X-Face headers to display the image. I had such a macro years ago but I can't seem to find one now. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [slrn] Interesting macro ideas?
Author: Yeechang Lee
Date: Tue, 07 Nov 2017 20:26
Date: Tue, 07 Nov 2017 20:26
9 lines
3195 bytes
3195 bytes
Whiskers wrote: > set mail_editor_command "vim -c 'set filetype=mail' +8 %s" > set post_editor_command "vim -c 'set filetype=mail' +8 %s" Change +8 to +%d, so the editor will open at the correct line no matter how many headers there are. -- geo:37.783333,-122.416667
Re: [slrn] Interesting macro ideas?
Author: Whiskers
Date: Tue, 07 Nov 2017 22:57
Date: Tue, 07 Nov 2017 22:57
15 lines
1817 bytes
1817 bytes
On 2017-11-07, Yeechang Lee <ylee@columbia.edu> wrote: > Whiskers wrote: >> set mail_editor_command "vim -c 'set filetype=mail' +8 %s" >> set post_editor_command "vim -c 'set filetype=mail' +8 %s" > > Change +8 to +%d, so the editor will open at the correct line no > matter how many headers there are. Yes, that should work too; might even be better. But I'm used to finding the cursor on line 8 now. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [slrn] Interesting macro ideas?
Author: J.B. Nicholson
Date: Wed, 15 Nov 2017 07:24
Date: Wed, 15 Nov 2017 07:24
12 lines
1685 bytes
1685 bytes
Whiskers <catwheezel@operamail.com> wrote: > Getting X-Face headers to display the image. I had such a macro > years ago but I can't seem to find one now. Any tips on how one could go from a textual X-Face encoding to a bitmap on the command line? I'm thinking of something that uses the Poskanzer utilities, ImageMagick, or some other small, FLOSS, command line program? I'm not familiar with the X-Face format but I'm guessing that a such a command would be the heart of such a macro.
Re: [slrn] Interesting macro ideas?
Author: Whiskers
Date: Wed, 15 Nov 2017 13:02
Date: Wed, 15 Nov 2017 13:02
29 lines
2360 bytes
2360 bytes
On 2017-11-15, J.B. Nicholson <jbn@forestfield.org> wrote: > Whiskers <catwheezel@operamail.com> wrote: >> Getting X-Face headers to display the image. I had such a macro >> years ago but I can't seem to find one now. > > Any tips on how one could go from a textual X-Face encoding to a > bitmap on the command line? > > I'm thinking of something that uses the Poskanzer utilities, > ImageMagick, or some other small, FLOSS, command line program? > > I'm not familiar with the X-Face format but I'm guessing that a such a > command would be the heart of such a macro. I've remembered that the slrn macro I had was called 'slrnface', and that still seems to exist as a Debian package <https://debian.pkgs.org/9/debian-main-amd64/slrnface_2.1.1-7+b1_amd64.deb.html>. so presumably somewhere the source code is still available (there's no link to it from that page). I use Arch Linux, so .deb packages aren't immediately functional here (but can probably be converted). It may need adaptation to work with the current versions of slrn and S-Lang. The utility for converting X-Face images is 'compface' <http://ftp.xemacs.org/pub/xemacs/aux/> -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [slrn] Interesting macro ideas?
Author: Lewis
Date: Thu, 16 Nov 2017 00:38
Date: Thu, 16 Nov 2017 00:38
35 lines
2908 bytes
2908 bytes
In message <slrnp0oene.39n.catwheezel@ID-107770.user.individual.net> Whiskers <catwheezel@operamail.com> wrote: > On 2017-11-15, J.B. Nicholson <jbn@forestfield.org> wrote: >> Whiskers <catwheezel@operamail.com> wrote: >>> Getting X-Face headers to display the image. I had such a macro >>> years ago but I can't seem to find one now. >> >> Any tips on how one could go from a textual X-Face encoding to a >> bitmap on the command line? >> >> I'm thinking of something that uses the Poskanzer utilities, >> ImageMagick, or some other small, FLOSS, command line program? >> >> I'm not familiar with the X-Face format but I'm guessing that a such a >> command would be the heart of such a macro. > I've remembered that the slrn macro I had was called 'slrnface', and > that still seems to exist as a Debian package > <https://debian.pkgs.org/9/debian-main-amd64/slrnface_2.1.1-7+b1_amd64.deb.html>. > so presumably somewhere the source code is still available (there's no > link to it from that page). I use Arch Linux, so .deb packages aren't > immediately functional here (but can probably be converted). It may > need adaptation to work with the current versions of slrn and S-Lang. > The utility for converting X-Face images is 'compface' > <http://ftp.xemacs.org/pub/xemacs/aux/> https://packages.debian.org/sid/news/slrnface appears to have files for slrnface-2.1.1-7 -- The omnipotent eyesight of various supernatural entities is often remarked upon. It is said that they can see the fall of every sparrow. And this may be true. But there is only one who is always there when it hits the ground. --Hogfather
Re: [slrn] Interesting macro ideas?
Author: Whiskers
Date: Thu, 16 Nov 2017 15:03
Date: Thu, 16 Nov 2017 15:03
42 lines
3001 bytes
3001 bytes
On 2017-11-16, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > In message <slrnp0oene.39n.catwheezel@ID-107770.user.individual.net> > Whiskers <catwheezel@operamail.com> wrote: >> On 2017-11-15, J.B. Nicholson <jbn@forestfield.org> wrote: >>> Whiskers <catwheezel@operamail.com> wrote: >>>> Getting X-Face headers to display the image. I had such a macro >>>> years ago but I can't seem to find one now. >>> >>> Any tips on how one could go from a textual X-Face encoding to a >>> bitmap on the command line? >>> >>> I'm thinking of something that uses the Poskanzer utilities, >>> ImageMagick, or some other small, FLOSS, command line program? >>> >>> I'm not familiar with the X-Face format but I'm guessing that a such >>> a command would be the heart of such a macro. > >> I've remembered that the slrn macro I had was called 'slrnface', and >> that still seems to exist as a Debian package >> <https://debian.pkgs.org/9/debian-main-amd64/slrnface_2.1.1-7+b1_amd64.deb.html>. >> so presumably somewhere the source code is still available (there's >> no link to it from that page). I use Arch Linux, so .deb packages >> aren't immediately functional here (but can probably be converted). >> It may need adaptation to work with the current versions of slrn and >> S-Lang. > >> The utility for converting X-Face images is 'compface' >> <http://ftp.xemacs.org/pub/xemacs/aux/> > > https://packages.debian.org/sid/news/slrnface appears to have files > for slrnface-2.1.1-7 .... and source code <https://packages.debian.org/source/sid/slrnface>. This is where my knowledge gets very rusty or absent. Time to really learn about building things from source in Arch Linux. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Re: [slrn] Interesting macro ideas?
Author: Lewis
Date: Wed, 07 Feb 2018 07:52
Date: Wed, 07 Feb 2018 07:52
16 lines
1809 bytes
1809 bytes
In message <slrnovqka0.57k.jbn@forestfield.org> J.B. Nicholson <jbn@forestfield.org> wrote: > Got an idea for an interesting slrn macro? > Follow-up to this post and describe as much about the idea as you > can. Maybe you'll inspire someone to help implement it. I was looking around to see if there was an updated version of the turbo_plonk script that I've been running in slrn for several years, and I was unable to find the script anywhere. Is it no longer available? Has it been replaced with something else? I've been using it to kill threads that certain trolls post in, but it's been failing for me on some of the newsgroups. -- "If you can't do something smart, do something right."
Re: [slrn] Interesting macro ideas?
Author: andrew
Date: Wed, 07 Feb 2018 21:32
Date: Wed, 07 Feb 2018 21:32
16 lines
1396 bytes
1396 bytes
On 2018-02-07, Lewis <g.kreme@gmail.com.dontsendmecopies> wrote: > I was looking around to see if there was an updated version of the > turbo_plonk script that I've been running in slrn for several years, > and I was unable to find the script anywhere. Is it no longer > available? Has it been replaced with something else? There is a copy here: http://slrn.sourceforge.net/macros/turbo-plonk.sl but I am unsure of the vintage.... Andrew -- Do you think that's air you're breathing?
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