Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 15 Jul 2003.
Re: ASCII art from sourcecode as image

Re: ASCII art from sourcecode as image

On Tue, 15 Jul 2003, Erik Itter wrote:
>
> I have seen both linux source codes and some scripts for my company rendered
> as images - reads formated with extra blanks line feeds etc. to look like
> some image if displayed using small enough letters. (without
> inserting/deleting anything changing the source from the compilers point of
> view)
>
> I am sure there has to be some converter to do that source2asciiArt
> conversion using a given image as formating mask but i cannot find such a
> tool. Where are they???

Not only do you have to know the "formatting mask", you also have to know
the formatting rules of the language you're using.  For example, in C and
C++ you can't add whitespace in the middle of an identifier, or in the
middle of a multi-character operator like -> or ++.  A program would have
to have a list of "atomic symbols" like '++' and 'if' that could *never*
be changed, and probably a list of "identifiers" like 'count' and 'foobaz'
that *could* be changed, as long as they were changed everywhere.  Ditto
rules about comments (both single-line and delimited varieties).

It would be a nice programming exercise to write a very simple "formatter"
in this vein; you might even try it yourself, if you know a programming
language.  To create a generic "formatter" taking into consideration
everything I said above: that would be really challenging, IMO.

-Arthur

ObAscii: terribly un-ergonomic monitor-keyboard setup

     _/\
   _-  \\
--\     \\-----.    /-_
   \    _\\  _  `. /   -_
    \.-'\ -~-\#c_ `.    /
    ~~~~~~    ~~~~  `. /
                      `.

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,fd4f3d79f18d7426
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 2003-07-15 14:10:52 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!enews.sgi.com!news-hog.berkeley.edu!ucberkeley!newsfeed.srv.cs.cmu.edu!bb3.andrew.cmu.edu!lmtp2nntp!not-for-mail
From: "Arthur J. O'Dwyer" <aj...@andrew.cmu.edu>
Newsgroups: alt.ascii-art
Subject: Re: ASCII art from sourcecode as image
Date: Tue, 15 Jul 2003 17:05:21 -0400 (EDT)
Organization: Carnegie Mellon, Pittsburgh, PA
Lines: 38
Message-ID: <Pin...@unix44.andrew.cmu.edu>
References: <bf1lt6$c6r$03$1...@news.t-online.com>
NNTP-Posting-Host: smtp5.andrew.cmu.edu
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Trace: bb3.andrew.cmu.edu 1058303122 21166 128.2.10.85 (15 Jul 2003 21:05:22 GMT)
X-Complaints-To: adv...@andrew.cmu.edu
NNTP-Posting-Date: 15 Jul 2003 21:05:22 GMT
In-Reply-To: <bf1lt6$c6r$03$1...@news.t-online.com>
Xref: archiver1.google.com alt.ascii-art:24209
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2003 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post