Re: Editing PETSCII on Linux

From: Marko Mäkelä <msmakela_at_gmail.com>
Date: Tue, 25 Mar 2014 08:00:04 +0200
Message-ID: <20140325060003.GA4057@x220>
On Mon, Mar 24, 2014 at 05:16:39PM -0700, Chris Osborn wrote:
>I keep wondering if someone hasn't already come up with a PETSCII to 
>Unicode mapping that's two-way.

Last time I looked, some glyphs were missing from Unicode. Looking this 
time, the box-drawing characters in the U+2500 range seem to contain 
most things.

I do not think that the control codes (colour selection, ctrl-r, ctrl-R 
to switch reverse mode on/off, ctrl-n, ctrl-N to switch character sets, 
etc) can be converted to Unicode and back in a two-way fashion.

If the files are straight text, you could convert it to ASCII using the 
tr command. tr is not compatible with multi-byte character encodings, 
though.

Last but not least, speaking of PETSCII can be ambiguous. It could be 
the lower-case/upper-case character set, or the upper-case/graphics, or 
screen codes.

	Marko

       Message was sent through the cbm-hackers mailing list
Received on 2014-03-25 07:00:03

Archive generated by hypermail 2.2.0.