View Single Post
Old 11-05-2012, 01:47 PM   #377
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
Every time when Pillow app (i.e. appropriate HTML page) loads external resource (script or stylesheet), it is looking in a number of 'locales' subdirectories, starting from a directory of resource. For example, when HTML page 'search_bar.html', located at directory '/usr/share/webkit/pillow', requests script 'strings/str_table.js', it is initially looks for following directories: '/usr/share/webkit/pillow/strings/locales', '/usr/share/webkit/pillow/locales', '/usr/share/webkit/locales', ..., '/locales'. If one of these directories exists (first found wins), it is searched for a subdirectories with name of current locale. For example: if '/usr/share/webkit/pillow/strings/locales' has been found, it is searched for subdirectories 'en-us', 'en' (given that current locale is en_US). Again, first found subdirectory is selected for further processing. Then selected directory is searched for requested resource, i.e. file 'str_table.js'. [...] This is could works for WAF apps also, as this mechanism is provided by underlying WebKit library.
BTW, long time ago I've found why it's so (and forgot to post here). Amazon just followed W3C Widget's packaging specification.

Also .acx files (located initially at /opt/amazon/acw and copied to /mnt/us/system/acw) are just simple zip archives and also W3C Widgets in fact. These files contains part of functionality accessible from stock reader (X-Ray, Bing translator and some more) and implemented in HTML/CSS/JavaScript.

(sorry for necroposting )
eureka is offline   Reply With Quote