Lately I’ve been playing around with my old Sony Clie SJ30 which runs Palm OS 4.1. I managed to tether it to an equally old Motorola i50sx iDEN mobile phone and soon I was browsing the web on the “big” 320×320 px screen during my commute on the train. That was pretty cool. I tried a bunch of different Palm browsers from the ancient (but free) text only Palmscape and Eudora Web to several commercial browsers, the best of which seems to be Xiino 3.4.E.<\/a><\/p>\n
Soon I discovered a major annoyance, all the Palm browsers, even Xiino, were stuck in an HTML 3.1 time warp. They ignored CSS formating and all but Eudora refused to load WAP2 pages sent with mime type “application\/xhtml+xml”. But the worst thing about the Palm OS browsers was that they turned utf-8 unicode characters like left and right quotes into an ugly sequence of three characters so – “smartquotes” – became – \u00e2\u20ac\u0153smartquotes\u00e2\u20ac\u0153 – and – Google’s latest acquisition – became – Google\u00e2\u20ac™s latest acquisition – argh. That wouldn’t have bothered me if it was a rare occurrence. But a lot of the blogs I read were just loaded with these garbage characters. It turns out that WordPress defaults to replacing regular single or double quotes with “smartquotes” which are left and right single and double quotes. Also, if you type two or three dashes in a row WordPress replaces them with the longer single dashes, en dash and em dash in typographic terms. The smartquotes and fancy dashes look great in a modern browser. Unfortunately, they are represented by either double-byte unicode literal characters or some of the newer html entities – neither of which Xiino or any of the other Palm OS 4.1 browsers can display properly. The entities look a little better – showing up as a blank or a little box where the character should be. The literals were what produced the three character mess shown above. I turned off smartquotes etc. on this blog which required installing the TextControl plugin<\/a> as I want to support all browsers not just modern desktop ones. Of course that didn’t help me when reading other people’s WordPress blogs.
\n
\nSo I though, what about Opera Mini? It’s a throughly modern browser in Java ME. I wonder if it will run in the free Java ME runtime for Palm OS from Sun. Well it doesn’t. At first I couldn’t even get Sun’s Converter tool to create a Palm format .prc from the Opera Mini .jar and .jad A little Googling took me to this thread <\/a>on Opera’s Mini Forum where I learned that this is due to a bug in Sun’s converter having to do with the order of the files in the jar. If the manifest file (a text file of meta data inside the .jar) happens to be the last file in the jar the Sun converter fails. So I rebuilt the .jar using winzip (a .jar file is just a .zip file with a different extension) adding the manifest to the zip first and then the other files while being careful to maintain the same directory structure within the .zip\/.jar. Finally, I was able to create a .prc with the Sun Converter. But the .prc doesn’t work in the Sun runtime on the Clie – it opens for a few milliseconds and then immediately closes. As the converter doesn’t have any switches or options to set and I don’t have the Opera Mini source file or the skills to modify a Java ME app, I concluded that I had reached a dead end with the Sun VM.<\/p>\n
Here are the steps to get Opera Mini running on your Palm OS 3.5 – 4.1 PDA:<\/p>\n
Go to here <\/a> and register as a developer, it’s free and instant (note: the URL doesn’t seem to work in Opera 8.5 (bad IBM). Firefox or IE do work). Once you’re registered go back to the above address and login, you will be able to download several versions of IBM WebSphere Studio Device Developer. (WSDD for short) Version 5.6 is the last one to support PalmOS 3.5-4.1 and that’s the one I’ve been playing with.<\/p>\n
After you have downloaded and installed WSDD, download the Opera mini lofi jar and jad from here<\/a> and copy them into WSDD’s ive-2.1\\bin directory (C:\\Program Files\\IBM\\DeviceDeveloper5.6\\wsdd5.0\\ive-2.1\\bin if you’ve installed WSDD in the default location.<\/p>\n
Then open a command prompt in the same directory. At the command prompt enter:<\/p>\n
You can change all the parameters except -stacksize at runtime in the J9 Preferences panel on the Palm device. That are about a dozen parameters in all. If you want to play around with modifying the parameters, I strongly recommend that you download the Palm OS emulator (POSE) from PalmSource<\/a> (free registration required.) as you will be doing a lot of resets.<\/p>\n
Lately I’ve been playing around with my old Sony Clie SJ30 which runs Palm OS 4.1. I managed to tether it to an equally old Motorola i50sx iDEN mobile phone and soon I was browsing the web on the “big” 320×320 px screen during my commute on the train. That was pretty cool. I tried a bunch of different Palm browsers from the ancient (but free) text only Palmscape and Eudora Web to several commercial browsers, the best of which … Continue reading