Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-24-2012, 02:13 PM   #151
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by JustAMan View Post
eureka,
No problem, man, just let me know if you need some tech help
BTW, when we discovered that Kindle tool cannot extract homebrew updates (I think this might be related to certificate or whatever... didn't investigate, though), would you mind sharing kbd sources so kbd can be tweaked?
Well, nope. I'd rather provide extraction program:
Code:
import array, os, sys

def dm(s):
  arr = array.array('B',s)
  for i in xrange(len(arr)):
    b = arr[i] ^ 0x7A
    arr[i] = (b >> 4 | b << 4) & 0xFF
  return arr.tostring()

def extract(binname):
    f = open(binname, "rb")
    f.seek(254)
    open(os.path.splitext(binname)[0] + ".tar.gz", "wb").write(dm(f.read()))    

extract(sys.argv[1])
It is Python program. It takes path to update bundle as first argument and produces tarball with bundle's content. I've ran it with Python 2.6, checked on localization bundle and keyboard bundle. (Offset at bundle where tarball starts should be computed, but I'm too lazy to program it, so it's hardcoded Therefore, extracting could not work with other bundles.)

Quote:
Originally Posted by ixtab View Post
This is easy to implement (en_US.utf8 would go into locale-base), and will keep localization files small. And it works

Also don't forget that space on the device is rather limited. I don't like the idea of having > 1 MB of locale stuff which concerns only the console, per language.
I have about 110 MB free on my KT rootfs and don't mind to spend some MB for Russian locale. I think, most of users will install only one localization bundle for their's native language.

But if you are sure that locale definitions affects only console (and no other aspect), then I have no objections for using of en_US.

Even if you are not sure, I have no objections at all. I understand that it will be a lot of work with unlikely noticeable effect. And I can compile and install ru_RU by myself

Also, if you are decided to refactor locale stuff in separate bundle, please don't add it to bundle with JAR that override Amazon interface. Make it really separate bundle. I understand that installing that JAR is safe but it should be optional. What if Amazon will update UI so that JAR should be uninstalled? Then I'll (as user) apply bundle for JAR uninstalling, but, oops, it will be uninstalled with locale stuff. Symlinks will be broken
eureka is offline   Reply With Quote
Old 01-24-2012, 02:38 PM   #152
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by eureka View Post
There is also user at Russian forum, which applied ru_RU localization bundle (on a 5.0.0) and came up to Kindle with only search bar (and a thin bar above it) displaying. There is no home screen content (list of books) and advertisement. And Menu button isn't reacting to presses (menu isn't showed up on pressing). But search bar is working, keyboard too. He could browse a web. But even hard reset isn't changes status quo. He really did hard reset, Kindle had been really rebooted and started from kernel booting (I've checked it by his logs) but came up to the same search bar and a blank area under it.
I've helped that user.

Deleting of /opt/amazon/ebook/lib/locale-ru_RU.jar resolves the problem with white screen and not reacting to Menu clicking.

I've used method with data.tar.gz and RUNME.sh to delete JAR. (As I've mentioned hard reset worked fine and Kindle could be seen as USB disk.)
eureka is offline   Reply With Quote
Advert
Old 01-24-2012, 03:22 PM   #153
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
What did you mean by "helped", returned his Kindle to en_US locale or what?..

Quote:
Originally Posted by eureka View Post
Well, nope. I'd rather provide extraction program:
Hmm, I've figured almost something myself here, but I thought offset should be 64 and I didn't get that it was .tar.gz file Thanks.
Would you also mind posting a link on where I can get tools to sign files? I mean to produce .sig files, they seem to depend on file contents (like hash or CRC or whatever)

Last edited by JustAMan; 01-24-2012 at 03:42 PM.
JustAMan is offline   Reply With Quote
Old 01-24-2012, 04:08 PM   #154
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by JustAMan View Post
What did you mean by "helped", returned his Kindle to en_US locale or what?..
No, I've helped with the problem of blank white area under search bar and abscence of reaction to Menu button presses. Without that JAR file problem had gone away.
Quote:
Originally Posted by JustAMan View Post
Hmm, I've figured almost something myself here, but I thought offset should be 64 and I didn't get that it was .tar.gz file Thanks.
Would you also mind posting a link on where I can get tools to sign files? I mean to produce .sig files, they seem to depend on file contents (like hash or CRC or whatever)
I don't know about any such specific tool. Creating of update bundle with KindleTool works fine for me and it probably creates .sig automatically.
eureka is offline   Reply With Quote
Old 01-24-2012, 07:14 PM   #155
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
Hmm, took a look into locale-ru_RU.jar and locale-de.jar and found that property
Code:
com.amazon.agui.swing.resources
differs dramatically in those files!
In German it has 31 line, in Russian only 22!
I don't think it should differ that way...

E.g. in particular Russian file lacks line "action.switch_app.home.target=com.lab126.booklet. home", that seems definitely wrong to me.

Whole list of things Russian .properties file lacks:
Code:
HeaderBar.separator
action.switch_app.store.target
PendingContentItemView.stateTemplate
action.switch_app.settings.target
action.switch_app.ad.target
action.switch_app.reader.target
HeaderBar.primary.format
Header.number.template
action.switch_app.home.target

Last edited by JustAMan; 01-24-2012 at 07:29 PM.
JustAMan is offline   Reply With Quote
Advert
Old 01-25-2012, 01:13 PM   #156
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
@eureka: point taken. I updated the locale-base-v2.zip to include several installers/uninstallers.

@JustAMan: *missing* entries in a locale file should normally not be an issue (because they will be taken from the default entry then). However, *wrongly translated* ones are probably the cause of all this weirdness. I don't have the time to do it, but try to write a script which finds entries where
- the german "translation" is the *same* as the original en_US one
- and the russian one is *different* from the original.

These are likely to cause problems.

Update: This task will probably be much simpler if you work on the source .properties files ("tx pull -a" first, then look around the files). I'm only referring to the de translation as the "reference implementation" because it seems to be working correctly for everyone, and it's 100% complete.

Last edited by ixtab; 01-25-2012 at 01:24 PM.
ixtab is offline   Reply With Quote
Old 01-25-2012, 06:17 PM   #157
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
Okay, I'll try doing this.
Strange though that this ru_RU update works on your device and eureka's, but not on mine...
JustAMan is offline   Reply With Quote
Old 01-25-2012, 06:29 PM   #158
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
I agree that it's strange indeed, however I guess that both eureka and I have modded our devices to a degree where they hardly resemble stock Kindles anymore. In fact, I'm afraid of applying any update because I'm pretty sure that it'll break, and wondering about how to get it back into a "factory-fresh" state. I did make backups of all partitions, but only after already tampering around with some files (If anyone could provide me with as-pristine-as-possible dd dumps of mmcblk0p{1,2,3,4} for 5.0.1, I'd be more than grateful!).

That said, I thought that eureka was also experiencing the white home screen issue?

Last edited by ixtab; 01-25-2012 at 06:45 PM. Reason: typo
ixtab is offline   Reply With Quote
Old 01-25-2012, 06:41 PM   #159
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
That said, I thought that eureka was also experiencing the white home screen issue?
Not precisely so. Right after updating I've got normal home screen. Then after some messing with hardware reset button I've got that white home screen. Then after a hard reset (holding reset button for 20 seconds) I've got normal home screen again.

It was another user (not me and not JustAMan) who (like JustAMan) got white home screen from the start and even hard reset didn't helped him.
eureka is offline   Reply With Quote
Old 01-25-2012, 06:47 PM   #160
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Eheee... eureka, what's the status of the JS localization part?
ixtab is offline   Reply With Quote
Old 01-25-2012, 07:05 PM   #161
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
Eheee... eureka, what's the status of the JS localization part?
As usual... Do you want me to beg more time? OK, if you are sure you can't wait, then you can make .properties and upload them on Transifex. Metadata is neccessary only for compiling. And while I'll be working on implementation of metadata extracting and compiling, translators will translate... But remember, it's only emergency plan, be wise.
eureka is offline   Reply With Quote
Old 01-25-2012, 07:16 PM   #162
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by eureka View Post
As usual... Do you want me to beg more time? OK, if you are sure you can't wait, then you can make .properties and upload them on Transifex. Metadata is neccessary only for compiling. And while I'll be working on implementation of metadata extracting and compiling, translators will translate... But remember, it's only emergency plan, be wise.
Nope, I'm not uploading anything before I'm sure that the compile part works, and can be integrated into the distribution chain. I just felt like nagging you again
ixtab is offline   Reply With Quote
Old 01-25-2012, 07:36 PM   #163
JustAMan
Groupie
JustAMan doesn't litterJustAMan doesn't litter
 
JustAMan's Avatar
 
Posts: 153
Karma: 113
Join Date: Jan 2012
Location: Russia
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
I agree that it's strange indeed, however I guess that both eureka and I have modded our devices to a degree where they hardly resemble stock Kindles anymore. In fact, I'm afraid of applying any update because I'm pretty sure that it'll break, and wondering about how to get it back into a "factory-fresh" state. I did make backups of all partitions, but only after already tampering around with some files (If anyone could provide me with as-pristine-as-possible dd dumps of mmcblk0p{1,2,3,4} for 5.0.1, I'd be more than grateful!).
Mine has only small amount of hacks installed, basically
* jailbreak
* launcher
* russian keyboard
* ru_RU and de localizations
* simple screensaver (by yifan)
* usb network

It's 5.0.0 btw.
Interested?
JustAMan is offline   Reply With Quote
Old 01-25-2012, 07:41 PM   #164
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
Nope, I'm not uploading anything before I'm sure that the compile part works, and can be integrated into the distribution chain. I just felt like nagging you again
Let us go away from this cursed topic (Until I finish the tool. Soon.). Did you thought about transferring bundling infrastructure to some web-server? I can suggest dotcloud.com. It has free plan with 2 services (say, frontend and database), many available frontend stacks (Java and Python included), SSH access, cron and much more... Well, I wanted to setup it by myself... But seems like it could take up to year or so for me...
eureka is offline   Reply With Quote
Old 01-25-2012, 08:21 PM   #165
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by eureka View Post
Did you thought about transferring bundling infrastructure to some web-server? I can suggest dotcloud.com. It has free plan with 2 services (say, frontend and database), many available frontend stacks (Java and Python included), SSH access, cron and much more...
Just took a look at it. From the ad, I'm still left slightly confused. Would this allow for a SSH account which can run Java and python (that should do), trigger cronjobs to create bundles, say every day, or even every hour, and then make these bundles available via HTTP? If so, yes, we could think about providing a service which would continuously provide the latest (automated) builds. Then again, every translator can easily create bundles by himself, so I think this is not strictly needed. But it'd certainly be a nice-to-have thing.

Quote:
Originally Posted by eureka View Post
Well, I wanted to setup it by myself... But seems like it could take up to year or so for me...
Why so?
ixtab is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle 3 localization JirkaS Kindle Developer's Corner 287 05-20-2018 10:08 AM
[K3] Physical keyboard localization Sir Alex Kindle Developer's Corner 112 05-19-2018 11:23 PM
Kindle 4 (no touch) GUI Localization Sir Alex Kindle Developer's Corner 43 09-13-2013 07:19 AM
Keyboard localization (hack) Sir Alex Kindle Developer's Corner 72 04-16-2013 03:05 PM
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch jbcohen Which one should I buy? 4 06-18-2011 07:58 PM


All times are GMT -4. The time now is 04:35 PM.


MobileRead.com is a privately owned, operated and funded community.