X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,1dc64acfba88065e X-Google-Attributes: gidf996b,public X-Google-Thread: 110f55,6776b888ea32fb05 X-Google-Attributes: gid110f55,public X-Google-Thread: fbb9d,1dc64acfba88065e X-Google-Attributes: gidfbb9d,public X-Google-ArrivalTime: 1994-10-06 00:05:22 PST Path: bga.com!news.sprintlink.net!sashimi.wwa.com!not-for-mail From: brunner@GAS.UUG.Arizona.EDU (Raymond E Brunner) Newsgroups: rec.arts.ascii,alt.ascii-art,alt.binaries.pictures.ascii Subject: Info: Light-On-Dark to Dark-On-Light Converters? Followup-To: rec.arts.ascii,alt.ascii-art,alt.binaries.pictures.ascii Date: 5 Oct 1994 21:22:39 -0500 Organization: University of Arizona, CCIT Lines: 48 Sender: boba@wwa.com Approved: boba@wwa.com Message-ID: <36vn1f$kbb@sashimi.wwa.com> References: <36501j$l30@gagme.wwa.com> <36h217$5bh@gagme.wwa.com> <36lp4o$j13@gagme.wwa.com> NNTP-Posting-Host: sashimi.wwa.com Xref: bga.com rec.arts.ascii:1940 alt.ascii-art:12682 alt.binaries.pictures.ascii:1282 Out of Order (psamuels@hmc.edu) wrote: : And The Scarecrow spake unto us, saying: : > But as to flipping the light and dark of a pic while it is ASCII, I : > don't know. Dose anybody recall if there is a program or script for this? : In UNIX csh you could alias a tr command something like: : alias invert "tr '[\040-\177]' 'QWERTYUIOP...' < \!*" : (The QWERTYUIOP... is whatever order you think the 96 characters : between 32 and 127 should be in.) : To use it you would then type invert filename and it'd display the : inverted one on the screen. Save with invert filename>filename2. : I'm not about to think that hard at this time of night, but if anyone : tries this, please post the complete alias and an example of what it : can do. I dont know much about aliases in unix but in my ibm I made a simple program to do it (sounded like fun).. and I came up with two lists of characters.. original list was in order of brightness, new list, (opposite brightness, corresponds to ascii char in first list.. anyways I made an IBM version and here are the lists: [ .`-',:_;~=^"+/|()<>i%l\{}!cIrvx[]?*ast17nufJozejCLw23pqTYmy456bdFgkV9GhPS XOZA&UDEK8HR$B#QW@0MN] [MBHKUUUUAAXXyyywjjjjzttttt????????]}}}}iiiiiiii>>|||////////^^^^^^^^^^^^^^ ^~~~__---``... ] Keep in mind the fact that these lists aren't reversed lists of each other.. and if you convert something using this and convert it back, your picture wont look the same.. but it works fairly well. I'm going to upload the IBM version to ftp.wwa.com, I think that is a place you can find it (in incoming).. (tell me of a better place, please!) See ya later! rb (brunner@helium.gas.uug.arizona.edu) p.s. While you're there, don't forget to check out bmp2txt, a bitmap to ascii picture converter!