Re: ASCII formatting for plain text email

2023-02-07 Thread Anton Shepelev
,[Pierre Willaime:] | I would like to format plain text emails to in- | crease readability and information separation. The | idea is to go beyond markdown and to have more | visible elements. `-- Markdown is intended for conversion into HTML and other formats (see Pa

Re: ASCII formatting for plain text email

2023-02-05 Thread Curt
On 2023-02-05, TRS-80 wrote: > >> 2- a simple way to align some text to the right (that is to say to >> automatically calculate how many spaces are needed to fill the gap >> between the text on the left an the text on the right for 72 characters >> line. > > #+begin_src emacs-lisp > (defun my-in

Re: ASCII formatting for plain text email

2023-02-04 Thread TRS-80
Pierre Willaime writes: > Le 31/01/2023 à 21:14, Greg Wooledge a écrit : >> A .signature file is only written once, so it doesn't matter how >> tedious it is to produce the desired formatting. > > But you are right, .signature file is only written once and I am looking > for a simple way to write

Re: ASCII formatting for plain text email

2023-02-03 Thread Cousin Stanley
> Pierre Willaime posted > > > For example I am looking for a convenient way to > "draw" some ASCII boxes such as > > # > ## some title here ## > # I have a python program that does this $ python3 msgbox.py Skunk Bucket from Nan Tuck

Re: ASCII formatting for plain text email

2023-02-02 Thread debian-user
> On Tue, Jan 31, 2023 at 11:06:44PM +0100, Pierre Willaime wrote: > >1- a simple way to draw a line (without pressing 72 times on "-") > >--- > > Are you using emacs? I'm *sure* there must be a quick short-hand to do > this. I

Re: ASCII formatting for plain text email

2023-02-02 Thread songbird
Pierre Willaime wrote: ... > I would like to format plain text emails to increase readability and > information separation. The idea is to go beyond markdown and to have > more visible elements. For example I am looking for a convenient way to > "draw" some ASCII boxes such as > > #

Re: ASCII formatting for plain text email

2023-02-02 Thread tomas
On Thu, Feb 02, 2023 at 10:50:59AM +, Jonathan Dowland wrote: > On Tue, Jan 31, 2023 at 11:06:44PM +0100, Pierre Willaime wrote: > > 1- a simple way to draw a line (without pressing 72 times on "-") > > --- > > Are you using e

Re: ASCII formatting for plain text email

2023-02-02 Thread Jonathan Dowland
On Tue, Jan 31, 2023 at 11:06:44PM +0100, Pierre Willaime wrote: 1- a simple way to draw a line (without pressing 72 times on "-") --- Are you using emacs? I'm *sure* there must be a quick short-hand to do this. I use vi, and t

Re: ASCII formatting for plain text email

2023-02-01 Thread David Wright
On Tue 31 Jan 2023 at 23:06:44 (+0100), Pierre Willaime wrote: > Le 31/01/2023 à 21:14, Greg Wooledge a écrit : > > A .signature file is only written once, so it doesn't matter how > > tedious it is to produce the desired formatting. That said, I would > > imagine relatively few people have octoth

Re: ASCII formatting for plain text email

2023-02-01 Thread Pierre-Elliott Bécue
Greg Wooledge wrote on 01/02/2023 at 16:00:59+0100: > On Wed, Feb 01, 2023 at 02:40:30PM -, Curt wrote: >> On 2023-02-01, The Wanderer wrote: >> > >> > Can you double-check what (Debian) package that's in? I'm not finding >> > any package or file named anything like either of those two thi

Re: ASCII formatting for plain text email

2023-02-01 Thread The Wanderer
On 2023-02-01 at 10:00, Greg Wooledge wrote: > On Wed, Feb 01, 2023 at 02:40:30PM -, Curt wrote: > >> On 2023-02-01, The Wanderer wrote: >> >> > >> > Can you double-check what (Debian) package that's in? I'm not finding >> > any package or file named anything like either of those two things,

Re: ASCII formatting for plain text email

2023-02-01 Thread Greg Wooledge
On Wed, Feb 01, 2023 at 02:40:30PM -, Curt wrote: > On 2023-02-01, The Wanderer wrote: > > > > Can you double-check what (Debian) package that's in? I'm not finding > > any package or file named anything like either of those two things, in > > current Debian testing and stable. > > You use th

Re: ASCII formatting for plain text email

2023-02-01 Thread Curt
On 2023-02-01, The Wanderer wrote: > > Can you double-check what (Debian) package that's in? I'm not finding > any package or file named anything like either of those two things, in > current Debian testing and stable. You use the built-in package manager: 'M-x package-install RET ascii-art-draw

Re: ASCII formatting for plain text email

2023-02-01 Thread The Wanderer
On 2023-02-01 at 09:22, Curt wrote: > On 2023-01-31, Pierre Willaime wrote: > >> Hi, >> >> -- >> Warning: I hope you will forgive me for this email not really related to >> debian. I just think people from this community could likely have good >> advice about this question. >> --

Re: ASCII formatting for plain text email

2023-02-01 Thread Curt
On 2023-01-31, Pierre Willaime wrote: > Hi, > > -- > Warning: I hope you will forgive me for this email not really related to > debian. I just think people from this community could likely have good > advice about this question. > -- > > I would like to format plain text emails to

Re: ASCII formatting for plain text email

2023-02-01 Thread Jonathan Dowland
On Tue, Jan 31, 2023 at 07:49:18PM +0100, Pierre Willaime wrote: I would like to format plain text emails to increase readability and information separation. The idea is to go beyond markdown and to have more visible elements. If you do this, please have some consideration for how screen reader

Re: ASCII formatting for plain text email

2023-02-01 Thread Max Nikulin
On 01/02/2023 01:49, Pierre Willaime wrote: I would like to format plain text emails to increase readability and information separation. The following message is result of ascii export from Emacs Org mode, the source file is attached. Export backend is customizable. https://list.orgmode.org

Re: ASCII formatting for plain text email

2023-01-31 Thread Anssi Saari
Pierre Willaime writes: > 1- a simple way to draw a line (without pressing 72 times on "-") > --- > > 2- a simple way to align some text to the right (that is to say to > automatically calculate how many spaces are needed to fill

Re: ASCII formatting for plain text email

2023-01-31 Thread tomas
On Tue, Jan 31, 2023 at 05:14:01PM -0700, Charles Curley wrote: > On Tue, 31 Jan 2023 23:06:44 +0100 > Pierre Willaime wrote: > > > 1- a simple way to draw a line (without pressing 72 times on "-") > > --- > > In emacs, ctl-u 7

Re: ASCII formatting for plain text email

2023-01-31 Thread Charles Curley
On Tue, 31 Jan 2023 23:06:44 +0100 Pierre Willaime wrote: > 1- a simple way to draw a line (without pressing 72 times on "-") > --- In emacs, ctl-u 7 2 -

Re: ASCII formatting for plain text email

2023-01-31 Thread Greg Wooledge
On Tue, Jan 31, 2023 at 05:32:07PM -0500, Greg Wooledge wrote: > Again, a programming language can easily take an input string, measure > its length in characters, and produce an output string that looks like > a "box" around the input string. (Less easily if full Unicode is in play.) Here's a si

Re: ASCII formatting for plain text email

2023-01-31 Thread Greg Wooledge
On Tue, Jan 31, 2023 at 11:06:44PM +0100, Pierre Willaime wrote: > I do not want to do ASCII art, I am only searching a simple way to do > something close to the debian-annouce emails. > > > The Debian Project

Re: ASCII formatting for plain text email

2023-01-31 Thread David Wright
On Tue 31 Jan 2023 at 15:03:30 (-0500), Greg Wooledge wrote: > On Tue, Jan 31, 2023 at 01:42:10PM -0600, David Wright wrote: > > The question then is why emacs uses ; as a comment character. > > Because of LISP. > > https://www.gnu.org/software/emacs/manual/html_node/elisp/Comments.html I had as

Re: ASCII formatting for plain text email

2023-01-31 Thread err404
On 1/31/23 23:07, err...@free.fr wrote: On 1/31/23 19:49, Pierre Willaime wrote: (...) For example I am looking for a convenient way to "draw" some ASCII boxes such as # ## some title here ## # (...) the package 'figlet' is what you want hum, sorry, f

Re: ASCII formatting for plain text email

2023-01-31 Thread Pierre Willaime
Le 31/01/2023 à 20:44, Jude DaShiell a écrit : > chafa may help https://hpjansson.org/chafa/ Thanks! Not exactly what I am looking for (cf. my other answer) but very useful.

Re: ASCII formatting for plain text email

2023-01-31 Thread err404
On 1/31/23 19:49, Pierre Willaime wrote: (...) For example I am looking for a convenient way to "draw" some ASCII boxes such as # ## some title here ## # (...) the package 'figlet' is what you want

Re: ASCII formatting for plain text email

2023-01-31 Thread Pierre Willaime
Le 31/01/2023 à 21:14, Greg Wooledge a écrit : > A .signature file is only written once, so it doesn't matter how > tedious it is to produce the desired formatting. That said, I would > imagine relatively few people have octothorpe boxes around text in their > .signature files these days. Even ba

Re: ASCII formatting for plain text email

2023-01-31 Thread Greg Wooledge
On Tue, Jan 31, 2023 at 07:49:18PM +0100, Pierre Willaime wrote: > # > ## some title here ## > # > > (I am using emacs comment-box feature in a buffer to do this and I > replace ; by #, I suppose there is nicer way to do this). > > I often see email signatu

Re: ASCII formatting for plain text email

2023-01-31 Thread Greg Wooledge
On Tue, Jan 31, 2023 at 01:42:10PM -0600, David Wright wrote: > The question then is why emacs uses ; as a comment character. Because of LISP. https://www.gnu.org/software/emacs/manual/html_node/elisp/Comments.html

Re: ASCII formatting for plain text email

2023-01-31 Thread Jude DaShiell
boxes specializes in that. chafa may help those that get your ascii boxes put those characters into the printable set. Jude "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author, 1940) . On Tue, 31 Jan 2023,

Re: ASCII formatting for plain text email

2023-01-31 Thread David Wright
On Tue 31 Jan 2023 at 19:49:18 (+0100), Pierre Willaime wrote: > > I would like to format plain text emails to increase readability and > information separation. The idea is to go beyond markdown and to have > more visible elements. For example I am looking for a convenient way to > "draw" some AS

Re: ASCII formatting for plain text email

2023-01-31 Thread rhkramer
On Tuesday, January 31, 2023 01:49:18 PM Pierre Willaime wrote: > ... I am looking for a convenient way to > "draw" some ASCII boxes such as > > # > ## some title here ## > # > Do you know dedicated tools or text editor to do such things the easy > way on a

ASCII formatting for plain text email

2023-01-31 Thread Pierre Willaime
Hi, -- Warning: I hope you will forgive me for this email not really related to debian. I just think people from this community could likely have good advice about this question. -- I would like to format plain text emails to increase readability and information separation. The id