Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 3 Apr 2000.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
Detecting ASCII art in emails

Detecting ASCII art in emails

alt.ascii-art · 21 messages · 3 Apr 2000 - 10 Apr 2000
Ian Howlett wrote:
> I am writing a program to detect ASCII art in email messages.
> 
> I am currently designing the heuristics, or to put it another way,
> I'm trying to work out how you can identify the presence of ASCII art.
> <snip>

An old thread about this topic started at this message:

http://www.deja.com/=dnc/[ST_rn=ps]/getdoc.xp?AN=545472141

[The link to the thread list was way too long and ugly to post. Just
click on "� Return to current thread" at the top of the page.]

-- 
    (,         http://www.ludd.luth.se/~vk/cgi/asciichat/
    /|__--__                       .                        __--__
    |\ '__                        /|\                        _{ _ 
    `.' / `.,_ _________           |           _________ _,.' (/ `.
    /  ||``._.'             ASCII ART CHAT!             `---'|:||,/
  .'   /|                                                   /|:| \
.'    /\ \         __   __                _                 `/|'\'
 ` `,/ /`,\        \ \ / /__ _ _ ___ _ _ (_)__ __ _         /,'\ \
   .'.'  /|         \ V / -_) '_/ _ \ ' \| / _/ _` |        |\  `.`.
 ,' /   / |          \_/\___|_| \___/_||_|_\__\__,_|        | \   \ `,
- `- -- `-'- -ejm-------------------------------------VK-- -`-' -- -' -

Henry Segerman <sjo...@sable.ox.ac.uk> ASCII art 3 Apr 2000 00:00 · permalink · report
Ian Howlett <ih...@ukc.ac.uk> wrote:

: If you can add any more features, such as the alphabetic characters
: that you use a lot of, then I'd be most grateful.

I use quite a few of 'J', 'L' and 'F', but generally I doubt theres enough
usage of alphabetic characters to be able to detect ASCII art from the presence
of letters rather than the absence.

You could link it with a spell checker - if it cant find any words it recognises
in large amounts of ASCII then its probably not writing.

-- 
 ,-,  Henry Segerman
 |/                
 |.--,  /\ |  /|/\,--,   ,
/|   |  \/ | / | /\  |   |/
 '   `--'\/|/  | \/  `--'|
                        /|
       uewJ363S hJu3H  `-'

Henry Segerman wrote:
> 
> You could link it with a spell checker - if it cant find any words it recognises
> in large amounts of ASCII then its probably not writing.

Hmmm... n�nting s�ger mig att den biten kanske inte riktigt st�mmer...


-- 
    (,         http://www.ludd.luth.se/~vk/cgi/asciichat/
    /|__--__                       .                        __--__
    |\ '__                        /|\                        _{ _ 
    `.' / `.,_ _________           |           _________ _,.' (/ `.
    /  ||``._.'             ASCII ART CHAT!             `---'|:||,/
  .'   /|                                                   /|:| \
.'    /\ \         __   __                _                 `/|'\'
 ` `,/ /`,\        \ \ / /__ _ _ ___ _ _ (_)__ __ _         /,'\ \
   .'.'  /|         \ V / -_) '_/ _ \ ' \| / _/ _` |        |\  `.`.
 ,' /   / |          \_/\___|_| \___/_||_|_\__\__,_|        | \   \ `,
- `- -- `-'- -ejm-------------------------------------VK-- -`-' -- -' -

Hello.

I am writing a program to detect ASCII art in email messages.

I am currently designing the heuristics, or to put it another way,
I'm trying to work out how you can identify the presence of ASCII art.

I thought I'd write and ask you folks who do lots of it what you
think the determining features are.

My observations so far:

There's lots of spaces, often at the start of a line.
Spaces are used differently to those in text.
There are few tab characters used.
Many non-alphanumeric characters are used.


If you can add any more features, such as the alphabetic characters
that you use a lot of, then I'd be most grateful.

(The program will be in Perl, but any code or pseudocode will also
be warmly received.)

Many thanks,
Ian.

>Subject: Detecting ASCII art in emails
>From: Ian Howlett ih...@ukc.ac.uk 
>Date: 4/3/00 10:18 AM Eastern Daylight Time
>Message-id: <38E...@ukc.ac.uk>
>
>Hello.
>
>I am writing a program to detect ASCII art in email messages.
>
>I am currently designing the heuristics, or to put it another way,
>I'm trying to work out how you can identify the presence of ASCII art.
>
>I thought I'd write and ask you folks who do lots of it what you
>think the determining features are.
>
>My observations so far:
>
>There's lots of spaces, often at the start of a line.
>Spaces are used differently to those in text.
>There are few tab characters used.
>Many non-alphanumeric characters are used.

     Actually there should not be *any* TABs at all in ASCII Art.

ObASCII:

                    ___.....-------....___
           __..--~~~                      ~~~--..__
      _.-~~     __--~        .   .        ~--__    ~~-._
   .-~       .-~             `. .'             ~-.      ~-.
 .'        .~      ~.      .  `~'  .      .~      ~.       `.
'        .~          ~~--~~         ~~--~~          ~.       `


               .-~~-. .--~~~..   ..~~~--. .-~~-.
       . `.   '      `        `.'        '      `   .' .
     .  `-.`-.                                   .-' .`
      `-.._`--.._         B a t m a n             .-`
           ~-----~       R i d d l e r          ,~
                            l o g o          _.'
                          L e s t e r      ,'
                             A M C
                              9 8

-- 
     .-~~-.
    (_^..^_)
      ||||AMC
*Tony's ASCII Zine*
http://www.zinezone.com/users/TonyCucchiara

*Shockwave.com Version 2.0*
http://v2.shockwave.com/

On Mon, 03 Apr 2000, Ian Howlett <ih...@ukc.ac.uk> wrote:
> There's lots of spaces, often at the start of a line.
> Spaces are used differently to those in text.
> There are few tab characters used.

 None, if you are precise. Otherwise it wouldn't be ASCII Art :-)

> Many non-alphanumeric characters are used.

 Well. It don't think that you can find a script that catches most of
the arts. Why? Some are very small, some are larger. Some even use just
words you find in a dictionary, or even consist of plain HTML (like VK's
NO HTML ;)). It fully depends on the artist what characters he like to
use.
 There are even arts around that just use 8, d, b P q and so on - and
nothing that isn't alphanumeric. So I simply think it's hard to judge.

 Just stick to this simple rule: Use always an monospaced font - you
don't know what you'd miss otherwise ;)

 What for do you want to do such a thing?

> If you can add any more features, such as the alphabetic characters
> that you use a lot of, then I'd be most grateful.

 As mentioned above - that depends fully on the artist. Some use J and F
for lines, others are only /, \ and so forth.

 I wish you _much_ luck with you - you will need it desperately!
Alfie
-- 
Sheu bleibt scheu: Linux - Daran kommt man nicht vorbei!
                                  -- <http://www.sloganizer.de/>

sara wallen <sar...@chastitybeltuk2.net> ASCII art 4 Apr 2000 00:00 · permalink · report
Veronica Karlsson <aci...@earthling.net> wrote... well, this, I
imagine.

> Henry Segerman wrote:
> > 
> > You could link it with a spell checker - if it cant find any words it recognises
> > in large amounts of ASCII then its probably not writing.
> 
> Hmmm... n�nting s�ger mig att den biten kanske inte riktigt st�mmer...

LOL... j�ttetr�kigt, med Word97 ocks� :(

ObAscii:
                         ___   ___
                     _.-'   '/�_  '-.
                 _.-'   _ --\/ _ \  `'\
                / _  -    _--\/  \  \  `\
               / /           _L      \   |
              | /      .,-'''  \     \    \
             /    /   /         |         |.
            /        ,'         '  |   \   |
            |    |   |          :   |   |  \
           /     |   |          |   |   |   |
           /  /    | |          \    \  \  `|
          J  /  /  | |           \       \_ |
          |  |    /  ) _.,,.      \_  \     .>
          \        .:'`'_```'    /''\_ _  _->\
           \   __.-` /<808_>|   |<sjw>`\`'  ,\
            |/|\T        / /     `-_    |/ ||
            | LJ|               |       || /
            `\ *            .   `       /' �
            > \_,          (_    |     *J |
           <'`   \           `'/�      - |{
        _<`'   < \                    /|  |
        _>   <    \     `<-':'-':'-   / |  }
        _/\ <   < |A       .,___,-   /|  \/
       /  <   <   |'M.       ```    /| |\|
    _.,    <   <  | ''M.           / -'\_ 
 /'` /      |/|  o . '''A.      _-`-/ \_ `-, 
    /         >'/o   ' ''''''''' |      \   '.
   /            \ o      ' ' ' 'o|           |
   |         \_  \ o   '  '  '. o'  /        |\-.
  /            \__\_o           o`|/        /    `\
  |,._              \o         o  /       _/        \
      \              |oo       o |`      /           |
       \,._           \ oo    o  /      /            \
           `'|_        \  oo o  /     _/              |
               \        \   o   |    /		      |

-- 
remove chastitybelt to reply
"Jesus Saves... Passes to Moses. Shoots... He SCORES!"

Ian Howlett (ih...@ukc.ac.uk) wrote:
: I am currently designing the heuristics, or to put it another way,
: I'm trying to work out how you can identify the presence of ASCII art.
: 
: My observations so far:
: 
: Many non-alphanumeric characters are used.

I would bet that you could get fairly solid results if you searched for
occurances of /, |, and \ as your primary hooks.  Toss in - and _, maybe +
and some others (. and , and ' and = and others) if you like, or as a
lower-weighted factor for your heuristic, but in terms of raw efficiency,
the pipe and slashes are probably more omnipresent in ASCII art and
lacking in non-ART posts than any other characters.  The first 80% or so
of the search is the easist part.  :)

-- 
Joshua Millard == pul...@wpi.edu && www.wpi.edu/~pulp
            .-'-.   '-.-'   .-'-.   '-.-'
Yo' momma's .sig is so big, she's got to use a full screen editor just to,
um, edit it.  Yeah.

Wesley Clifford <par...@apk.net> ASCII art 4 Apr 2000 00:00 · permalink · report
On 4 Apr 2000 19:53:17 GMT, pul...@WPI.EDU (Joshua E Millard) wrote:

>Ian Howlett (ih...@ukc.ac.uk) wrote:
>: I am currently designing the heuristics, or to put it another way,
>: I'm trying to work out how you can identify the presence of ASCII art.
>: 
>: My observations so far:
>: 
>: Many non-alphanumeric characters are used.
>
>I would bet that you could get fairly solid results if you searched for
>occurances of /, |, and \ as your primary hooks.  Toss in - and _, maybe +
>and some others (. and , and ' and = and others) if you like, or as a
>lower-weighted factor for your heuristic, but in terms of raw efficiency,
>the pipe and slashes are probably more omnipresent in ASCII art and
>lacking in non-ART posts than any other characters.  The first 80% or so
>of the search is the easist part.  :)

Just don't search through any emails pertaining to Unix or Dos.

cat //usr/my_file.txt|grep -i "/[../]"

:-D

--Wesley

The only stupid question is the unasked question.
And that's a good thing, because I hate stupid questions!

In article <38e...@news.apk.net>, Wesley Clifford wrote:
>On 4 Apr 2000 19:53:17 GMT, pul...@WPI.EDU (Joshua E Millard) wrote:
>>lower-weighted factor for your heuristic, but in terms of raw efficiency,
>>the pipe and slashes are probably more omnipresent in ASCII art and
>
>Just don't search through any emails pertaining to Unix or Dos.
>
>cat //usr/my_file.txt|grep -i "/[../]"

..or Perl.  Here's a script I posted to comp.lang.perl.misc recently:

  perl -0777pi -e "s%</?a(\\s([^>\"']+|\"[^\"]*\"|'[^']*')*)?>%%ig"

Although come to think of it, telling regexps and ASCII art apart
shouldn't be too hard - the latter tends to have more spaces in it.

-- 
Ilmari Karonen
http://www.sci.fi/~iltzu/

sar...@chastitybeltuk2.net (sara wallen) wrote in 
<il9...@4ax.com>:

>Veronica Karlsson <aci...@earthling.net> wrote... well, this, I
>imagine.
>
>> Henry Segerman wrote:
>> > 
>> > You could link it with a spell checker - if it cant find any words it 
recognises
>> > in large amounts of ASCII then its probably not writing.
>> 
>> Hmmm... n�nting s�ger mig att den biten kanske inte riktigt st�mmer...
>
>LOL... j�ttetr�kigt, med Word97 ocks� :(

The two ladies here demonstrate what 'text with non-ascii characters' 
means.
Thank you ladies.

Godzijdank doet Nederlands niet aan bakken vol met accent-tekentjes, zodat 
deze post niet vlam-gevoelig is.

Aardig plaatje wel ;)

and thanks for 110 chars of gibberish.

Ojosh!ro

It sure wouldn't survive your ascii-checker, Veronika =)

ojoshiro wrote:
> sara wallen wrote:
> >Veronica Karlsson wrote:
> >> Henry Segerman wrote:
> >> >
> >> > You could link it with a spell checker - if it cant find any words it recognises
> >> > in large amounts of ASCII then its probably not writing.
> >>
> >> Hmmm... n�nting s�ger mig att den biten kanske inte riktigt st�mmer...
> >
> >LOL... j�ttetr�kigt, med Word97 ocks� :(
> 
> The two ladies here demonstrate what 'text with non-ascii characters'
> means.

Yes, that too.   :-)

> It sure wouldn't survive your ascii-checker, Veronika =)

No, but the point was that it wouldn't survive Henry Segerman's
suggestion that one use a spell checker to identify what's _ascii art_.
That *might* work, for *some* pictures, *if* everybody wrote in English
(assuming that it would be an English spell checker). That method would
not work for text in other languages, or for those visual poems somebody
posted here a while ago...


-- 
    (,         http://www.ludd.luth.se/~vk/cgi/asciichat/
    /|__--__                       .                        __--__
    |\ '__                        /|\                        _{ _ 
    `.' / `.,_ _________           |           _________ _,.' (/ `.
    /  ||``._.'             ASCII ART CHAT!             `---'|:||,/
  .'   /|                                                   /|:| \
.'    /\ \         __   __                _                 `/|'\'
 ` `,/ /`,\        \ \ / /__ _ _ ___ _ _ (_)__ __ _         /,'\ \
   .'.'  /|         \ V / -_) '_/ _ \ ' \| / _/ _` |        |\  `.`.
 ,' /   / |          \_/\___|_| \___/_||_|_\__\__,_|        | \   \ `,
- `- -- `-'- -ejm-------------------------------------VK-- -`-' -- -' -

Dave Bird <dav...@xemu.demon.co.uk> ASCII art 5 Apr 2000 00:00 · permalink · report
In article<il9...@4ax.com>, sara wallen
<sar...@chastitybeltuk2.net> writes:
>> Henry Segerman wrote:
>> > 
>> > You could link it with a spell checker - if it cant find any words it 
>recognises
>> > in large amounts of ASCII then its probably not writing.
>> 
>> Hmmm... n�nting s�ger mig att den biten kanske inte riktigt st�mmer...
>
>LOL... j�ttetr�kigt, med Word97 ocks� :(

 No, you couldn't have a spellchecker for any particular language: you
 could try to verify that it "didn't look like language" (mostly 
 alphabetic with a regular alternation of vowels with consonants,
 having converted accented letters into plain letters) and "didn't
 look like tables of figures (not mostly digits, or digits and A to F,
 with a fairly even distribution of digits).  A high proportion of
 spaces and punctuation would be indicative of possible ascii-art.

 Nice picture BTW
>
>ObAscii:
>                         ___   ___
>                     _.-'   '/�_  '-.
>                 _.-'   _ --\/ _ \  `'\
>                / _  -    _--\/  \  \  `\
>               / /           _L      \   |
>              | /      .,-'''  \     \    \
>             /    /   /         |         |.
>            /        ,'         '  |   \   |
>            |    |   |          :   |   |  \
>           /     |   |          |   |   |   |
>           /  /    | |          \    \  \  `|
>          J  /  /  | |           \       \_ |
>          |  |    /  ) _.,,.      \_  \     .>
>          \        .:'`'_```'    /''\_ _  _->\
>           \   __.-` /<808_>|   |<sjw>`\`'  ,\
>            |/|\T        / /     `-_    |/ ||
>            | LJ|               |       || /
>            `\ *            .   `       /' �
>            > \_,          (_    |     *J |
>           <'`   \           `'/�      - |{
>        _<`'   < \                    /|  |
>        _>   <    \     `<-':'-':'-   / |  }
>        _/\ <   < |A       .,___,-   /|  \/
>       /  <   <   |'M.       ```    /| |\|
>    _.,    <   <  | ''M.           / -'\_ 
> /'` /      |/|  o . '''A.      _-`-/ \_ `-, 
>    /         >'/o   ' ''''''''' |      \   '.
>   /            \ o      ' ' ' 'o|           |
>   |         \_  \ o   '  '  '. o'  /        |\-.
>  /            \__\_o           o`|/        /    `\
>  |,._              \o         o  /       _/        \
>      \              |oo       o |`      /           |
>       \,._           \ oo    o  /      /            \
>           `'|_        \  oo o  /     _/              |
>               \        \   o   |    /               |
>
>-- 
>remove chastitybelt to reply
>"Jesus Saves... Passes to Moses. Shoots... He SCORES!"

                                            |~/           |~/
~~|;'^';-._.-;'^';-._.-;'^';-._.-;'^';-._.-;||';-._.-;'^';||_.-;'^'0-|~~
P |      Woof Woof, Glug Glug               ||____________||      0  | P
O |   Who Drowned the Judge's Dog?          | . . . . . . . '----. 0 | O
O |         answers on                  *---|_______________  @__o0  | O
L |<a href="news:alt.religion.scientology"></a>_____________|/_______| L
www.xemu.demon.co.uk  2B0D 5195 337B A3E6 DDAC  BD38 7F2F FD8E 7391 F44F

Gerfried Fuchs <alf...@innocent.com> ASCII art 6 Apr 2000 00:00 · permalink · report
On Tue, 04 Apr 2000, sara wallen <sar...@chastitybeltuk2.net> wrote:
> ObAscii:
>                          ___   ___
>                      _.-'   '/�_  '-.
>                  _.-'   _ --\/ _ \  `'\
>                 / _  -    _--\/  \  \  `\
>                / /           _L      \   |
>               | /      .,-'''  \     \    \
>              /    /   /         |         |.
>             /        ,'         '  |   \   |
>             |    |   |          :   |   |  \
>            /     |   |          |   |   |   |
>            /  /    | |          \    \  \  `|
>           J  /  /  | |           \       \_ |
>           |  |    /  ) _.,,.      \_  \     .>
>           \        .:'`'_```'    /''\_ _  _->\
>            \   __.-` /<808_>|   |<sjw>`\`'  ,\
>             |/|\T        / /     `-_    |/ ||
>             | LJ|               |       || /
>             `\ *            .   `       /' �
>             > \_,          (_    |     *J |
>            <'`   \           `'/�      - |{
>         _<`'   < \                    /|  |
>         _>   <    \     `<-':'-':'-   / |  }
>         _/\ <   < |A       .,___,-   /|  \/
>        /  <   <   |'M.       ```    /| |\|
>     _.,    <   <  | ''M.           / -'\_ 
>  /'` /      |/|  o . '''A.      _-`-/ \_ `-, 
>     /         >'/o   ' ''''''''' |      \   '.
>    /            \ o      ' ' ' 'o|           |
>    |         \_  \ o   '  '  '. o'  /        |\-.
>   /            \__\_o           o`|/        /    `\
>   |,._              \o         o  /       _/        \
>       \              |oo       o |`      /           |
>        \,._           \ oo    o  /      /            \
>            `'|_        \  oo o  /     _/              |
>                \        \   o   |    /		      |
> 

 Hey,that's a great picture :-))  There are just 2 little things that
bug me: You used � which I thing on your side should look like the
apostroph ('). But it's hexB4. It's not that big problem, actually.
 And the second thing is that you used the tab character at the last
line. You won't see it in the orgiginal post if your tabstops are setup
to 8 chars - but if it's quoted, and maybe someone else have tabstops
set to something else that can break the picture up.

 Not really in this one, for you only used it in one line :-)

 Keep on drawing!
Alfie
-- 
(o)_    .--ooO--00--Ooo--.          <http://alfie.ist.org/geekcode.txt>  .ww,
(>)_  .'  Gerfried Fuchs  `.                                             3ooE
    .'  alf...@innocent.com  `.     GPG-Fingerprint: 4324 1D7B 4BE3 3FBF  'mm`
   `-- http://alfie.ist.org --'      @>--,-`-,---   7192 3F30 F2CD B53F   JL

MJP <mik...@bluedwarf.net> ASCII art 6 Apr 2000 00:00 · permalink · report
On Wed, 05 Apr 2000 23:51:38 +0200, Veronica Karlsson <aci...@earthling.net> wrote:

>ojoshiro wrote:
>> sara wallen wrote:
>> >Veronica Karlsson wrote:
>> >> Henry Segerman wrote:
>> >> >
>> >> > You could link it with a spell checker - if it cant find any words it recognises
>> >> > in large amounts of ASCII then its probably not writing.
>> >>
>> >> Hmmm... n�nting s�ger mig att den biten kanske inte riktigt st�mmer...
>> >
>> >LOL... j�ttetr�kigt, med Word97 ocks� :(
>> 
>> The two ladies here demonstrate what 'text with non-ascii characters'
>> means.
>
>Yes, that too.   :-)
>
>> It sure wouldn't survive your ascii-checker, Veronika =)
>
>No, but the point was that it wouldn't survive Henry Segerman's
>suggestion that one use a spell checker to identify what's _ascii art_.
>That *might* work, for *some* pictures, *if* everybody wrote in English
>(assuming that it would be an English spell checker). That method would
>not work for text in other languages, or for those visual poems somebody
>posted here a while ago...
>
>
>-- 
>    (,         http://www.ludd.luth.se/~vk/cgi/asciichat/
>    /|__--__                       .                        __--__
>    |\ '__                        /|\                        _{ _ 
>    `.' / `.,_ _________           |           _________ _,.' (/ `.
>    /  ||``._.'             ASCII ART CHAT!             `---'|:||,/
>  .'   /|                                                   /|:| \
>.'    /\ \         __   __                _                 `/|'\'
> ` `,/ /`,\        \ \ / /__ _ _ ___ _ _ (_)__ __ _         /,'\ \
>   .'.'  /|         \ V / -_) '_/ _ \ ' \| / _/ _` |        |\  `.`.
> ,' /   / |          \_/\___|_| \___/_||_|_\__\__,_|        | \   \ `,
>- `- -- `-'- -ejm-------------------------------------VK-- -`-' -- -' -



whats this? the great veronika posting no pics, and non askii characters?
what has happened to your sense of cyber morality?
what happened to adhering to the FAQ?

obasciipsudobowtie:
{>o<}
-- 
****************************
      __.-~---_     mikechat
    __)/ > O  (        @
    ) /  /|\ )"   bluedwarf.net
    ) | ^ ^ ^|
     )_\ ^ ^ (
       )\ ^ ^ \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 ~~ ~~~~~~~~~ ~~~~ ~~~MJP~~~~~~~~
~~~~~~~~~ ~~~~~~~~~~~~  ~~~~~~~~ 

Henry Segerman <sjo...@sable.ox.ac.uk> ASCII art 7 Apr 2000 00:00 · permalink · report
Veronica Karlsson <aci...@earthling.net> wrote:

: No, but the point was that it wouldn't survive Henry Segerman's
: suggestion that one use a spell checker to identify what's _ascii art_.
: That *might* work, for *some* pictures, *if* everybody wrote in English
: (assuming that it would be an English spell checker). That method would
: not work for text in other languages, or for those visual poems somebody
: posted here a while ago...

You could include very common but multiple letter words like 'the' in as
many languages as you want. I'm guessing that in the end the decision as
to wether something is ascii art or not is going to come down to adding up
a number of factors with weightings and comparing against a threshold value.
So anything we can say about what ascii art usually is is good.

-- 
 ,-,  Henry Segerman
 |/                
 |.--,  /\ |  /|/\,--,   ,
/|   |  \/ | / | /\  |   |/
 '   `--'\/|/  | \/  `--'|
                        /|
       uewJ363S hJu3H  `-'

Ilmari Karonen wrote:
> Wesley Clifford wrote:
> >Joshua E Millard wrote:
> >>lower-weighted factor for your heuristic, but in terms of raw efficiency,
> >>the pipe and slashes are probably more omnipresent in ASCII art and
> >
> >Just don't search through any emails pertaining to Unix or Dos.
> >
> >cat //usr/my_file.txt|grep -i "/[../]"
> 
> ..or Perl.  Here's a script I posted to comp.lang.perl.misc recently:
> 
>   perl -0777pi -e "s%</?a(\\s([^>\"']+|\"[^\"]*\"|'[^']*')*)?>%%ig"
                      ^^   ###^^^^^ ^^      ^^^                ^^
                      |     |    |    \      |                 /
                 llizard cheese mouse smile wink    another llizard

looks like typical ascii art to me!  :-)


-- 
    (,         http://www.ludd.luth.se/~vk/cgi/asciichat/
    /|__--__                       .                        __--__
    |\ '__                        /|\                        _{ _ 
    `.' / `.,_ _________           |           _________ _,.' (/ `.
    /  ||``._.'             ASCII ART CHAT!             `---'|:||,/
  .'   /|                                                   /|:| \
.'    /\ \         __   __                _                 `/|'\'
 ` `,/ /`,\        \ \ / /__ _ _ ___ _ _ (_)__ __ _         /,'\ \
   .'.'  /|         \ V / -_) '_/ _ \ ' \| / _/ _` |        |\  `.`.
 ,' /   / |          \_/\___|_| \___/_||_|_\__\__,_|        | \   \ `,
- `- -- `-'- -ejm-------------------------------------VK-- -`-' -- -' -

Ilmari Karonen (ilt...@sci.invalid) wrote:
: >Just don't search through any emails pertaining to Unix or Dos.
: >
: >cat //usr/my_file.txt|grep -i "/[../]"
: 
: ..or Perl.  Here's a script I posted to comp.lang.perl.misc recently:
: 
:   perl -0777pi -e "s%</?a(\\s([^>\"']+|\"[^\"]*\"|'[^']*')*)?>%%ig"

Heh.  Touche'.  Then again, regexps in Perl are a sort of art themselves.

Joshua Millard == pul...@wpi.edu && www.wpi.edu/~pulp
            .-'-.   '-.-'   .-'-.   '-.-'
Yo' momma's .sig is so big, she's got to use a full screen editor just to,
um, edit it.  Yeah.

Krogg <kro...@gtcom.net> 7 Apr 2000 00:00 · permalink · report
Joshua E Millard wrote:
> 

> Yo' momma's .sig is so big, she's got to use a full screen editor just to,
> um, edit it.  Yeah.

Yo'mamma's .sig is so big,when her email bounces,it makes her cd rom skip. 

Obascii:

Cd drive.
 ____
[==="]

-- 


|"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""|
|      `.`/""""""\,','            my sig is too big,      |
|SEE HIS (  /   \ \' SEE HIS      but its really cool.    |
| FACE    \/<> <>\/   SMILE                               |
|         /   W   \          Visit my ascii art site:     |
|       ,'\_|||||_/`.  http://www.gtcom.net/~krogg/ascii/ |
|     ,','   |||   `.`.     kro...@gtcom.net    |
|____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|

David Riley <dav...@dmriley.demon.co.uk> ASCII art 9 Apr 2000 00:00 · permalink · report
Ian Howlett <ih...@ukc.ac.uk> writes:

> I am writing a program to detect ASCII art in email messages.
> 
> (The program will be in Perl, but any code or pseudocode will also
> be warmly received.)

After reading some of the suggestions in this thread, I've had
a go at this and have had a fair amount of success detecting
which posts to this group contain ascii-art, and in avoiding
false positives with other types of text such as source code.

I've only used 7 rules so far, but I've tried to make it easy
to add new ones, and to adjust the weighting values. If anyone
wants to see the code, it's at:

http://www.dmriley.demon.co.uk/code/ascii-art-scripts/aagrep.pl

-- 
(((( .'   )   //=====e       "Beneath the paving stones, the beach!"
 )))   \   )_//____________     -wall inscription Paris may '68
((((    J   ) David Riley  )===========O  dav...@dmriley.demon.co.uk
 ))))______)_______________)===========O  http://www.dmriley.demon.co.uk/

ojoshiro <Jol...@roger.com> 10 Apr 2000 00:00 · permalink · report
sjo...@sable.ox.ac.uk (Henry Segerman) wrote in
<8clfuu$bpd$1...@news.ox.ac.uk>: 

>Veronica Karlsson <aci...@earthling.net> wrote:
>
>: No, but the point was that it wouldn't survive Henry Segerman's
>: suggestion that one use a spell checker to identify what's _ascii
>: art_. That *might* work, for *some* pictures, *if* everybody wrote in
>: English (assuming that it would be an English spell checker). That
>: method would not work for text in other languages, or for those visual
>: poems somebody posted here a while ago...
>
>You could include very common but multiple letter words like 'the' in as
>many languages as you want. I'm guessing that in the end the decision as
>to wether something is ascii art or not is going to come down to adding
>up a number of factors with weightings and comparing against a threshold
>value. So anything we can say about what ascii art usually is is good.
>

Writ something that can recognize ascii-art from text and you'll be able
to sell its engine. It would have to be pretty intelligent and with other
input may well be able to be image-recognitionsoftware. 

848888888P8 Ojosh!ro
boP     4od
88 8o o8 88
88bo   od88
8 odbodbo 8
88888888888 Ascii-art is usually ASCII 

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art in 2000 and are 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 one of the authors? 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