Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Xeda112358 on August 06, 2015, 08:22:36 am

Title: Tok2Char
Post by: Xeda112358 on August 06, 2015, 08:22:36 am
This is a work-in-progress, but the intent is for it to convert a token into it's individual chars. It first converts the token to ASCII (this is easy; the OS provides a call), then the hard part is converting the ASCII to individual tokens. Uppercase is easy, and I also added conversion for lowercase chars, space, and "(" so that should get most tokens. However, something like tan-1( will not properly convert the -1.
Title: Re: Tok2Char
Post by: Sorunome on August 06, 2015, 08:23:29 am
so as you call the os routines custom tokens set via the token hook would also get converted the correct way? Sounds nice! :D
Title: Re: Tok2Char
Post by: Xeda112358 on August 06, 2015, 08:35:44 am
Oh, maybe, I never thought of that. I did just check with setting the French language app and the tokens were correctly converted (so you get "non(" instead of "not(" ).