View Single Post
Old 10-16-2015, 10:37 PM   #222
Ephemerality
Addict
Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.Ephemerality ought to be getting tired of karma fortunes by now.
 
Posts: 328
Karma: 800105
Join Date: Feb 2013
Device: PW1
Quote:
Originally Posted by stoduk View Post
Not sure what the cut off is for old vs. new format (I imagine it is software version as much as device, but I've not found anything definite yet that says)
Yeah, it's mainly just firmware version 5.6+ that uses the new format.

Quote:
Originally Posted by stoduk View Post
Simple answer: A good sleep and a large coffee made it clear that installing Microsoft Visual C++ 2010 x86 redistributable was the required dependency.
Ah, that would do it. I'll add it to the list just as a precaution. Any specific error it was getting that might alert people?

Quote:
Originally Posted by stoduk View Post
From your side - is there a reason why the App is preferable to the plugin? One obvious difference is language - perhaps doing this in .NET is simpler somehow or has better existing libraries..
C# is my go-to language because of work, it's what I'm used to. I've never really liked Python, so I wasn't keen on making a plugin (it was awesome that mjwilson went ahead and did). The app is also a lot faster and I like having full control over what goes on within it.
I considered re-writing it all in C++ so it would be cross-platform, but haven't had the time.

Quote:
Originally Posted by stoduk View Post
There seems to be a minor bug in the StartActions.. file - the amazon page has the unicode left/right double quotes (U+201C and U+201D), which don't seem to be valid JSON for some reason. Not sure why, I thought any unicode was fine in JSON.

Both an online JSON validator and my Kindle barf on this though - escaping it with \ prefix doesn't help. Changing it to \" works fine though (ie. an escaped U+0022 double quote). Saving the whole file as UTF-16 hasn't helped.
Hm... What does it do on the Kindle (I don't have a device to test atm)? The Amazon StartActions files are in UTF-8 so I would have assumed it would display fine... You could try \u201c and \u201d. If that works, we may have to do some more cleanup on the strings before writing them...
Ephemerality is offline   Reply With Quote