Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-19-2002, 04:26 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Unicode characters...

I'm not sure if its possible now, but if it isn't, is there a chance that Graal could read Unicode? There is a font or two that has characters like arrows and things that I'd like to use in my signs, but Graal only reads ASCII code. Perhaps a message code #U that can read the numbers entered and display character at that Unicode address so long as a font like MS Mincho, MS PGothic, or MS PMincho is being used. If there is another way to do this without having to implement something new, I'd be very thankful to know
__________________
Reply With Quote
  #2  
Old 12-19-2002, 04:36 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
too bad #U is already being used :P
Reply With Quote
  #3  
Old 12-19-2002, 04:38 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Unicode support would be good, I must study it more to see if we can add support for it easily
Reply With Quote
  #4  
Old 12-19-2002, 04:42 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Python523
too bad #U is already being used :P
#u could work too, but I didn't see #U in the message code list. What does #U do?


Quote:
Originally posted by Stefan
Unicode support would be good, I must study it more to see if we can add support for it easily
Cool Easier then to display arrows than creating images. Anyone that has Win9x or greater should have those fonts I mentioned.
__________________
Reply With Quote
  #5  
Old 12-20-2002, 09:08 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Hey, Stefan is reading this forum!
I guess this is the first time I've seen him here.

Quote:
Originally posted by G_yoshi


#u could work too, but I didn't see #U in the message code list. What does #U do?
It is used serverside for translating strings.

Graal isn't using ASCII, but ANSI code (like windows normally does).

But you could still use #K(...). The numbers 0..255 have the same meaning in unicode as in ANSI, it would just have to be extended to work from 256...65535.

In the Allegro (open source) library I have for my compiler (DJGPP) there are some functions for Unicode support. I never looked at them before. Maybe they could help Stefan.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #6  
Old 12-20-2002, 09:18 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Incorrect. #K() is for converting ASCII Code into ASCII Characters.
The keyboard is ASCII based.

Quote:
- new script function ascii(c) to get the
ascii code of a character (ascii(A) is 65);
the other way (converting ascii code to
character) can still be done by using the
#K(num) message code (#K(65) is A)
This is taken from newfeatuers2001.txt
__________________
Reply With Quote
  #7  
Old 12-20-2002, 09:37 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Quote:
Originally posted by G_yoshi
Incorrect. #K() is for converting ASCII Code into ASCII Characters.
The keyboard is ASCII based.

This is taken from newfeatuers2001.txt
No. What I wrote is correct.

Now to go on with the hairsplitting:
ASCII is a defined set of characters in which there are 128 images. Each image can be accessed by a number called the ASCII-Code.
We have 256 numbers in a byte and so the default-ASCII was extended. On DOS you have different code tables with slightly different characters. But the non-latin text characters are unchanged. (Like ä,ö,ü).
Windows is of course using the default ASCII code (128 chars), but not the extended ASCII code used by DOS. Instead they use the ANSI code for the extended code. (128..255). It is not compatible with the old code from DOS (if you are using chars like ä, ö, ü,...). Because of this I am calling the windows code "ANSI" code, but of course the lower 128 chars are ASCII chars.
Unicode is just the next extension which uses the ANSI code for the lower 256 chars, but adds thousands of new chars above.

Edit: I re-read your post and of course: #K is currently not working for Unicode, but I meant it could be extended to do so. We don't need a new message code.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #8  
Old 12-20-2002, 10:13 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Hmm, sorry. I guess I had been misinformed
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:41 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.