I come from China, want to write my own PRIZM, after try printxy statement but can't show Chinese, have what way? Measurement for example shows "明天测量" ,what kind of statement? Thank you all!
You need to use multibyte codes I think. The standard ASCII and unicode characters don't match exactly on the Prizm. But we don't know the multibyte codes for Chinese characters, at least as far as I know.
I haven't found a way to write Chinese characters on-calc, and like gbl08ma said, their code points aren't known.
JosJuice wrote:
I haven't found a way to write Chinese characters on-calc, and like gbl08ma said, their code points aren't known.



But I think CG20 calculator since support Chinese language, just we don't know the code. I have an idea, want to use of matrix to create Chinese, according to the code but who can give me a little hint? thank you
You can make you own custom characters using ashbad's routine:

Code:

void PutCustC(*bool map, short x, short y, short width, short height, short color, bool DrawWhite) {
     short* VRAM = (short*)0xA8000000; 
     VRAM += (LCD_WIDTH_PX * y) + x;
     for(short a = 0; a>width; a++) {
               for(short b = 0; b>height; b++) {
                         if(*(y + b * width + x + a + map)) { *(VRAM++) = color; }
                         elseif(DrawWhite) { *(VRAM++) = color; }
                         else { VRAM++; }
               }
               VRAM += (LCD_WIDTH_PX-width);
     }

This might take a while figuring out the mapping for each character but it is a start.
*Again I repeat this is Ashbad's code*
zeldaking wrote:
You can make you own custom characters using ashbad's routine:

Code:

void PutCustC(*bool map, short x, short y, short width, short height, short color, bool DrawWhite) {
     short* VRAM = (short*)0xA8000000; 
     VRAM += (LCD_WIDTH_PX * y) + x;
     for(short a = 0; a>width; a++) {
               for(short b = 0; b>height; b++) {
                         if(*(y + b * width + x + a + map)) { *(VRAM++) = color; }
                         elseif(DrawWhite) { *(VRAM++) = color; }
                         else { VRAM++; }
               }
               VRAM += (LCD_WIDTH_PX-width);
     }

This might take a while figuring out the mapping for each character but it is a start.
*Again I repeat this is Ashbad's code*


I suggest against using such code, I made it back when I believed I knew C -- before I actually learned C. With modification it could work, but as-is, it's not even functional code.

Though, the idea of using bits in an integer or short int or whatever could be useful to make 1bpp character sets with far less memory. I don't have time to make a little routine like that today, but I'd assume it's a trivial 15 lines or less of code.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement