Sorry, I must have missed that, ApokrifX.
The stock Reader.apk has both the dictionary provider and a dictionary client in it.
There's a lot of things that could be done with this.
I'm not sure which way you want to go with this.
You could switch the stock Reader to use an entirely different dictionary provider
or switch another reader to use the stock Reader dictionary.
The English dictionary that comes with the Reader is actually not bad, although the formatting was munched during the export.
Maybe I will write a little app to just lookup the dictionary using typed-in words.
Since, I have no idea if it’s true or not, the next best thing to have an adapter to forward calls from stock Reader to Dictionary browsers with known activation interface.I guess, it’s gotta be some (standard?) API to call already installed dictionary.
Renate,
I saw, you started fiddling with injecting smali code, so I was wondering…
How difficult it’ll be to replace native reader dictionary browser, with a market one (ColorDict, Fora Dictionary, you name it)
I guess, it’s gotta be some (standard?) API to call already installed dictionary.
I can post some other “I guess” things, but I think you know all those things better than me anyway.
I didn’t know about last part.The dictionary databases come from scrounged sources, including StarDict which was removed for copyright violation.
I know. I wrote same thing too.In any case, my current conversion software uses the TEI-XML format used in freedict.org
I would have to write some more code to be able to handle something else.
All the details of how the stock Nook dictionary works are in this thread.
Understood.I do like a good dictionary and have thought about buying a commercial dictionary and integrating it into my Nook.
Still, most of them probably do their own DRM and it would not be easy.
Also this would be for my own use anyway.
Stock Nook Reader is good, but stock Dictionary is not (IMO)I've not tried any of the other readers, the stock Nook Reader works well enough.
Renate,The other part was hacking the stock Reader app to use my dictionary app.
I ran into problems getting the modified Reader.apk signed and working on a shared id.
It works right now without a shared id.
Ooook…Yes, the bit with signing is more complicated than I thought.
For instance:
Take framework-res.apk, modify half the graphics, leave the original META_INF in, put it back in, no problem.
Take framework-res.apk, modify anything on AndroidManifest.xml, leave the original META_INF in, put it back in, you will brick the Nook.
I see.I have had problems even copying the (unmodified) stock Reader.apk over itself.
You get an error about not being able to share IDs.
I’m curious do you run it as root ID or some other one?To get my work in progress going, I deleted the bit about shared IDs, signed it with the androiddebugkey and copied it over to /system/app.
Cool. The list it shows – is it inflected one (i.e. all word forms/synonyms) or small one?In other news, I redid the whole dictionary app concept.
Now if you get a direct hit, you see the definition detail.
If you don't, you see an entry browser with before and after entries and "your word would be here" kind of thing.
Ooook…
But you should be able to fix it over abd still, right?
Smth, like:
Adb shell
Stop
Restore old version of framework-res.apk
Start
(Stop/Start without parameters Stop/Start whole framework)
Graphic files, resources.arsc. classes.dex, AndroidManifest.xml are all signed.From your experience, looks like graphics files are not included in signing process and can be replaced easily, correct?
I run it as app_30 (apparently). It's just a normal app.
The stock English dictionary has a main headword database, an inflected to baseword database and a biographical/geographical database.Cool. The list it shows – is it inflected one (i.e. all word forms/synonyms) or small one?
Adb has no dependency on framework (framework-res.apk)You know, when it got into a boot loop I didn't even check if ADB was working.
Very interesting…Graphic files, resources.arsc. classes.dex, AndroidManifest.xml are all signed.
You can verify this easily with the jarsigner tool.
I've modified 3 of these without problems.
AndroidManifest.xml seems to be only one actively checked.
But the rest of the pack run as sharedUserId="android.media"
I got it.The stock English dictionary has a main headword database, an inflected to baseword database and a biographical/geographical database.
All the databases in freedict.org just put all the inflections that they can be bothered to enter directly in the one database.
So the database will have entries for "ran" and "run" that are a bit duplicated.
Even with no inflections, it's not that bad if when the lookup misses it shows you a list where you can simply select the variant.
Not really, it was cycling through the dots and the screen was flashing.
Anything at all, changing one byte.Did you figure out, what change in AndroidManifest.xml broke framework?
Without shared app id there is no sharing. There is no feature I need that relies on sharing. I'm not even sure why it's necessary. I think that it's more just consolidation. I don't have home or shop or use in-store browsing. You do know that the stock Reader writes your LRP (last reading point) to the "cloud" (wherever or whoever that is). I don't see any reason why B&N should track my reading.But the rest of the pack run as sharedUserId="android.media"
Technically, app_30 cannot share access with access android.media.
I keep my WiFi off to save battery.Not really, it was cycling through the dots and the screen was flashing.
Probably the WiFi wasn't even working yet.
I guess, it’s for LRP syncing if you have more than one nooks registered under same accountWithout shared app id there is no sharing. There is no feature I need that relies on sharing. I'm not even sure why it's necessary. I think that it's more just consolidation. I don't have home or shop or use in-store browsing. You do know that the stock Reader writes your LRP (last reading point) to the "cloud" (wherever or whoever that is). I don't see any reason why B&N should track my reading.
Not to hijack this thread, but as Mark Twain is reported to have said, "Reports of my death have been greatly exaggerated." I have however been dealing with some serious health issues, the pain meds for which don't improve my concentration or analytical abilities. I'm slowly dropping down on the pain meds but as for the rest, we'll have to see how I respond to the rest of the therapy.hey @nmyshkin ... i thought you had deleted and exited out of xda ... surprised & glad to find you back active !!!
any new tweaks and modd for our device ?
ExactlyIt's hard to find a good source for inflected to headword lists.
mount -o rw,remount /dev/block/mmcblk0p5 /system
chmod 755 /system/bin/sqlite3