Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 28 Apr 1999.
Re: want to post ascii art in web chat

Re: want to post ascii art in web chat

wrote:
> 
> some web chats disable the HTML tags that use 'greater than' and
> 'less than' signs but you can still use & nbsp (without the space) to
> put more than one space in posts... is there a program that converts
> ascii art so that it is correctly spaced and aligned just with nbsp's?

* Do these chats use a monospaced or a proportional font?

* You can "encode"  <  as  &lt;  and  >  as &gt;  and you should also
  "encode"  &   as  &amp;

* The replacement thing can be done with a text editor which has a
  "find-and-replace" function.

* The replacement thing can also be done with a fairly simple program
  which can look something like this C program:



#include <stdlib.h>
#include <stdio.h>

main()
{
  int ch;

  while ((ch = getchar()) != EOF)
    {
      switch(ch)
        {
        case '&': printf("&amp;");     /* & */
          break;
        case '<': printf("&lt;");      /* < */
          break;
        case '>': printf("&gt;");      /* > */
          break;
        default: printf("%c", ch);     /* other character */
        }
    }
}



   (you can add "case" lines with whatever characters you want to
    change...)


* Another alternative is to only use ascii art in chat rooms that are
  designed to handle it, such as mine --.
                                        |
                                        V
-- 
    (,         http://www.ludd.luth.se/~vk/cgi/asciichat/
    /|__--__                       .                        __--__
    |\ '__                        /|\                        _{ _ 
    `.' / `.,_ _________           |           _________ _,.' (/ `.
    /  ||``._.'             ASCII ART CHAT!             `---'|:||,/
  .'   /|                                                   /|:| \
.'    /\ \         __   __                _                 `/|'\'
 ` `,/ /`,\        \ \ / /__ _ _ ___ _ _ (_)__ __ _         /,'\ \
   .'.'  /|         \ V / -_) '_/ _ \ ' \| / _/ _` |        |\  `.`.
 ,' /   / |          \_/\___|_| \___/_||_|_\__\__,_|        | \   \ `,
- `- -- `-'- -ejm-------------------------------------VK-- -`-' -- -' -

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,d4a8e6008e8393df,start
X-Google-Attributes: gidf996b,public
From: Veronica Karlsson <aci...@earthling.net>
Subject: Re: want to post ascii art in web chat
Date: 1999/04/28
Message-ID: <372...@earthling.net>#1/1
X-Deja-AN: 471909813
Content-Transfer-Encoding: 7bit
References: <372...@newsin2.apacinternet.com.au>
Content-Type: text/plain; charset=us-ascii
Organization: University of Lulea, Sweden
Mime-Version: 1.0
Newsgroups: alt.ascii-art
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1999 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