Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 28 Feb 2008.
Re: Text editor

Re: Text editor

_.-In alt.ascii-art, Anton wrote the following -._
> -+---+---+---+     -+---+---+---+---+   I wonder how do you plan to
>  |   |   |  (       |   |   |   |  (    check if B is really hidden
> -+---+---+---\     -+---+---+---+---\   behind A for the given unit F.
>  |   | B |    )     |   | B |   |    )  In the first picture all the
> -+---+---+---/     -+---+---+---+---/   three units are arranged along a
>  |   | A |  (       |   | A |   |  (    vertical line and B is certainly
> -+---+---+---\     -+---+---+---+---\   hidden.
>  |   |   |    )     |   |   |   |    )
> -+---+---+---/     -+---+---+---+---/   But in the picture at right F
>  |   |   |  (       |   |   |   |  (    has moved one cell to the right.
> -+---+---+---\     -+---+---+---+---\   And what? Can it see B now?
>  |   | F |    )     |   |   | F |    )
> -+---+---+---/     -+---+---+---+---/   And will you take into account
>  |   |   |  (       |   |   |   |  (    that a single light infatryman
> -+---+---+---+     -+---+---+---+---+   can't hide a siege tank?


-+---+---+---+      -+---+---+---+
 |   |   |           |   |   |    
-+---+---+---+      -+---+---+---+
 |   |   |           |   |   |    
-+---+---+---+      -+---+---+---+
 |   |   |           |   |   |    
-+---+---+---+      -+---+---+---+
 |   |   |           |   |   |    
-+---+---+---+      -+---+---+---+
 |   |   |           |   |   |    
-+---+---+---+      -+---+---+---+
 |   |   |           |   |   |    
-+---+---+---+      -+---+---+---+
 |   |   |           |   |   |    

I created the above with emaces.  You can hand edit the rest of it.  I
just drew the first two lines while recording in a macro and repeated
it.  Below is the recorded macro: 

-+			;; self-insert-command * 2
3*---+			;; self-insert-command * 4
NUL			;; set-mark-command
C-a			;; beginning-of-line
ESC w			;; kill-ring-save
C-e			;; end-of-line
6*SPC			;; self-insert-command
C-y			;; yank
C-a			;; beginning-of-line
C-n			;; next-line
2*SPC			;; self-insert-command
C-b			;; backward-char
|			;; self-insert-command
3*SPC			;; self-insert-command
|			;; self-insert-command
3*SPC			;; self-insert-command
|			;; self-insert-command
3*SPC			;; self-insert-command
C-a			;; beginning-of-line
C-k			;; kill-line
C-y			;; yank
7*SPC			;; self-insert-command
C-y			;; yank
C-a			;; beginning-of-line
12*C-f			;; forward-char
C-d			;; delete-char
C-a			;; beginning-of-line
C-n			;; next-line

From there I just ran the macro a few times.  You don't need to ever
see the macro when doing this but you can and you can edit it manually
if you want.  But based the examples you have provided I would
recomend a two prong attack.  Create the root ascii in something like
Jave (which someone posted a link to earlier) and then use an ascii
friendly editor like emacs or (el)vi(m|s).  

> +-----------------------------------+  ... Plus all the standart things like      
> �     �             b[j]            �      - Paragraph styles, including          
> �a[i] �-----------------------------�        - Left and right margins             
> �     �1    �1    �1    �1    �1    �        - Indenation by virtue of tabulation 
> �-----+-----+-----+-----+-----+-----�        - Justification                      
> �1    �4    �3    �2    �1    �0    �        ...                                  
> +-----+-----+-----+-----+-----+-----�      Text tables (see on the left), which                            
> �1    �0*   �1    �2    �3    �4    �      should be hanled automatically allowing
> +-----+-----+-----+-----+-----+-----�      to edit them easily.
> �1    �1    �2    �0    �1    �3    �
> +-----+-----+-----+-----+-----+-----�      Yeah it may seen that I need some analog of
> �1    �1    �4    �3    �0    �2    �      a word processor for preformatted text...
> +-----+-----+-----+-----+-----+-----�
> �1    �1    �0    �4    �2    �3    �
> +-----------------------------------+ 

One of those isn't an ascii char just for the record.




-- 
=()==()==()==()==()- http://fauxascii.com 
  \   \   \   \   \   \  ASCII artist
 :F_P:-O- -O- -O- -O- -O- -O-  -O-   Get your ASCII Art T-Shirt:
http://www.keystroketshirts.com/ascii/dream-in-ascii-fullView.php

Original message headers
X-Google-Thread: f996b,9179d4b6546e4b1e
X-Google-Attributes: gidf996b,public,usenet
X-Google-Language: ENGLISH,ASCII
Path: g2news1.google.com!news3.google.com!out03a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!hwmnpeer01.lga!news.highwinds-media.com!hw-filter.lga!newsfe15.lga.POSTED!53ab2750!not-for-mail
Newsgroups: alt.ascii-art
From: Faux_Pseudo <Fau...@gmail.com>
Subject: Re: Text editor
References: <Xns9A4E19BF7A772antontxtgmailcom@85.214.90.236> <fpuovo$mp3$1...@aioe.org> <Xns9A5034E6152Fantontxtgmailcom@85.214.90.236> <hTHwj.58315$Ft5...@newsfe15.lga> <Xns9A50F261DF63Aantontxtgmailcom@85.214.90.236>
Reply-To: f0s...@gmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: slrn/0.9.8.1 (Linux)
Lines: 99
Message-ID: <Ntpxj.58422$Ft5...@newsfe15.lga>
Date: Thu, 28 Feb 2008 03:01:01 GMT
NNTP-Posting-Host: 72.218.144.106
X-Complaints-To: new...@cox.net
X-Trace: newsfe15.lga 1204167661 72.218.144.106 (Wed, 27 Feb 2008 20:01:01 MST)
NNTP-Posting-Date: Wed, 27 Feb 2008 20:01:01 MST
Organization: Cox
Xref: g2news1.google.com alt.ascii-art:5293
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2008 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