🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
35 messages
35 total messages Started by The Ohmster Fri, 19 Aug 2005 04:21
[slrn] Cannot add X-face
#171607
Author: The Ohmster
Date: Fri, 19 Aug 2005 04:21
31 lines
2594 bytes
I use Xnews all the time but recently discovered slrn and have set it up
to use vim for an editor and am tickled pink with it. Now I want to add
my X-face to slrn in my ~/.slrnrc file but when I add it and try it out,
my full X-Face header gets cut off after a few characters and thus the
X-Face fails, I only get the small square for the face and nothing
inside of it. I can tell it will fail because I see my headers as I am
posting and see that only a few characters are there for the X-Face
line. Why is this happening? It works so well with xnews. I will post my
slrn config for X-Face, could someone look at it and see what is wrong
with it? Thanks.

Here is my ~/.slrnrc file entry, all on one line:

set custom_headers "X-Face:
.XlXp$frDJgk"+lb;#RRo7mu{1=_.HV?RtB}%$JLN.!>>|\CPyQIi3/aBRW#(.dd8zlF9N]k8{xh03zVf=zG1G6{.bb%H8Vs%|7l'1YWAw+A)x'S"-}(Y`#ZN`#04OktRpU*!NdugZh(o%w5K,?/WqZ(qWs}K)Req:&D'|lkj%*a[N0bMk^Tr<PY{Sz6YcFm'[*2fkS/RV>}L.;=6evum0C,LE}%s@g;]-DhWu4J"DbcJ*+fIo,l8cH@ZxF|dm~;Vg;XxV@K!Wp|SV+3HPyIOS,Z'j]jz]i=/5*!J&hVOQ["


When I post an article, this is what shows up as my header in the post
window and after it is posted: 

X-Face: .XlXp$frDJgk


Obviously this will not work, why is this getting cut off like this and
how come slrn "won't see" the entire line?

Thanks for your help.
-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171606
Author: Ohmster
Date: Fri, 19 Aug 2005 04:31
27 lines
2432 bytes
The Ohmster <ohmster@ohmster.com> wrote in
news:slrndganm0.eg8.ohmster@ohmster.com: 

> set custom_headers "X-Face:
> .XlXp$frDJgk"+lb;#RRo7mu{1=_.HV?RtB}%$JLN.!>>|\CPyQIi3/aBRW#(.dd8zlF9N]
> k8{xh03zVf=zG1G6{.bb%H8Vs%|7l'1YWAw+A)x'S"-}(Y`#ZN`#04OktRpU*!NdugZh(o%
> w5K,?/WqZ(qWs}K)Req:&D'|lkj%*a[N0bMk^Tr<PY{Sz6YcFm'[*2fkS/RV>}L.;=6evum
> 0C,LE}%s@g;]-DhWu4J"DbcJ*+fIo,l8cH@ZxF|dm~;Vg;XxV@K!Wp|SV+3HPyIOS,Z'j]j
> z]i=/5*!J&hVOQ[" 
> 
> 
> When I post an article, this is what shows up as my header in the post
> window and after it is posted: 
> 
> X-Face: .XlXp$frDJgk

Ahh crap! I see it now. I have a quote mark after the Jgk". What can I do 
about this? This is really my X-Face and it does include a quotation mark. 
Is there any way to "escape" this quotation mark in .slrnrc so that slrn 
will read the entire X-Face line?

Thanks.

-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171611
Author: »Q«
Date: Fri, 19 Aug 2005 05:34
17 lines
1903 bytes
Ohmster <notareal@emailaddress.com> wrote in
<news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:

> Ahh crap! I see it now. I have a quote mark after the Jgk". What
> can I do about this? This is really my X-Face and it does include
> a quotation mark. Is there any way to "escape" this quotation mark
> in .slrnrc so that slrn will read the entire X-Face line?

\"

You need to escape any backslashes the same way, by using \\, and you
need to escape % by using %%.

-- 
»Q«
     links to Xnews resources:
     <http://www.cotse.net/users/putty/intro.htm>
Re: [slrn] Cannot add X-face
#171624
Author: Blinky the Shark
Date: Fri, 19 Aug 2005 06:41
22 lines
2031 bytes
»Q« wrote:
> Ohmster <notareal@emailaddress.com> wrote in
><news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:
>
>> Ahh crap! I see it now. I have a quote mark after the Jgk". What
>> can I do about this? This is really my X-Face and it does include
>> a quotation mark. Is there any way to "escape" this quotation mark
>> in .slrnrc so that slrn will read the entire X-Face line?
>
> \"
>
> You need to escape any backslashes the same way, by using \\, and you
> need to escape % by using %%.

Am I right that that's true now (and a fairly recent development) for
both new posts *and* replies?

-- 
Blinky                                     Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171645
Author: SINNER
Date: Fri, 19 Aug 2005 12:00
23 lines
2170 bytes
* Blinky the Shark wrote in news.software.readers:
> »Q« wrote:
>> Ohmster <notareal@emailaddress.com> wrote in
>><news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:

>>> Ahh crap! I see it now. I have a quote mark after the Jgk". What
>>> can I do about this? This is really my X-Face and it does include
>>> a quotation mark. Is there any way to "escape" this quotation mark
>>> in .slrnrc so that slrn will read the entire X-Face line?

>> \"

>> You need to escape any backslashes the same way, by using \\, and you
>> need to escape % by using %%.

> Am I right that that's true now (and a fairly recent development) for
> both new posts *and* replies?

Indeed.

-- 
David
Today is the last day of your life so far.
Re: [slrn] Cannot add X-face
#171651
Author: Whiskers
Date: Fri, 19 Aug 2005 12:54
30 lines
2324 bytes
On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
> »Q« wrote:
>> Ohmster <notareal@emailaddress.com> wrote in
>><news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:
>>
>>> Ahh crap! I see it now. I have a quote mark after the Jgk". What
>>> can I do about this? This is really my X-Face and it does include
>>> a quotation mark. Is there any way to "escape" this quotation mark
>>> in .slrnrc so that slrn will read the entire X-Face line?
>>
>> \"
>>
>> You need to escape any backslashes the same way, by using \\, and you
>> need to escape % by using %%.
>
> Am I right that that's true now (and a fairly recent development) for
> both new posts *and* replies?

I believe so.  I've never used a version of slrn that required different 
escaping for different categories of article, but I can remember reading a 
'changelog' or something that mentioned it.  There is still the option of 
using a different X-Face for new and reply articles.

You can also use copy/paste to put an X-Face header into the editor before 
you send the article.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Cannot add X-face
#171654
Author: The Ohmster
Date: Fri, 19 Aug 2005 13:48
43 lines
3372 bytes
On 2005-08-19, Whiskers <catwheezel@operamail.com> wrote:
> On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
>> »Q« wrote:
>>> Ohmster <notareal@emailaddress.com> wrote in
>>><news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:
>>>
>>>> Ahh crap! I see it now. I have a quote mark after the Jgk". What
>>>> can I do about this? This is really my X-Face and it does include
>>>> a quotation mark. Is there any way to "escape" this quotation mark
>>>> in .slrnrc so that slrn will read the entire X-Face line?
>>>
>>> \"
>>>
>>> You need to escape any backslashes the same way, by using \\, and you
>>> need to escape % by using %%.
>>
>> Am I right that that's true now (and a fairly recent development) for
>> both new posts *and* replies?
>
> I believe so.  I've never used a version of slrn that required different 
> escaping for different categories of article, but I can remember reading a 
> 'changelog' or something that mentioned it.  There is still the option of 
> using a different X-Face for new and reply articles.
>
> You can also use copy/paste to put an X-Face header into the editor before 
> you send the article.
>

...phew! I gotta do all of that stuff to add an X-Face to an slrnrc
file? I don't have any idea of how to do that, I would need an example,
but this seems like *far* too much trouble to add an X-Face to slrnrc.
Do you think that most people copy and past the custom header each time
for X-Face or do you think that they really figure out how to escape all
of that stuff and make it work in the slrnrc?

I would like to copy and past that right now to try it out but I decided
to answer this in slrn and am using vim as the editor. With vim, I could
actually open two files at once for copying and pasting? Is this very
difficult to learn, do you think, Whiskers?
-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171655
Author: The Ohmster
Date: Fri, 19 Aug 2005 13:49
22 lines
2085 bytes
On 2005-08-19, »Q« <boxcars@gmx.net> wrote:
> Ohmster <notareal@emailaddress.com> wrote in
><news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:
>
>> Ahh crap! I see it now. I have a quote mark after the Jgk". What
>> can I do about this? This is really my X-Face and it does include
>> a quotation mark. Is there any way to "escape" this quotation mark
>> in .slrnrc so that slrn will read the entire X-Face line?
>
> \"
>
> You need to escape any backslashes the same way, by using \\, and you
> need to escape % by using %%.
>

Ouch. Can you provide a simple example, Q? I am very new to this kind of
editing and don't quite get the gist of it. Thanks.

-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171659
Author: »Q«
Date: Fri, 19 Aug 2005 14:26
32 lines
2486 bytes
The Ohmster <ohmster@ohmster.com> wrote in
<news:slrndgboun.a52.ohmster@ohmster.com>:

> On 2005-08-19, »Q« <boxcars@gmx.net> wrote:
>> Ohmster <notareal@emailaddress.com> wrote in
>> <news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:
>>
>>> Ahh crap! I see it now. I have a quote mark after the Jgk". What
>>> can I do about this? This is really my X-Face and it does
>>> include a quotation mark. Is there any way to "escape" this
>>> quotation mark in .slrnrc so that slrn will read the entire
>>> X-Face line?
>>
>> \"
>>
>> You need to escape any backslashes the same way, by using \\, and
>> you need to escape % by using %%.
>
> Ouch. Can you provide a simple example, Q? I am very new to this
> kind of editing and don't quite get the gist of it. Thanks.

I guess I can.  You just have to replace every " with \" and every \
with \\ and every % with %%.  If you wanted

X-Face: foo\bar"foo%foo\foo%"

to appear in your headers, you would use foo\\bar\"foo%%foo\\foo%%\"

-- 
»Q«
     links to Xnews resources:
     <http://www.cotse.net/users/putty/intro.htm>
Re: [slrn] Cannot add X-face
#171676
Author: Whiskers
Date: Fri, 19 Aug 2005 17:27
70 lines
4822 bytes
On 2005-08-19, The Ohmster <ohmster@ohmster.com> wrote:

snip

> ...phew! I gotta do all of that stuff to add an X-Face to an slrnrc
> file? 

Only once!  I keep a text file containing both the 'straight' and 
'slrn-ready' versions of my X-Face string, as a just-in-case back-up; I 
agree that finding and 'escaping' all the iffy characters is a pain, but as 
I said, you only do it once.

> I don't have any idea of how to do that, I would need an example,
> but this seems like *far* too much trouble to add an X-Face to slrnrc.

Use your beloved vim to edit ~/.slrnrc - that ~ is Unix/Linux shorthand for 
"/home/username/" where username is your ... umm ... username; many 
applications recognise it, so an admin can write scripts that work for each 
user according to that user's settings.  (The dot before the filename means 
it's 'hidden').

> Do you think that most people copy and past the custom header each time
> for X-Face or do you think that they really figure out how to escape all
> of that stuff and make it work in the slrnrc?

The latter I should think, but there's nowt so queer as folk so who can 
tell?  I set up a text file containing my 'straight' X-Face string, and 
used an editor to make a copy of that string, in the same file, and then 
manually scanned through the duplicate putting in the necessary extra 
characters.  So now I have both versions nice and safe, and can insert the 
one required into my newsreaders any time I need to set one up from 
scratch.  (Make sure the editors don't 'wrap' the X-Face string).

Here are the two versions of mine:

Straight, for Pan, Knode, etc:

X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux";aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer];5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p&	 g^8<z5>HA

For ~/.slrnrc:

set custom_headers "X-Face: (8UIp\\C%%,7b>N'Aa}l7v*-4z\\fb2ab=[r*LKrwTU]>W\\E]YS3Cb3mZo1Ty.t2%%6_KsTV_\"Pmt)1xC~QW%%bU/xrlDuux\";aJOH0|Ka^MEDf\"9Ck?FcYcR)aI~e[\\\"NW,mpyK}Q6dU[\\BmvwRD00xYer];5mR_!\\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ\":i_#zfZ'cH`2a^!q_lzxh@p&	 g^8<z5>HA"

The escape characters required are set out clearly here 
<http://www.karl-voit.at/howtos/en/xface.txt>.

You haven't asked yet how to view X-Faces in slrn ... perhaps you can 
discover that for yourself?  ;))

> I would like to copy and past that right now to try it out but I decided
> to answer this in slrn and am using vim as the editor. With vim, I could
> actually open two files at once for copying and pasting? Is this very
> difficult to learn, do you think, Whiskers?

I'm not a vi[m] user; my preferred editor is mcedit (part of the mc or 
'Midnight Commander' text-based file manager) so I can't tell you how to use
vim - there are plenty of people who can though  :))  You seem to be 
getting to grips with both slrn and vim very quickly, so I'm sure you'll 
get there.  

Rather than copy/paste or using two 'buffers' to get the same piece of text 
into lots of newsgroup articles, I'd have a file ready with the text in it
and then 'insert file' as required (that's how I got the two X-Face strings 
into the body of this post) - or have a 'macro' to do it.  But Linux is all
about doing things /your/ way  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Cannot add X-face
#171680
Author: Blinky the Shark
Date: Fri, 19 Aug 2005 18:01
39 lines
3047 bytes
Whiskers wrote:
> On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
>> »Q« wrote:
>>> Ohmster <notareal@emailaddress.com> wrote in
>>><news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:
>>>
>>>> Ahh crap! I see it now. I have a quote mark after the Jgk". What
>>>> can I do about this? This is really my X-Face and it does include
>>>> a quotation mark. Is there any way to "escape" this quotation mark
>>>> in .slrnrc so that slrn will read the entire X-Face line?
>>>
>>> \"
>>>
>>> You need to escape any backslashes the same way, by using \\, and you
>>> need to escape % by using %%.
>>
>> Am I right that that's true now (and a fairly recent development) for
>> both new posts *and* replies?
>
> I believe so.  I've never used a version of slrn that required different 
> escaping for different categories of article, but I can remember reading a 
> 'changelog' or something that mentioned it.  There is still the option of 
> using a different X-Face for new and reply articles.

Sure; and I'm using the latest version.

> You can also use copy/paste to put an X-Face header into the editor before 
> you send the article.

I wrote a macro for vim that when I hit F2 prompts me for the name of
an X-Face to replace the default face I've specified in .slrnrc.  I'll
do that right now, and my normal X-Face will be replaced by the one I
use when I'm posting with Pan.  <clickety>  There.

-- 
Blinky                                     Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171681
Author: Blinky the Shark
Date: Fri, 19 Aug 2005 18:03
52 lines
3713 bytes
The Ohmster wrote:
> On 2005-08-19, Whiskers <catwheezel@operamail.com> wrote:
>> On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
>>> »Q« wrote:
>>>> Ohmster <notareal@emailaddress.com> wrote in
>>>><news:Xns96B7588E32E5MyBigKitty@216.77.188.18>:
>>>>
>>>>> Ahh crap! I see it now. I have a quote mark after the Jgk". What
>>>>> can I do about this? This is really my X-Face and it does include
>>>>> a quotation mark. Is there any way to "escape" this quotation mark
>>>>> in .slrnrc so that slrn will read the entire X-Face line?
>>>>
>>>> \"
>>>>
>>>> You need to escape any backslashes the same way, by using \\, and you
>>>> need to escape % by using %%.
>>>
>>> Am I right that that's true now (and a fairly recent development) for
>>> both new posts *and* replies?
>>
>> I believe so.  I've never used a version of slrn that required different 
>> escaping for different categories of article, but I can remember reading a 
>> 'changelog' or something that mentioned it.  There is still the option of 
>> using a different X-Face for new and reply articles.
>>
>> You can also use copy/paste to put an X-Face header into the editor before 
>> you send the article.
>>
>
> ...phew! I gotta do all of that stuff to add an X-Face to an slrnrc
> file? I don't have any idea of how to do that, I would need an example,
> but this seems like *far* too much trouble to add an X-Face to slrnrc.
> Do you think that most people copy and past the custom header each time
> for X-Face or do you think that they really figure out how to escape all
> of that stuff and make it work in the slrnrc?

The latter, of course -- only two characters need to be escaped.  Not
really rocket surgery.

> I would like to copy and past that right now to try it out but I decided
> to answer this in slrn and am using vim as the editor. With vim, I could
> actually open two files at once for copying and pasting? Is this very
> difficult to learn, do you think, Whiskers?

Look at the reply, on this subject and in this thread, that I just
posted to one of Whiskers' posts.  It's about another macro.  :)

-- 
Blinky                                     Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171695
Author: Whiskers
Date: Fri, 19 Aug 2005 20:38
20 lines
1984 bytes
On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
> Whiskers wrote:

snip

>> You can also use copy/paste to put an X-Face header into the editor before 
>> you send the article.
>
> I wrote a macro for vim that when I hit F2 prompts me for the name of
> an X-Face to replace the default face I've specified in .slrnrc.  I'll
> do that right now, and my normal X-Face will be replaced by the one I
> use when I'm posting with Pan.  <clickety>  There.

My X-Face doesn't need feeding :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Cannot add X-face
#171696
Author: Whiskers
Date: Fri, 19 Aug 2005 20:43
25 lines
2184 bytes
On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
> The Ohmster wrote:

snip

>> ...phew! I gotta do all of that stuff to add an X-Face to an slrnrc
>> file? I don't have any idea of how to do that, I would need an example,
>> but this seems like *far* too much trouble to add an X-Face to slrnrc.
>> Do you think that most people copy and past the custom header each time
>> for X-Face or do you think that they really figure out how to escape all
>> of that stuff and make it work in the slrnrc?
>
> The latter, of course -- only two characters need to be escaped.  Not
> really rocket surgery.

Three, actually:

"  ->  \"
\  ->  \\
%  ->  %%

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Cannot add X-face
#171703
Author: Blinky the Shark
Date: Fri, 19 Aug 2005 22:08
25 lines
2199 bytes
Whiskers wrote:
>
> On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
>> Whiskers wrote:
>
> snip
>
>>> You can also use copy/paste to put an X-Face header into the editor before 
>>> you send the article.
>>
>> I wrote a macro for vim that when I hit F2 prompts me for the name of
>> an X-Face to replace the default face I've specified in .slrnrc.  I'll
>> do that right now, and my normal X-Face will be replaced by the one I
>> use when I'm posting with Pan.  <clickety>  There.
>
> My X-Face doesn't need feeding :))

That's my pan X-Face because I made it of an image of a shark and an
image of a...wait for it...pan fish (a small food fish).  :)

-- 
Blinky                                     Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171704
Author: Blinky the Shark
Date: Fri, 19 Aug 2005 22:09
29 lines
2334 bytes
Whiskers wrote:
> On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
>> The Ohmster wrote:
>
> snip
>
>>> ...phew! I gotta do all of that stuff to add an X-Face to an slrnrc
>>> file? I don't have any idea of how to do that, I would need an example,
>>> but this seems like *far* too much trouble to add an X-Face to slrnrc.
>>> Do you think that most people copy and past the custom header each time
>>> for X-Face or do you think that they really figure out how to escape all
>>> of that stuff and make it work in the slrnrc?
>>
>> The latter, of course -- only two characters need to be escaped.  Not
>> really rocket surgery.
>
> Three, actually:
>
> "  ->  \"
> \  ->  \\
> %  ->  %%

Of course.  How uncharacteristically erroneous of me.  :)

-- 
Blinky                                     Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171710
Author: »Q«
Date: Fri, 19 Aug 2005 23:20
24 lines
1882 bytes
Whiskers <catwheezel@operamail.com> wrote in
<news:krsht2-09n.ln1@ID-107770.user.individual.net>:

>> -- only two characters need to be escaped.
>> Not really rocket surgery.
>
> Three, actually:
>
> "  ->  \"
> \  ->  \\
> %  ->  %%

Your syntax is all wrong.  ;)

#!/bin/sed -f
  s/\\/\\\\/g
  s/\"/\\"/g
  s/%/%%/gw slrnrc.x-face.txt

-- 
�Q�
     links to Xnews resources:
     <http://www.cotse.net/users/putty/intro.htm>
Re: [slrn] Cannot add X-face
#171711
Author: Blinky the Shark
Date: Fri, 19 Aug 2005 23:33
44 lines
2778 bytes
»Q« wrote:
> Whiskers <catwheezel@operamail.com> wrote in
><news:krsht2-09n.ln1@ID-107770.user.individual.net>:
>
>>> -- only two characters need to be escaped.
>>> Not really rocket surgery.
>>
>> Three, actually:
>>
>> "  ->  \"
>> \  ->  \\
>> %  ->  %%
>
> Your syntax is all wrong.  ;)
>
> #!/bin/sed -f
>   s/\\/\\\\/g
>   s/\"/\\"/g
>   s/%/%%/gw slrnrc.x-face.txt

Hey, I was just thinking about doing something like that.  :)

Then I stopped, because I haven't added an X-Face to .slrnrc in ages.

I have several in there for new and several for replies (with all but
one commented out for each category), and the two defaults only get
changed (commented/uncommented, appropriately) at Christmas when my
reply face gets a Santa hat.

The rest I add on the fly, with this vim macro:

au BufNewFile,BufRead ~/.article,~/.followup :nmap <F2> gg/^X-Face:<cr>ddk:r x-f
ace/

That directory (~/x-face) contains text files for each custom X-Face
header, non-escaped.

I think I'll throw a page on Blinkynet with that, come to think of it.

-- 
Blinky                                     Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171719
Author: Mike Dee
Date: Sat, 20 Aug 2005 01:04
11 lines
1636 bytes
Whiskers <catwheezel@operamail.com> wrote in
news:5d1ht2-3fg.ln1@ID-107770.user.individual.net: 

> X-Face: slrn-0.9.8.1 Mandriva 2005
> User-Agent: slrn/0.9.8.1 (Linux)

Your xface really got scrambled with that post, Whiskers.

-- 
dee
Re: [slrn] Cannot add X-face
#171722
Author: The Ohmster
Date: Sat, 20 Aug 2005 02:43
17 lines
1949 bytes
On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:

>> On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
>>> �Q� wrote:
>
> I wrote a macro for vim that when I hit F2 prompts me for the name of
> an X-Face to replace the default face I've specified in .slrnrc.  I'll
> do that right now, and my normal X-Face will be replaced by the one I
> use when I'm posting with Pan.  <clickety>  There.
>

Really now, details please, details!
-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171727
Author: The Ohmster
Date: Sat, 20 Aug 2005 03:06
107 lines
5910 bytes
On 2005-08-19, Whiskers <catwheezel@operamail.com> wrote:
> On 2005-08-19, The Ohmster <ohmster@ohmster.com> wrote:
>
> snip
>
>> ...phew! I gotta do all of that stuff to add an X-Face to an slrnrc
>> file? 
>
> Only once!  I keep a text file containing both the 'straight' and 
> 'slrn-ready' versions of my X-Face string, as a just-in-case back-up; I 
> agree that finding and 'escaping' all the iffy characters is a pain, but as 
> I said, you only do it once.

Alrighty then, perhaps I could do that.

>> I don't have any idea of how to do that, I would need an example,
>> but this seems like *far* too much trouble to add an X-Face to slrnrc.
>
> Use your beloved vim to edit ~/.slrnrc - that ~ is Unix/Linux shorthand for 
> "/home/username/" where username is your ... umm ... username; many 
> applications recognise it, so an admin can write scripts that work for each 
> user according to that user's settings.  (The dot before the filename means 
> it's 'hidden').

"Beloved vim"? Quite, Whiskers, quite.

Yeah I know about dot files and the $HOME dir. Carry on my good man,
carry on.

>> Do you think that most people copy and past the custom header each time
>> for X-Face or do you think that they really figure out how to escape all
>> of that stuff and make it work in the slrnrc?
>
> The latter I should think, but there's nowt so queer as folk so who can 
> tell?  I set up a text file containing my 'straight' X-Face string, and 
> used an editor to make a copy of that string, in the same file, and then 
> manually scanned through the duplicate putting in the necessary extra 
> characters.

Ahhhhh, indeed! I could do that with "find and replace". I know how to
do that in my windows text editor (TextPad) but not vim. Perhaps this
would be worth learning and just keep it all in vim. No better reason to
learn than to do a simple task.

>  So now I have both versions nice and safe, and can insert the 
> one required into my newsreaders any time I need to set one up from 
> scratch.  (Make sure the editors don't 'wrap' the X-Face string).

Yes yes. TextPad is a *very* good text editor (Hey, the Home and End
keys work in vim when you are in INSERT mode!) and does not wrap lines
or save that way. Still, I think I will try this in vim if at all
possible.

> Here are the two versions of mine:

<snip>

Excellent.

> The escape characters required are set out clearly here 
><http://www.karl-voit.at/howtos/en/xface.txt>.

Now this is pretty darned useful, I can actually use this help page and
do it I think. Hey, this elinks for a CLI browser is actually pretty
darned good.

> You haven't asked yet how to view X-Faces in slrn ... perhaps you can 
> discover that for yourself?  ;))

Huh? Hey, a quick tap on the t key reveals that you have an X-Face in
this post and you used vim! I cannot see the xface, tell me how, tell me
how, c'mon whiskers, don't make me wait on this one!

<snip>

>
> I'm not a vi[m] user; my preferred editor is mcedit (part of the mc or 
> 'Midnight Commander' text-based file manager) so I can't tell you how to use
> vim - there are plenty of people who can though  :))  You seem to be 
> getting to grips with both slrn and vim very quickly, so I'm sure you'll 
> get there.  

Hmmm, I discovered the mc editor last night, was up *way* too late
learning all of this great stuff from you guys, and I thought that the
mc editor would be crap but you know what? It looks like it could be a
quite capable text editor. Good for system files and everything.

> Rather than copy/paste or using two 'buffers' to get the same piece of text 
> into lots of newsgroup articles, I'd have a file ready with the text in it
> and then 'insert file' as required (that's how I got the two X-Face strings 
> into the body of this post) - or have a 'macro' to do it.  But Linux is all
> about doing things /your/ way  :))
>

Huh? You can insert a file (text) right into the body of a message that
you are editing in vim? Wow, that would be a neat thing to learn. Thanks
for all of the terrific help, whiskers.

(Ugh, I postponed this message to go back and look at the headers and
when I came back to finish editing before posting with:
ESC P
I lost my vim colors. I wonder why that is. I hope that Dave sees this,
maybe he has an answer.
-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171725
Author: The Ohmster
Date: Sat, 20 Aug 2005 03:18
37 lines
2799 bytes
On 2005-08-19, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>
> Indeed.
>

Totally unrelated but, knoppix 4.0 is out now and can be found here:

http://www.knopper.net/knoppix/

The new version still has the CD iso but now they call it "Lite" and
there is a DVD iso with the full kit and caboodle on it. knoppix saved
my ass more than once, the last time I needed it was when I copied my
entire / and /home hard drives over from 30Gb drives to a new 200Gb
drive. I had put the /home directories onto another 30Gb drive because I
was rapidly running out of room.

The /home copy came out just fine and dandy, but the / drive with it's
sub-partitions like /boot also copied just fine except that it would not
boot, at all. :(

I had to boot to a knoppix CD, then mounted my old / partition and
chrooted to it. Then I could reinstall grub once I found the right
tutorial, here, at the bottom:

http://home.centurytel.net/jlw-tech/copy.htm

And then I was able to unmount the file system, remove the knoppix CD,
and presto, booted right back to my beloved Linux system!

Man that grub interface is rather intimidating, to say the least. But at
any rate, the new knoppix DVD looks rather enticing and I am all setup
to download the iso tonight when I hit the sack. Just wanted to spread
the news in case you were not aware, goodnight my friend.
-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171731
Author: SINNER
Date: Sat, 20 Aug 2005 04:00
19 lines
2149 bytes
* The Ohmster wrote in news.software.readers:

[...]

> (Ugh, I postponed this message to go back and look at the headers and
> when I came back to finish editing before posting with:
> ESC P
> I lost my vim colors. I wonder why that is. I hope that Dave sees this,
> maybe he has an answer.

It is all in the name of the file OR in the way the file starts. When
you are editing it in vim it is called .article or .followup but you
likely gave it another name and vim could not 'type' the file.

A guess, but an educated one.

-- 
David
Try to have as good a life as you can under the circumstances.
Re: [slrn] Cannot add X-face
#171733
Author: The Ohmster
Date: Sat, 20 Aug 2005 04:36
30 lines
2629 bytes
On 2005-08-20, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> * The Ohmster wrote in news.software.readers:
>
> [...]
>
>> (Ugh, I postponed this message to go back and look at the headers and
>> when I came back to finish editing before posting with:
>> ESC P
>> I lost my vim colors. I wonder why that is. I hope that Dave sees this,
>> maybe he has an answer.
>
> It is all in the name of the file OR in the way the file starts. When
> you are editing it in vim it is called .article or .followup but you
> likely gave it another name and vim could not 'type' the file.
>
> A guess, but an educated one.
>

I gave it the name "whiskers". That is all, just whiskers. Do you think
that I should have given it whiskers.txt? Hmmm, let's try it now. I will
name this one sinner.txt and see what happens after postponing and then
loading it again. Here goes...

Nah, even naming it sinner.txt did not bring back the colors. You still
might be right though. What name would you suggest to try, Dave?

-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171734
Author: The Ohmster
Date: Sat, 20 Aug 2005 04:40
29 lines
2484 bytes
On 2005-08-20, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> * The Ohmster wrote in news.software.readers:
>
> [...]
>
>> (Ugh, I postponed this message to go back and look at the headers and
>> when I came back to finish editing before posting with:
>> ESC P
>> I lost my vim colors. I wonder why that is. I hope that Dave sees this,
>> maybe he has an answer.
>
> It is all in the name of the file OR in the way the file starts. When
> you are editing it in vim it is called .article or .followup but you
> likely gave it another name and vim could not 'type' the file.
>
> A guess, but an educated one.
>

Oh I missed what you said, late, tired. Let me try naming it one of your
names, .article or .followup and see what happens....

...oh duh! Naming it .followup actually worked. Dave, you are
evah-so-brilliant, you do realize this, doncha? ;>)

Thanks bud.
-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171740
Author: Blinky the Shark
Date: Sat, 20 Aug 2005 05:39
26 lines
2311 bytes
The Ohmster wrote:
> On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
>
>>> On 2005-08-19, Blinky the Shark <no.spam@box.invalid> wrote:
>>>> »Q« wrote:
>>
>> I wrote a macro for vim that when I hit F2 prompts me for the name of
>> an X-Face to replace the default face I've specified in .slrnrc.  I'll
>> do that right now, and my normal X-Face will be replaced by the one I
>> use when I'm posting with Pan.  <clickety>  There.
>>
>
> Really now, details please, details!

Made this page just in time, this afternoon.  :)

http://blinkynet.net/comp/slrntrix.html

No guarantees.  It works here.


-- 
Blinky                                     Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171758
Author: The Ohmster
Date: Sat, 20 Aug 2005 15:49
17 lines
1854 bytes
On 2005-08-20, Blinky the Shark <no.spam@box.invalid> wrote:

>> Really now, details please, details!
>
> Made this page just in time, this afternoon.  :)
>
> http://blinkynet.net/comp/slrntrix.html
>
> No guarantees.  It works here.
>
>

Wow, this is excellent, thanks Blinky.
-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171803
Author: Whiskers
Date: Sat, 20 Aug 2005 20:23
17 lines
1962 bytes
On 2005-08-20, Mike Dee <mikedee@invalid.invalid> wrote:
> Whiskers <catwheezel@operamail.com> wrote in
> news:5d1ht2-3fg.ln1@ID-107770.user.individual.net: 
>
>> X-Face: slrn-0.9.8.1 Mandriva 2005
>> User-Agent: slrn/0.9.8.1 (Linux)
>
> Your xface really got scrambled with that post, Whiskers.

I just thought I'd see what that particular character string looked like as 
an X-Face; I think it's Doctor Who's Tardis teetering on the brink of a 
volcano.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Cannot add X-face
#171807
Author: Whiskers
Date: Sat, 20 Aug 2005 20:44
57 lines
3848 bytes
On 2005-08-20, The Ohmster <ohmster@ohmster.com> wrote:
> On 2005-08-19, Whiskers <catwheezel@operamail.com> wrote:

snip

>> You haven't asked yet how to view X-Faces in slrn ... perhaps you can 
>> discover that for yourself?  ;))
>
> Huh? Hey, a quick tap on the t key reveals that you have an X-Face in
> this post and you used vim! I cannot see the xface, tell me how, tell me
> how, c'mon whiskers, don't make me wait on this one!

I do not use vim; I use mcedit.  That makes no difference at all to the 
files produced, you can't tell what program was used to create or edit a 
plain text file.

I thik it's time for you to start digging for information yourself, 
grasshopper.  I'll give you this clue: 'slrnface'.  OK?

> <snip>
>
>>
>> I'm not a vi[m] user; my preferred editor is mcedit (part of the mc or 
>> 'Midnight Commander' text-based file manager) so I can't tell you how to use
>> vim - there are plenty of people who can though  :))  You seem to be 
>> getting to grips with both slrn and vim very quickly, so I'm sure you'll 
>> get there.  
>
> Hmmm, I discovered the mc editor last night, was up *way* too late
> learning all of this great stuff from you guys, and I thought that the
> mc editor would be crap but you know what? It looks like it could be a
> quite capable text editor. Good for system files and everything.

It's a /very/ capable text editor.  It makes greater use of the F-keys than 
the vi and emacs editors do, and 'menus'.

>> Rather than copy/paste or using two 'buffers' to get the same piece of text 
>> into lots of newsgroup articles, I'd have a file ready with the text in it
>> and then 'insert file' as required (that's how I got the two X-Face strings 
>> into the body of this post) - or have a 'macro' to do it.  But Linux is all
>> about doing things /your/ way  :))
>>
>
> Huh? You can insert a file (text) right into the body of a message that
> you are editing in vim? Wow, that would be a neat thing to learn. Thanks
> for all of the terrific help, whiskers.

snip

In mcedit, the F15 key (or shift-F5 on my set-up), brings up an 'insert 
file' dialogue box.  Vi will do it differently, of course, but I'd be 
surprised if it can't do it.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Cannot add X-face
#171847
Author: Mike Dee
Date: Sun, 21 Aug 2005 00:12
11 lines
1965 bytes
Whiskers <catwheezel@operamail.com> wrote in
news:73gkt2-17a.ln1@ID-107770.user.individual.net: 

> I just thought I'd see what that particular character string
> looked like as an X-Face; I think it's Doctor Who's Tardis
> teetering on the brink of a volcano.

So it does! LOL.

-- 
dee
Re: [slrn] Cannot add X-face
#171848
Author: The Ohmster
Date: Sun, 21 Aug 2005 00:16
40 lines
3098 bytes
On 2005-08-20, Whiskers <catwheezel@operamail.com> wrote:

> I do not use vim; I use mcedit.  That makes no difference at all to the 
> files produced, you can't tell what program was used to create or edit a 
> plain text file.
>
> I thik it's time for you to start digging for information yourself, 
> grasshopper.  I'll give you this clue: 'slrnface'.  OK?

Suit yourself. :)

>> <snip>
>>
>>>
>>> I'm not a vi[m] user; my preferred editor is mcedit (part of the mc or 
>>> 'Midnight Commander' text-based file manager) so I can't tell you how to use
>>> vim - there are plenty of people who can though  :))  You seem to be 
>>> getting to grips with both slrn and vim very quickly, so I'm sure you'll 
>>> get there.  

vim and mc are like *way* not the same thing at all. mc is more friendly
to opening tons of files and doing what you want with them, like
somebody said, it is "xtree gold" for linux. :)


> In mcedit, the F15 key (or shift-F5 on my set-up), brings up an 'insert 
> file' dialogue box.  Vi will do it differently, of course, but I'd be 
> surprised if it can't do it.
>

Yeah I can figure it out. Blinky showed how he was viewing X-Face files
in slrn when he uses slrn in xwindows. He posted a file for it but to
tell you the truth, it sure looks like a lot of work to go through, must
install other stuff to make it work, Dave says it does not work all of
the time and only with fluxbox, so I guess I can live without X-Faces in
slrn. Thanks for your reply.
-- 
~Ohmster
"Read Ohmster" in subject, bypass spam filter.
ohmster /a/t/ newsguy dot com
Re: [slrn] Cannot add X-face
#171854
Author: Blinky the Shark
Date: Sun, 21 Aug 2005 00:52
16 lines
2005 bytes
The Ohmster wrote:

> vim and mc are like *way* not the same thing at all. mc is more
> friendly to opening tons of files and doing what you want with them,
> like somebody said, it is "xtree gold" for linux. :)

That was me.  Yes, it's a flippin' *file manager*.  It happens to have
an editor glued on, as did the XTrees.

(Trivia Time: XT's glued-on editor used WordStar commands.)

-- 
Blinky                                     Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171859
Author: SINNER
Date: Sun, 21 Aug 2005 02:40
20 lines
2382 bytes
* Blinky the Shark wrote in news.software.readers:
> The Ohmster wrote:

>> vim and mc are like *way* not the same thing at all. mc is more
>> friendly to opening tons of files and doing what you want with them,
>> like somebody said, it is "xtree gold" for linux. :)

> That was me.  Yes, it's a flippin' *file manager*.  It happens to have
> an editor glued on, as did the XTrees.

> (Trivia Time: XT's glued-on editor used WordStar commands.)

You wordstar users are like some slrn cult or something.

-- 
David
You can get much further with a kind word and a gun than you can with a
kind word alone.
		-- Al Capone
		[Also attributed to Johnny Carson.  Ed.]
Re: [slrn] Cannot add X-face
#171867
Author: Blinky the Shark
Date: Sun, 21 Aug 2005 03:42
24 lines
2382 bytes
SINNER wrote:
> * Blinky the Shark wrote in news.software.readers:
>> The Ohmster wrote:
>
>>> vim and mc are like *way* not the same thing at all. mc is more
>>> friendly to opening tons of files and doing what you want with them,
>>> like somebody said, it is "xtree gold" for linux. :)
>
>> That was me.  Yes, it's a flippin' *file manager*.  It happens to have
>> an editor glued on, as did the XTrees.
>
>> (Trivia Time: XT's glued-on editor used WordStar commands.)
>
> You wordstar users are like some slrn cult or something.

Hey, that's the only place I ever had to use Wordstar conventions.
Wordstar itself I never had, used, or anything else.  :)


-- 
Blinky T. "slrn mafia" Shark               Linux Registered User 297263

Killing All Posts from GG:         http://blinkynet.net/comp/uip5.html
End Of The Good GG Archive GUI:    http://blinkynet.net/comp/gggui.html
Re: [slrn] Cannot add X-face
#171907
Author: Whiskers
Date: Sun, 21 Aug 2005 13:44
25 lines
2599 bytes
On 2005-08-21, Blinky the Shark <no.spam@box.invalid> wrote:
> SINNER wrote:
>> * Blinky the Shark wrote in news.software.readers:
>>> The Ohmster wrote:
>>
>>>> vim and mc are like *way* not the same thing at all. mc is more
>>>> friendly to opening tons of files and doing what you want with them,
>>>> like somebody said, it is "xtree gold" for linux. :)
>>
>>> That was me.  Yes, it's a flippin' *file manager*.  It happens to have
>>> an editor glued on, as did the XTrees.
>>
>>> (Trivia Time: XT's glued-on editor used WordStar commands.)
>>
>> You wordstar users are like some slrn cult or something.
>
> Hey, that's the only place I ever had to use Wordstar conventions.
> Wordstar itself I never had, used, or anything else.  :)

Old pre-Windows and Windows 3.1 WordStar user here.  Mostly PCWrite though.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
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