View Single Post
Old 05-24-2010, 05:01 AM   #1208
kartu
PRS+ author
kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.kartu ought to be getting tired of karma fortunes by now.
 
Posts: 1,637
Karma: 2446233
Join Date: Dec 2007
Device: Sony PRS-300, 505, 600, 650, 950
m-land
Quote:
Reason is simple but solution - very dificult to do well.
Reason of this problem is that there is set limit of characters per line - and it is too much for chinese. It is set to 30 characters in 'old' version and to 40 characters for my 'small' version (see my previous post). See variable lineLength (if you run dictionary from SD it is easy to change)
Try:

Code:
var win = kbook.model.container.getWindow();
win.setTextSize(20); // whatever font size is used
win.getTextBounds("bla");
I also wonder, whether switching to multiline edit box (check Installers' log window) would help. It would wrap lines automatically on the one hand, but I didn't check how scrolling works.

Quote:
Wouldn't it make more sense to set size via addon settings mechanism?

Sure it would. It would be fine to set characters per line there as well (because of mike007dog problem) I'm not sure I'm able to do it... I'll give it try
It's easy, have a look:
http://code.google.com/p/prs-plus/so...ictionaryCL.js

jamesbeat
Quote:
If you think about how easy it is to navigate through tens of thousands of songs on an ipod, it seems bizarre that the same isn't possible on the PRS 505.
The ipod doesn't browse by folders, it uses a database. The only difference is that the software is written properly, so that the database is accessible in a logical manner.
I don't think that's the only difference, iPod's battery doesn't last for weeks, for example, neither does it support folders or copying files using anything but iTunes...

The only real difference from the original firmware would be the addition of a page to select authors from a list. Surely that wouldn't be difficult?

Quote:
This tiny extra step would make a collection of thousands of books by hundreds of authors easily accessible, and seems so obvious to me that I really can't think why Sony didn't do this to begin with.

Is this a pipe dream of mine, or is it doable?
It won't work like you've described, unfortunately. There might be some significant progress in this regard in the future (using other means) but nothing certain that I could promise at the moment.

m-land
Quote:
XML file items. Is somewhere documentation of this file content? OK, I can simply 'modify' some working XML but most probably I'll never find a lot of stuff that could be done in XML.
No, there is no documentation. You have to chech how it is done in sony's/prs+ files.

Quote:
script methods Is somewhere list/description of methods that are available? Once again I can go current .js files one by one but for sure there is much more methods available...
No, but you can decompile most xsb and so files into javascript, using igorks's defsk.

Quote:
PRS+ itself... OK, I know how to run core/addon files from SD card. I know that when I modify dictionary XML/js file it is enough to start dictionary once again to test my changes. My question is: when I modify DictionaryCL.js - how make this change 'tested'? Do I have to reboot reader? What is easiest way to do so (pressing reset on back of reader is boring).
PRS+ is restarted every time you return from "USB connected" mode.
kartu is offline   Reply With Quote