Post Reply 
utf-8 for RPL source code
04-07-2015, 01:06 AM
Post: #1
utf-8 for RPL source code
I'm planning (actually half-way executing) to move all string handling to be UTF-8 tolerant in newRPL.
I'm saying tolerant and not conformant because for complexity and space I see no reason to support the full specification. The idea is that all string objects will be utf-8 encoded, and the user can insert arbitrary Unicode text, but the calculator will only have the standard font that's always been in the 48/50 series.
Surprisingly, only 16 characters out of the 256 need to be remapped, all others have a 1-1 equivalence between Unicode and the HP48 character set.
At this stage I'm debating whether is worth trying to deal with combining marks or perhaps we should just ignore all that and only attempt to display the 256 characters that were originally used in the calculator, and any other codes will either be ignored or shown as a square. Any thoughts?

Also I think it could be a good idea for the compiler to do some aliasing, for example << and « be treated as equivalent, same as -> and →. Would this be a good idea? or perhaps we should enforce the use of the proper characters and that's it.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
utf-8 for RPL source code - Claudio L. - 04-07-2015 01:06 AM
RE: utf-8 for RPL source code - Claudio L. - 04-07-2015, 01:33 PM
RE: utf-8 for RPL source code - Claudio L. - 04-17-2015, 01:04 PM
RE: utf-8 for RPL source code - Claudio L. - 04-21-2015, 02:06 PM
RE: utf-8 for RPL source code - Claudio L. - 04-24-2015, 01:42 PM
RE: utf-8 for RPL source code - Helix - 04-22-2015, 01:06 AM
RE: utf-8 for RPL source code - Claudio L. - 04-22-2015, 02:08 AM
RE: utf-8 for RPL source code - Helix - 04-22-2015, 10:40 PM
RE: utf-8 for RPL source code - Claudio L. - 04-23-2015, 01:10 PM
RE: utf-8 for RPL source code - Claudio L. - 04-23-2015, 03:52 PM
RE: utf-8 for RPL source code - Helix - 04-23-2015, 11:00 PM
RE: utf-8 for RPL source code - Claudio L. - 04-24-2015, 01:06 PM



User(s) browsing this thread: 1 Guest(s)