* Maybe easy for a elisp guru.
@ 2012-10-04 17:56 B. T. Raven
0 siblings, 0 replies; only message in thread
From: B. T. Raven @ 2012-10-04 17:56 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-04 17:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-04 17:56 Maybe easy for a elisp guru B. T. Raven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).