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=47a46c92f5d9ddfda952f09c1a108e868add761e;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 listReceived on 2014-03-25 08:00:02
Archive generated by hypermail 2.2.0.