🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
21 messages
21 total messages Started by andrew Fri, 29 Aug 2008 05:50
[slrn] Quoting 'verbatim' text
#225186
Author: andrew
Date: Fri, 29 Aug 2008 05:50
22 lines
1618 bytes
Hi,

I was wondering if there was any general consensus of the best way of
presenting 'verbatim' text in a newspost? I am aware that slrn has
? exclusively the ability to present as follows:

#v+
--- src/version.c	(revision 294)
+++ src/version.c	(working copy)
@@ -43,7 +43,8 @@
 #include "art.h"
 #include "snprintf.h"
#v-

and manipulate this with { or [ according to .slrnrc settings but this
would be lost on other less able news clients.

Any thoughts?

  Andrew
-- 
http://www.andrews-corner.org
Re: [slrn] Quoting 'verbatim' text
#225187
Author: Troy Piggins
Date: Fri, 29 Aug 2008 06:15
46 lines
2602 bytes
* andrew wrote :
> Hi,
>
> I was wondering if there was any general consensus of the best way of
> presenting 'verbatim' text in a newspost? I am aware that slrn has
> ? exclusively the ability to present as follows:
>
> #v+
> --- src/version.c	(revision 294)
> +++ src/version.c	(working copy)
> @@ -43,7 +43,8 @@
>  #include "art.h"
>  #include "snprintf.h"
> #v-
>
> and manipulate this with { or [ according to .slrnrc settings but this
> would be lost on other less able news clients.
>
> Any thoughts?

I've seen verbatim as above used a bit.

Also seen this sort of thing:

-----8<-----
--- src/version.c	(revision 294)
+++ src/version.c	(working copy)
@@ -43,7 +43,8 @@
 #include "art.h"
 #include "snprintf.h"
-----8<-----

And this:

<code>
--- src/version.c	(revision 294)
+++ src/version.c	(working copy)
@@ -43,7 +43,8 @@
 #include "art.h"
 #include "snprintf.h"
</code>

-- 
Troy Piggins | http://piggo.com/~troy/slrn                    ___  |   __   __
                                                             |___  | |/   |/  |
                                                              ___| | |    |   |
[OT] verbatim markers (Was: [slrn] Quoting 'verbatim' text)
#225188
Author: Troy Piggins
Date: Fri, 29 Aug 2008 08:30
58 lines
3138 bytes
* Troy Piggins wrote :
> * andrew wrote :
>> Hi,
>>
>> I was wondering if there was any general consensus of the best way of
>> presenting 'verbatim' text in a newspost? I am aware that slrn has
>> ? exclusively the ability to present as follows:
>>
>> #v+
>> --- src/version.c	(revision 294)
>> +++ src/version.c	(working copy)
>> @@ -43,7 +43,8 @@
>>  #include "art.h"
>>  #include "snprintf.h"
>> #v-
>>
>> and manipulate this with { or [ according to .slrnrc settings but this
>> would be lost on other less able news clients.

Not sure what mail and text editing software you use.  I use mutt
and vim.  Thought I'd share some tools I've created and/or
borrowed.

.vimrc extract:
-----8<-----
" add verbatim marks
" visually select block of text to surround with verbatim marks
" then hit ,v to add marks at each end of block
vnoremap ,v "zdi#v+<C-R>z#v-<ESC>
-----8<-----

.muttrc extract:
-----8<-----
color body magenta default "^\#v[-+]"
-----8<-----

display filter for mutt, called from .muttrc as
set display_filter='$HOME/bin/display-filter'
~/bin/display-filter extract:
-----8<-----
#!/bin/bash
sed -e '

# adds ansi colour escapes to text between verbatim marks
# so can colour more than one line.
/^#v+/,/^#v-/s/.*/\x1B[35m&/
s/\(.*\)#v+/\1/
s/\(.*\)#v-/\1/

'
-----8<-----

Thought someone other than me might find this useful.

-- 
Troy Piggins | http://piggo.com/~troy/slrn                    ___  |   __   __
                                                             |___  | |/   |/  |
                                                              ___| | |    |   |
Re: [slrn] Quoting 'verbatim' text
#225191
Author: Whiskers
Date: Fri, 29 Aug 2008 09:42
67 lines
3328 bytes
On 2008-08-29, andrew <andrew@ilium.invalid> wrote:
> Hi,
>
> I was wondering if there was any general consensus of the best way of
> presenting 'verbatim' text in a newspost? I am aware that slrn has
> ? exclusively the ability to present as follows:
>
> #v+
> --- src/version.c	(revision 294)
> +++ src/version.c	(working copy)
> @@ -43,7 +43,8 @@
>  #include "art.h"
>  #include "snprintf.h"
> #v-
>
> and manipulate this with { or [ according to .slrnrc settings but this
> would be lost on other less able news clients.
>
> Any thoughts?
>
>   Andrew

My preference is to either indent the quoted text, eg Luke 11, 1 - 4 
(NIV):-

    Jesus' Teaching on Prayer 

    One day Jesus was praying in a certain place. When he finished, one of 
    his disciples said to him, "Lord, teach us to pray, just as John taught 
    his disciples." 

    He said to them, "When you pray, say: 
    " 'Father,
       hallowed be your name, 
       your kingdom come.
       Give us each day our daily bread. 

       Forgive us our sins, 
       for we also forgive everyone who sins against us.
       And lead us not into temptation.' "


or enclose it within a crude 'box' (an idea I got from Knode, which has a 
tool for doing that in it's built-in composer):-

.-----[ The Koran, Chapter 1 ]
| The Opening
| 
| In the name of Allah, the Beneficent, the Merciful.
| All praise is due to Allah, the Lord of the Worlds.
| The Beneficent, the Merciful.
| Master of the Day of Judgment.
| Thee do we serve and Thee do we beseech for help.
| Keep us on the right path.
| The path of those upon whom Thou hast bestowed favors. Not (the 
| path) of those upon whom Thy wrath is brought down, nor of those who go 
| astray.
'-----

Both those methods seem to be effective regardless of what software a 
person uses to read with.  More laborious to create than the 'verbatim 
marks', but my editor has macros and tools which help.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [OT] verbatim markers (Was: [slrn] Quoting 'verbatim' text)
#225192
Author: andrew
Date: Fri, 29 Aug 2008 09:58
12 lines
1723 bytes
On 2008-08-29, Troy Piggins <usenet-0808@piggo.com> wrote:

> Not sure what mail and text editing software you use.  I use mutt
> and vim.  Thought I'd share some tools I've created and/or
> borrowed.

Thanks Troy, I am a mutt and vim man as well but not a very
sophisticated user of either :-).

  Andrew
-- 
Do you think that's air your breathing now?
Re: [slrn] Quoting 'verbatim' text
#225193
Author: Peter J Ross
Date: Fri, 29 Aug 2008 10:33
39 lines
2488 bytes
In news.software.readers on Fri, 29 Aug 2008 15:50:04 +1000, andrew
<andrew@ilium.invalid> wrote:

> Hi,
>
> I was wondering if there was any general consensus of the best way of
> presenting 'verbatim' text in a newspost? I am aware that slrn has
> ? exclusively the ability to present as follows:
>
> #v+
> --- src/version.c	(revision 294)
> +++ src/version.c	(working copy)
> @@ -43,7 +43,8 @@
>  #include "art.h"
>  #include "snprintf.h"
> #v-
>
> and manipulate this with { or [ according to .slrnrc settings but this
> would be lost on other less able news clients.

tin has supported verbatim marks since version 1.9.1. I believe gnus
supports them too.

> Any thoughts?

To avoid confusion, my solution is to use other markers within the
verbatim marks. E.g.

#v+
===[begin_verbatim_text]==============================================
This *is* /verbatim/ _text_.
===[end_verbatim_text]================================================
#v-
    
-- 
PJR :-)
slrn newsreader (v0.9.9): http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: [slrn] Quoting 'verbatim' text
#225195
Author: Peter J Ross
Date: Fri, 29 Aug 2008 10:39
32 lines
2495 bytes
In news.software.readers on Fri, 29 Aug 2008 10:42:12 +0100, Whiskers
<catwheezel@operamail.com> wrote:

> My preference is to either indent the quoted text, eg Luke 11, 1 - 4 
> (NIV):-

<...>

> or enclose it within a crude 'box' (an idea I got from Knode, which has a 
> tool for doing that in it's built-in composer):-

<...>

> Both those methods seem to be effective regardless of what software a 
> person uses to read with.  More laborious to create than the 'verbatim 
> marks', but my editor has macros and tools which help.

Neither of these methods is effective if the intention is to post
lines that can be copied and pasted literally, without any processing
of *bold*, _underline_ or /italics/ markings.

The problem with #v+ and #v- is that somebody who doesn't know what
they mean may copy and paste them as well, which is why I think it's
useful to give other indications of where to cut the text.



-- 
PJR :-)
slrn newsreader (v0.9.9): http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: [slrn] Quoting 'verbatim' text
#225194
Author: Whiskers
Date: Fri, 29 Aug 2008 10:54
44 lines
2961 bytes
On 2008-08-29, Peter J Ross <pjr@example.invalid> wrote:
> In news.software.readers on Fri, 29 Aug 2008 10:42:12 +0100, Whiskers
> <catwheezel@operamail.com> wrote:
>
>> My preference is to either indent the quoted text, eg Luke 11, 1 - 4 
>> (NIV):-
>
> <...>
>
>> or enclose it within a crude 'box' (an idea I got from Knode, which has a 
>> tool for doing that in it's built-in composer):-
>
> <...>
>
>> Both those methods seem to be effective regardless of what software a 
>> person uses to read with.  More laborious to create than the 'verbatim 
>> marks', but my editor has macros and tools which help.
>
> Neither of these methods is effective if the intention is to post
> lines that can be copied and pasted literally, without any processing
> of *bold*, _underline_ or /italics/ markings.

Not being much of a programmer, I've never felt the need to accomodate 
that usage.

> The problem with #v+ and #v- is that somebody who doesn't know what
> they mean may copy and paste them as well, 

Or in the situations where I find myself quoting, my readers simply won't 
know that the verbatim marks have any meaning at all and won't understand 
which words are mine and which are being quoted.

I do like the way slrn does it, but it's just not common enough a method 
to be useful to me.

> which is why I think it's
> useful to give other indications of where to cut the text.

Certainly some sort of written instruction doesn't go amiss  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Quoting 'verbatim' text
#225196
Author: Sn!pe
Date: Fri, 29 Aug 2008 15:14
18 lines
2866 bytes
Peter J Ross <pjr@example.invalid> wrote:

> > Both those methods seem to be effective regardless of what software a
> > person uses to read with.  More laborious to create than the 'verbatim
> > marks', but my editor has macros and tools which help.
> 
> Neither of these methods is effective if the intention is to post
> lines that can be copied and pasted literally, without any processing
> of *bold*,

FWIW, *bold*, failed to display in bold on Knode the last time 
I tried it, although *bold,* did. NB placement of 'comma' in that.

-- 
^Ï^                                  <http://snipeco.ath.cx/> 

    Et maintenant, je vous presente, encore une fois, 
    mon ami, le pouf célèbre, Jean-Brian Zatapathique.
Re: [slrn] Quoting 'verbatim' text
#225200
Author: »Q«
Date: Fri, 29 Aug 2008 19:08
20 lines
1800 bytes
On Fri, 29 Aug 2008 15:50:04 +1000
andrew <andrew@ilium.invalid> wrote:

> I was wondering if there was any general consensus of the best way of
> presenting 'verbatim' text in a newspost?

I handle it by posting the text.  People who don't want the text
mangled by their newsreaders can turn off their text-mangling features.

> I am aware that slrn has
> ? exclusively the ability to present as follows:

[snip slrn markup language]

> and manipulate this with { or [ according to .slrnrc settings but this
> would be lost on other less able news clients.

IMO, people who want to use markup in their posts should just use HTML
(and in this case, <pre> tags);  that way I can just killfile 'em and
be done with the issue.  ;)
Re: [slrn] Quoting 'verbatim' text
#225204
Author: Sn!pe
Date: Fri, 29 Aug 2008 19:30
31 lines
2851 bytes
andrew <andrew@ilium.invalid> wrote:

> Hi,
> 
> I was wondering if there was any general consensus of the best way of
> presenting 'verbatim' text in a newspost? I am aware that slrn has
> ? exclusively the ability to present as follows:
> 
> #v+
> --- src/version.c     (revision 294)
> +++ src/version.c     (working copy)
> @@ -43,7 +43,8 @@
>  #include "art.h"
>  #include "snprintf.h"
> #v-
> 
> and manipulate this with { or [ according to .slrnrc settings but this
> would be lost on other less able news clients.
> 
> Any thoughts?
> 
>   Andrew

This is Usenet, the last bastion of text/plain; 
anything else is to be deprecated.

-- 
^Ï^                                  <http://snipeco.ath.cx/> 

    Et maintenant, je vous presente, encore une fois, 
    mon ami, le pouf célèbre, Jean-Brian Zatapathique.
Re: [slrn] Quoting 'verbatim' text
#225212
Author: andrew
Date: Fri, 29 Aug 2008 23:57
50 lines
2674 bytes
On 2008-08-29, Sn!pe <snipe@spambin.fsnet.co.uk> wrote:
> andrew <andrew@ilium.invalid> wrote:

>> I was wondering if there was any general consensus of the best way of
>> presenting 'verbatim' text in a newspost? I am aware that slrn has
>> ? exclusively the ability to present as follows:
>> 
>> #v+
>> --- src/version.c     (revision 294)
>> +++ src/version.c     (working copy)
>> @@ -43,7 +43,8 @@
>>  #include "art.h"
>>  #include "snprintf.h"
>> #v-

[...]

> This is Usenet, the last bastion of text/plain; anything else is to be
> deprecated.

It is a little unusual for slrn to be accused of presenting anything but
plain and simple text :-).

I believe that there _is_ a need to demarcate some text, particularly
code, and to indicate that line spacing, indentation etc is intentional.
Many people use such elaborate constructs as:

/-------------
|
|My secret code goes here
|
\------------

etc as has been demonstrated previously in this thread. It seems a bit
harsh to cry foul for slrn which uses a similar but much more economical
construct:

#v+
My secret code goes here
#v-

and also goes to the extent of allowing the slrn user to manipulate this
in various ways. This is not slrn introducing 'mark-up' or creating
anything other than simple text it is slrn quietly and efficiently
making reading the news a little easier.

 Andrew 

-- 
Do you think that's air your breathing now?
Re: [slrn] Quoting 'verbatim' text
#225219
Author: Whiskers
Date: Sat, 30 Aug 2008 12:32
64 lines
3658 bytes
On 2008-08-29, andrew <andrew@ilium.invalid> wrote:
> On 2008-08-29, Sn!pe <snipe@spambin.fsnet.co.uk> wrote:
>> andrew <andrew@ilium.invalid> wrote:
>
>>> I was wondering if there was any general consensus of the best way of
>>> presenting 'verbatim' text in a newspost? I am aware that slrn has
>>> ? exclusively the ability to present as follows:
>>> 
>>> #v+
>>> --- src/version.c     (revision 294)
>>> +++ src/version.c     (working copy)
>>> @@ -43,7 +43,8 @@
>>>  #include "art.h"
>>>  #include "snprintf.h"
>>> #v-
>
> [...]
>
>> This is Usenet, the last bastion of text/plain; anything else is to be
>> deprecated.

Verbatim marks are no more 'mark-up' than the > used to indicate text 
quoted from the article being replied to.  Some newsreaders can treat such 
things 'specially', but those which don't are not inconvenienced in any 
way.

> It is a little unusual for slrn to be accused of presenting anything but
> plain and simple text :-).
>
> I believe that there _is_ a need to demarcate some text, particularly
> code, and to indicate that line spacing, indentation etc is intentional.
> Many people use such elaborate constructs as:
>
> /-------------
>|
>|My secret code goes here
>|
> \------------
>
> etc as has been demonstrated previously in this thread. It seems a bit
> harsh to cry foul for slrn which uses a similar but much more economical
> construct:
>
> #v+
> My secret code goes here
> #v-
>
> and also goes to the extent of allowing the slrn user to manipulate this
> in various ways. This is not slrn introducing 'mark-up' or creating
> anything other than simple text it is slrn quietly and efficiently
> making reading the news a little easier.

Certainly if I ever found myself trying to post a shell script or batch of 
code, then I'd probably use slrn's verbatim marks so that those whose 
software recognises them can benefit from that feature; but when I'm 
quoting other text for reading in a non-computing context, I think I'll
stick to using indentation and 'boxes' as I learned back in the days of
manuscript and print on paper.  That should work equally clearly on any 
usenet software or interface.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Quoting 'verbatim' text
#225222
Author: Dan C
Date: Sat, 30 Aug 2008 14:21
16 lines
1729 bytes
On 2008-08-29, Sn!pe wrote:

>> Neither of these methods is effective if the intention is to post
>> lines that can be copied and pasted literally, without any processing
>> of *bold*,

> FWIW, *bold*, failed to display in bold on Knode the last time 
> I tried it, although *bold,* did. NB placement of 'comma' in that.

Clearly a problem/bug with Knode, as both versions display properly in
slrn.



-- 
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
Re: [slrn] Quoting 'verbatim' text
#225223
Author: Dan C
Date: Sat, 30 Aug 2008 14:58
12 lines
1782 bytes
On Fri, 29 Aug 2008 16:14:59 +0100, Sn!pe wrote:

> FWIW, *bold*, failed to display in bold on Knode the last time I tried it,
> although *bold,* did. NB placement of 'comma' in that.

And also FWIW, neither one displays in bold on (this version of) Pan.


-- 
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
The Usenet Improvement Project: http://improve-usenet.org
Re: [slrn] Quoting 'verbatim' text
#225224
Author: Steve Ackman
Date: Sat, 30 Aug 2008 15:26
11 lines
1484 bytes
On Sat, 30 Aug 2008 09:58:06 -0500, Dan C wrote:

> On Fri, 29 Aug 2008 16:14:59 +0100, Sn!pe wrote:
> 
>> FWIW, *bold*, failed to display in bold on Knode the last time I tried
>> it, although *bold,* did. NB placement of 'comma' in that.
> 
> And also FWIW, neither one displays in bold on (this version of) Pan.

  Yet *this* version of Pan displays both in *bold.*
Re: [slrn] Quoting 'verbatim' text
#225225
Author: Whiskers
Date: Sat, 30 Aug 2008 15:52
15 lines
2000 bytes
On 2008-08-30, Dan C <youmustbejoking@lan.invalid> wrote:
> On Fri, 29 Aug 2008 16:14:59 +0100, Sn!pe wrote:
>
>> FWIW, *bold*, failed to display in bold on Knode the last time I tried it,
>> although *bold,* did. NB placement of 'comma' in that.
>
> And also FWIW, neither one displays in bold on (this version of) Pan.

I think there's a setting for that somewhere - speaking only from memory, 
it's a long time since I used Pan.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] Quoting 'verbatim' text
#225235
Author: Dan C
Date: Sat, 30 Aug 2008 20:16
17 lines
2092 bytes
On Sat, 30 Aug 2008 16:52:23 +0100, Whiskers wrote:

>>> FWIW, *bold*, failed to display in bold on Knode the last time I tried
>>> it, although *bold,* did. NB placement of 'comma' in that.

>> And also FWIW, neither one displays in bold on (this version of) Pan.
 
> I think there's a setting for that somewhere - speaking only from memory,
> it's a long time since I used Pan.

Doesn't seem to be any setting for it, that I can see.  (version 0.14.2.91).


-- 
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
The Usenet Improvement Project: http://improve-usenet.org
Re: [slrn] Quoting 'verbatim' text
#225261
Author: Xavier Maillard
Date: Sun, 31 Aug 2008 12:42
29 lines
1970 bytes
andrew <andrew@ilium.invalid> writes:

> Hi,
>
> I was wondering if there was any general consensus of the best way of
> presenting 'verbatim' text in a newspost? I am aware that slrn has
> ? exclusively the ability to present as follows:

This works in Gnus but it does not work in trn4.

When I want to copy things verbatim (it is often some source
code), I add the comment string as an introduction (with a
comment) and a trailing triple comment string as the end of
section.

Something like:


;;; This is the beginning of my lisp source
(defun foo ()
 "FOO function. Always returns T."
 t)
;;; end of example

I have tweaked my Gnus setup to recognize these according to the
newsgroup I am currently browsing thus in lisp groups, this
section would be indented and font-locked as if I was in a lisp
buffer (it uses indirect-buffer and friends). This is one of my
favourite snippet in Gnus.
Re: [slrn] Quoting 'verbatim' text
#225263
Author: Xavier Maillard
Date: Sun, 31 Aug 2008 12:46
9 lines
1494 bytes
andrew <andrew@ilium.invalid> writes:

> and also goes to the extent of allowing the slrn user to manipulate this
> in various ways. This is not slrn introducing 'mark-up' or creating
> anything other than simple text it is slrn quietly and efficiently
> making reading the news a little easier.

I second that though I am not a slrn fan boy :) I think +v/-v and
*bold* or /italics/ greatly help reading the Big8.
Re: [slrn] Quoting 'verbatim' text
#225273
Author: »Q«
Date: Sun, 31 Aug 2008 20:45
27 lines
1944 bytes
On Sat, 30 Aug 2008 09:57:27 +1000
andrew <andrew@ilium.invalid> wrote:

> I believe that there _is_ a need to demarcate some text, particularly
> code, and to indicate that line spacing, indentation etc is
> intentional. 

I just assume that spacing and indentation are intentional.  If people
want to indicate that they're quoting something, I don't care how they
do it.

> Many people use such elaborate constructs as:
> 
> /-------------
> |
> |My secret code goes here
> |
> \------------
> 
> etc as has been demonstrated previously in this thread. It seems a bit
> harsh to cry foul for slrn which uses a similar but much more
> economical construct:
> 
> #v+

Economical but not human-readable except for those few who have a clue
what it's meant to signify.
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