CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 92 users online: 3 members, 65 guests and 24 bots.
Members: gudenau, Spyro543.
Bots: VoilaBot (1), Magpie Crawler (3), VoilaBot (1), Googlebot (18), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
gbl08ma


Power User


Joined: 26 Nov 2011
Posts: 475
Location: Portugal

Posted: 11 Jul 2012 06:47:59 pm    Post subject:

And then? If the idea was to explain how Casio add-ins do it, here it is. They probably have an internal list with all the translations for every string, then they just have a Print_XY-like function on all the add-ins that checks the system language and selects the appropriate strings. Or alternatively, all the strings used in the Casio add-ins are already contained in the OS (very strange, almost impossible).
_________________
My blog, where I write about random things... | tiny URL shortener
View JPEG images on your Prizm | Utilities for the Casio Prizm - clock, stopwatch, calendar/agenda, add-in manager and more!
Back to top
AHelper


LONG LIVE COMICTECH


Joined: 30 Jan 2011
Posts: 1657
Location: Aufhelperstan, Utopian Republic

Posted: 11 Jul 2012 06:56:34 pm    Post subject:

My theory: Casio put the conversion algorithms in an addin so that if a bug exists in the conversion rates or anything, they can just release a new addin rather than a new OS. The menu structure is part of the OS, so the addin doesn't control it.
_________________
°ᴥ° Get Lucky

<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol."
Back to top
helder7


Member


Joined: 23 Dec 2011
Posts: 136

Posted: 11 Jul 2012 07:01:57 pm    Post subject:

gbl08ma wrote:
And then? If the idea was to explain how Casio add-ins do it, here it is. They probably have an internal list with all the translations for every string, then they just have a Print_XY-like function on all the add-ins that checks the system language and selects the appropriate strings. Or alternatively, all the strings used in the Casio add-ins are already contained in the OS (very strange, almost impossible).

ignore my other post, i dont read any documentation since may (busy, etc)...
the add-in use msgno 907,909,910,911

edit
texts like Energy1, Energy2, etc... is saved in Os Messages List



...
_________________
SiO2 + CaCO3 ----------> CaSiO3 + CO2
Back to top
flyingfisch


Super-Expert


Joined: 02 Feb 2012
Posts: 893
Location: Akron, OH

Posted: 11 Jul 2012 08:27:13 pm    Post subject:

gbl08ma wrote:
No, it doesn't auto-translate like Google does (it doesn't work with any string, just strings that already exist in the OS).


Oh, yeah, sorry, thats what i meant. But the strings will auto-translate, as in you do not have to hard-code strings for different languages into the addin.
_________________



Back to top
gbl08ma


Power User


Joined: 26 Nov 2011
Posts: 475
Location: Portugal

Posted: 12 Jul 2012 03:20:09 am    Post subject:

You may have to hard-code strings into add-ins, because I don't believe Casio already planned strings like those found on Physium when they designed the OS... or was that one of the reasons the update to 1.03 was mandatory to use Physium (and 1.04 to use the new Geometry App)?

After checking the strings helder7 points, I believe the translations really need to be put into the OS. In other words, if we want translations in our own add-ins, we'll have to implement our own PrintXY_2 but with a list of strings for our add-in.
(this is pretty stupid - it means that at every add-in Casio develops, they'll have to release a new OS version in order to have translation...)

Another interesting strings I found (OS 1.03; 1.04 has updated language): http://tny.im/eu
The conclusion I take after analyzing these strings:
- Once upon a time, the OS was much more complete in terms of battery settings. You could select other battery types (Alkaline, Ni-MH, Manganese and "Chargeable"!), you could select the battery brand (what's the use for that, anyway?) and the battery capacity (probably for "chargeable" batteries). The calculator probably could charge the "chargeable" batteries as there are strings for that, as well as Function key icons.
- There may have been a password lock (for system "login", not for username protection)
- The add-ins store their translatable strings in the OS itself... except Physium (unless these are on really high indexes I didn't check).
- The last four strings seem to be from a (removed/hidden) Import/Export functionality.

I guess a separate topic for "Prizm OS curiosities" should be created, as well as some of this information should be copied to the wiki...

To relate this with the topic: I'm now more sure than ever that the Conversion functionality isn't in the add-in, but in the OS (also, the strings for the Conversion add-in appear way before then those for Picture Plot or Geometry, which probably indicates it was developed before these two).
_________________
My blog, where I write about random things... | tiny URL shortener
View JPEG images on your Prizm | Utilities for the Casio Prizm - clock, stopwatch, calendar/agenda, add-in manager and more!
Back to top
helder7


Member


Joined: 23 Dec 2011
Posts: 136

Posted: 12 Jul 2012 06:34:37 am    Post subject:

gbl08ma wrote:


After checking the strings helder7 points, I believe the translations really need to be put into the OS. In other words, if we want translations in our own add-ins, we'll have to implement our own PrintXY_2 but with a list of strings for our add-in.
(this is pretty stupid - it means that at every add-in Casio develops, they'll have to release a new OS version in order to have translation...)

i think, the latest geometry add-in version need os 1.04 because it need more language translations

add-in Physium only use 4/5 strings from "calculator translations base" (tittle, etc)

and have their own language system:

_________________
SiO2 + CaCO3 ----------> CaSiO3 + CO2
Back to top
gbl08ma


Power User


Joined: 26 Nov 2011
Posts: 475
Location: Portugal

Posted: 12 Jul 2012 06:56:41 am    Post subject:

On OS version 1.04 the Portuguese translation changes a lot, and I'm not going to upgrade because I fear losing these "Manganese batteries" strings. Like I suspected Physium uses its own translation strings (adding strings to the OS for each element would take too much space).
_________________
My blog, where I write about random things... | tiny URL shortener
View JPEG images on your Prizm | Utilities for the Casio Prizm - clock, stopwatch, calendar/agenda, add-in manager and more!
Back to top
flyingfisch


Super-Expert


Joined: 02 Feb 2012
Posts: 893
Location: Akron, OH

Posted: 12 Jul 2012 09:16:27 am    Post subject:

gbl08ma wrote:

...
The conclusion I take after analyzing these strings:
- Once upon a time, the OS was much more complete in terms of battery settings. You could select other battery types (Alkaline, Ni-MH, Manganese and "Chargeable"!), you could select the battery brand (what's the use for that, anyway?) and the battery capacity (probably for "chargeable" batteries). The calculator probably could charge the "chargeable" batteries as there are strings for that, as well as Function key icons.
- There may have been a password lock (for system "login", not for username protection)
- The add-ins store their translatable strings in the OS itself... except Physium (unless these are on really high indexes I didn't check).
- The last four strings seem to be from a (removed/hidden) Import/Export functionality.
...


I would guess that the battery issue may have been the other way around. I think that in the beginning, they probably wanted to allow more battery types, but later decided for some reason not to.

Also, about charging batteries, it would be awesome if we could make an addin to charge the batteries (assuming we could find the syscall, etc.)
_________________



Back to top
gbl08ma


Power User


Joined: 26 Nov 2011
Posts: 475
Location: Portugal

Posted: 12 Jul 2012 09:30:06 am    Post subject:

flyingfisch wrote:
I would guess that the battery issue may have been the other way around. I think that in the beginning, they probably wanted to allow more battery types, but later decided for some reason not to.

...and how is that contrary to what I said?
_________________
My blog, where I write about random things... | tiny URL shortener
View JPEG images on your Prizm | Utilities for the Casio Prizm - clock, stopwatch, calendar/agenda, add-in manager and more!
Back to top
flyingfisch


Super-Expert


Joined: 02 Feb 2012
Posts: 893
Location: Akron, OH

Posted: 12 Jul 2012 09:31:33 am    Post subject:

gbl08ma wrote:
flyingfisch wrote:
I would guess that the battery issue may have been the other way around. I think that in the beginning, they probably wanted to allow more battery types, but later decided for some reason not to.

...and how is that contrary to what I said?


In that I don't think the OS ever actually supported it.
_________________



Back to top
gbl08ma


Power User


Joined: 26 Nov 2011
Posts: 475
Location: Portugal

Posted: 12 Jul 2012 09:35:56 am    Post subject:

Not the public versions at least. I meant to say "once upon a time" as in "during development..."

Also, the fact that the Prizm can be powered and run perfectly fine just with USB power (in most situations it will refuse to, though. When you take off the batteries, the calc will think its batteries are so low it will shut down in a few seconds) may indicate it was originally designed to charge a special battery pack sold by Casio which they decided to never support.
_________________
My blog, where I write about random things... | tiny URL shortener
View JPEG images on your Prizm | Utilities for the Casio Prizm - clock, stopwatch, calendar/agenda, add-in manager and more!
Back to top
flyingfisch


Super-Expert


Joined: 02 Feb 2012
Posts: 893
Location: Akron, OH

Posted: 12 Jul 2012 11:45:21 am    Post subject:

gbl08ma wrote:
Not the public versions at least. I meant to say "once upon a time" as in "during development..."

Also, the fact that the Prizm can be powered and run perfectly fine just with USB power (in most situations it will refuse to, though. When you take off the batteries, the calc will think its batteries are so low it will shut down in a few seconds) may indicate it was originally designed to charge a special battery pack sold by Casio which they decided to never support.


Hmm.. ok, that makes sense.
_________________



Back to top
helder7


Member


Joined: 23 Dec 2011
Posts: 136

Posted: 10 Aug 2012 07:36:30 am    Post subject:

now, im shearching for strings in OS, i found today references to:
Quote:
Copyright 1995-2005 jean-loup gailly


apparently the OS use this library: http://gailly.net/

ps: maybe should be to create a thread to OS curiosities/exploration.
_________________
SiO2 + CaCO3 ----------> CaSiO3 + CO2
Back to top
gbl08ma


Power User


Joined: 26 Nov 2011
Posts: 475
Location: Portugal

Posted: 10 Aug 2012 07:57:09 am    Post subject:

The OS has built-in compression and decompression features for g3p pictures, and there are syscalls related to that. If the OS has Gailly's library, then it's probably zlib, and it is used for g3p pictures (I see no other place in the OS where things are compressed). But zlib is also used for PNG...

If zlib really is in the OS and we manage to isolate it to a point where we can use it as if we included it ourselves in our add-ins, then developing a PNG-viewing add-in or a file archiving add-in will be easier.
_________________
My blog, where I write about random things... | tiny URL shortener
View JPEG images on your Prizm | Utilities for the Casio Prizm - clock, stopwatch, calendar/agenda, add-in manager and more!
Back to top
AHelper


LONG LIVE COMICTECH


Joined: 30 Jan 2011
Posts: 1657
Location: Aufhelperstan, Utopian Republic

Posted: 10 Aug 2012 05:45:08 pm    Post subject:

helder7 wrote:
now, im shearching for strings in OS, i found today references to:
Quote:
Copyright 1995-2005 jean-loup gailly


apparently the OS use this library: http://gailly.net/

ps: maybe should be to create a thread to OS curiosities/exploration.

That's a great find! Now we at least know where the compression routines come from Very Happy

Added your post here.
_________________
°ᴥ° Get Lucky

<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol."
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55736
Location: Earth, Sol, Milky Way

Posted: 10 Aug 2012 10:23:15 pm    Post subject:

gbl08ma wrote:
The OS has built-in compression and decompression features for g3p pictures, and there are syscalls related to that. If the OS has Gailly's library, then it's probably zlib, and it is used for g3p pictures (I see no other place in the OS where things are compressed). But zlib is also used for PNG...

If zlib really is in the OS and we manage to isolate it to a point where we can use it as if we included it ourselves in our add-ins, then developing a PNG-viewing add-in or a file archiving add-in will be easier.
Not to mention potentially compressing files and programs and decompressing them on-the-fly, but that's something that will require us to have more of a shell at that point, I think. Wink Certainly something that I would be interested in...
_________________


Back to top
lirkaren


Newbie


Joined: 25 Jan 2012
Posts: 34
Location: Sweden

Posted: 11 Oct 2012 06:52:48 am    Post subject:

Is there any news about a cas for the Prizm? Smile
_________________
(=
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55736
Location: Earth, Sol, Milky Way

Posted: 11 Oct 2012 08:52:29 am    Post subject:

lirkaren wrote:
Is there any news about a cas for the Prizm? Smile
Actually, there is, unless you already know about AHelper's work with libc++ and xcas/giac. He is trying to get it to run on the Prizm, and has made a lot of progress in getting a version of libc++ to work on the Prizm. He has let the project lapse a bit with the semester starting, but I trust that he'll get back to it at some point.
_________________


Back to top
AHelper


LONG LIVE COMICTECH


Joined: 30 Jan 2011
Posts: 1657
Location: Aufhelperstan, Utopian Republic

Posted: 11 Oct 2012 10:33:30 am    Post subject:

I'm already more than half way done with my quarter here, so I will have free time in 4 weeks to work on giac again, or just getting another OS on the Prizm that will fully support libc and libstdc++ (POSIX features as well) to support giac without modification.
_________________
°ᴥ° Get Lucky

<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol."
Back to top
Display posts from previous:   
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
    » Goto page Previous  1, 2
» View previous topic :: View next topic  
Page 2 of 2 » All times are GMT - 5 Hours

 
Jump to:  
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

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.042484 seconds.