public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* How to map /dev/vcsa charactel values to unicode code points
@  Ari Moisio
   ` Kitty Litter
  0 siblings, 1 reply; 2+ messages in thread
From: Ari Moisio @  UTC (permalink / raw)
  To: debian-accessibility, Speakup mailing list, Blinux-list

Hi

Sorry for cross-posting.

I'm looking or way to map  numerical presentation used in the /dev/vcsa to 
present  each character (8 or 9 bit integer) to  respective unicode code 
points. With  US ASCII this is quite straighforward but with with accented 
letters and  graphics make a mess.

I have tried to read this table  with GIO_UNISCRNMAP and GIO_UNIMAP ioctls 
but i got only most of the characters converted right, not all of them.

Any tips wellcome.



-- 
mr. M01510 & guide Loadstone-GPS
Lat: 62.38721, lon: 25.64669
hkp://wwwkeys.pgp.net B784D020
0C1F 6A76 DC9D DD58 3383 8B5D 0E76 9600  B784 D02

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to map /dev/vcsa charactel values to unicode code points
   How to map /dev/vcsa charactel values to unicode code points Ari Moisio
@  ` Kitty Litter
  0 siblings, 0 replies; 2+ messages in thread
From: Kitty Litter @  UTC (permalink / raw)
  To: Speakup is a screen review system for Linux.

There are charts you should be able to find giving codepoints and the 
character they represent. If you know C I can give you code to demonstrate 
how to get the codepoint from a 2 3 or 4 byte utf-8 sequence. Basically when 
you see an extended ascii character you determine how many leading 1 bits 
there are. If there are 3 for example then sequence should be a 3-byte utf8. 
You then check the second and third byte to see that B15 is 1 and B14 is 
zero. Then you concatenate the bits and come up with the codepoint. Quite 
complicated!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 How to map /dev/vcsa charactel values to unicode code points Ari Moisio
 ` Kitty Litter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).