I found this font, as well: http://www.kreativekorp.com/software/fonts/c64.shtml I used vice to create a sequential file with a bunch of cursor controls and graphics characters in it (hexdump below). There's a file /usr/share/i18n/charmaps/ARMSCII-8.gz that looks promising. I changed the <code_set_name> to PETSCII-8 inside that file, twiddled a few unicode values using numbers from the triad character map, and copied it back to /usr/share/i18n/charmaps/PETSCII-8 . Then I did 'sudo dpkg-reconfigure locales' but I don't think that was quite the right thing. In gedit, I did File | Open... | Character Encoding: Add or Remove... but did not see the PETSCII-8 in the Available Encodings box of the Character Encodings dialog. $ hd STIKBOI.S00 00000000 43 36 34 46 69 6c 65 00 53 54 49 4b 42 4f 49 00 |C64File.STIKBOI.| 00000010 00 00 00 00 00 00 00 00 00 00 0d d5 c0 c0 c0 c9 |................| 00000020 11 9d 9d 9d 9d 9d dd d7 20 d7 dd 11 9d 9d 9d 9d |........ .......| 00000030 9d dd 20 cb 20 dd 11 9d 9d 9d 9d 9d dd ca c0 cb |.. . ...........| 00000040 dd 11 9d 9d 9d 9d 9d ca c0 b2 c0 cb 11 9d 9d 9d |................| 00000050 9d ca 12 d6 92 cb 11 9d 9d 9d ce 20 cd 0d 0d 53 |........... ...S| 00000060 4f 4d 45 20 54 45 58 54 0d |OME TEXT.| 00000069 $ petcat STIKBO.S00 U{SHIFT-*}{SHIFT-*}{SHIFT-*}I{down}{left}{left}{left}{left}{left}]W W]{down}{left}{left}{left}{left}{left}] K ]{down}{left}{left}{left}{left}{left}]J{SHIFT-*}K]{down}{left}{left}{left}{left}{left}J{SHIFT-*}{CBM-R}{SHIFT-*}K{down}{left}{left}{left}{left}J{rvon}V{rvof}K{down}{left}{left}{left}N M some text $ What was weird about petcat's output was that the xC0 characters are {SHIFT-@} on the PET, not {SHIFT-*}. Also, occurrences of "]" should probably be {SHIFT-]}. In any event, I was unable to load the file in either text editor (geany, gedit) On Tue, Mar 25, 2014 at 4:11 AM, A. Fachat <afachat@gmx.de> wrote: > and remwmber C64 petscii is different from PET petscii.... > > > Am 25. März 2014 08:44:46 schrieb Peter Krefting <peter@softwolves.pp.se>: > > > Hi! >> >> > I keep wondering if someone hasn't already come up with a PETSCII to >> Unicode mapping that's two-way. >> >> As always, Triad to the rescue: >> http://www.df.lth.se/~triad/krad/recode/ >> http://www.df.lth.se/~triad/krad/recode/petscii_c64en_uc.txt >> http://www.df.lth.se/~triad/krad/recode/petscii_c64en_lc.txt >> >> see also http://en.wikipedia.org/wiki/PETSCII >> >> I have an altered version of this in C form in my D64 viewer, modified >> for Swedish PETSCII: >> http://anonscm.debian.org/gitweb/?p=users/peterk/d64- >> browser.git;a=blob;f=d64.cc;h=47a46c92f5d9ddfda952f09c1a108e >> 868add761e;hb=refs/heads/master >> >> For it to be two-way, you would need to map all the unknown characters, >> possibly to the Unicode private usa area (PUA) < >> http://en.wikipedia.org/wiki/Private_Use_Areas>. The simplest mapping is >> probably just to map any unused area to U+E0XX where XX is the PETSCII code. >> >> Also note that PETSCII contains a lot of duplicated characters, so if you >> use them and still want it to display correctly you might need to use >> something like variation selectors <http://en.wikipedia.org/wiki/ >> Variation_Selectors_(Unicode_block)>. >> >> -- >> \\// Peter - http://www.softwolves.pp.se/ >> >> Message was sent through the cbm-hackers mailing list >> > > > > Message was sent through the cbm-hackers mailing list > Message was sent through the cbm-hackers mailing listReceived on 2014-03-25 11:00:02
Archive generated by hypermail 2.2.0.