Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/17/10 10:09
Read: times


 
#175098 - 8-bit + "code pages"
Responding to: ???'s previous message
One thing here is that Unicode is normally processed as 16-bit integers. The 8051 isn't the perfect choice for this, since it can't handle a large case statement or array lookup into so large structures in a direct way.

But it is easy to transform between Unicode and UTF8, in which case you will get a multi-byte representation of the characters. Most of the latin characters will require one byte each. But it is also much easier for an 8-bit processor if potentially processing the font data as multiple character tables in the range 0..127 or 0..255. After preprocessing the received data, you can use code similar to what you already have for performing the character-to-bitmap conversion.

This will also make it easier to support subsets of Unicode and - when you get the time/need - later add support for cyrillic etc.

In the end, it's possible to see the problem as many dynamically switched "code pages" for the printer to support.

List of 7 messages in thread
TopicAuthorDate
UNICODE            01/01/70 00:00      
   LPC 2136 is not an 8051 - is it?            01/01/70 00:00      
      I think it's a legitimate question            01/01/70 00:00      
         It seems I was mistaken            01/01/70 00:00      
   A concept            01/01/70 00:00      
   I had once worked with unicode...            01/01/70 00:00      
      8-bit + "code pages"            01/01/70 00:00      

Back to Subject List