all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "B. T. Raven" <btraven@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Maybe easy for a elisp guru.
Date: Thu, 04 Oct 2012 12:56:08 -0500	[thread overview]
Message-ID: <k4kijn0aet@news3.newsguy.com> (raw)

I had an idea that seemed like it might have a natural Emacs solution:
I want to substitute the characters from a text file for the random
chars (upper and lower case) and punctuation in an ascii art file so
that the graphic is retained but the text composing the graphic comes
from a suitably large plain text file, (large enough so that it can
overwrite the image before it gets to eof).

This seems to need (buffer-string), (looking-at) and some non emacs
functions (is-big-glyph) = caps, numbers, \|!@#$%&(){}[]?/ which would
all be replaced by (upcase) of the characters in the plain text file.
Other punctuation and lower case chars in the ascii art would be
replaced by (downcase) of the plain text chars. Spaces in the ascii art
(and maybe periods) would be retained. Here is sample ascii art (a
detail from Manet's dejeuner):

http://www.asciipr0n.com/pr0n/morepr0n/pr0n13.txt

or for the same woman fully clothed, the top image here:

http://www.asciiworld.com/-Statue-of-Liberty-.html

A lot of the words would be camel-case and/or have holes in them but I
think the text would still be readable at least where the ascii art
wasn't too sparse. The image wouldn't lose too much resolution either at
least on a larger and denser text block.

Any ideas or even just some quick and dirty code I can play around with?
I can't seem to get anywhere with elisp if I have to start from scratch
(no comp. sci. training).

Tnx,

Ed



                 reply	other threads:[~2012-10-04 17:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=k4kijn0aet@news3.newsguy.com \
    --to=btraven@nihilo.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.