From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Maybe easy for a elisp guru. Date: Thu, 04 Oct 2012 12:56:08 -0500 Organization: NewsGuy - Unlimited Usenet $19.95 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1349401973 25563 80.91.229.3 (5 Oct 2012 01:52:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2012 01:52:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 05 03:52:55 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TJx47-0006Y7-KR for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2012 03:50:59 +0200 Original-Received: from localhost ([::1]:53253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJpiX-0008RR-93 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Oct 2012 14:00:13 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news3 Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: p7eb48a39552f3b585e39124b16e0c6963939b5dbe84ada13.newsdawg.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 X-Received-Bytes: 2093 Original-Xref: usenet.stanford.edu gnu.emacs.help:194720 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87055 Archived-At: 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