Closed ozbek closed 9 years ago
The issue seems to be relevant only for the first and the second pages.
what ayahinfo file do you have and what images?
OK, I had both width_1260
/ayahinfo_1260.db
and width_1920
/ayahinfo_1920.db
. Probably, _1920 are left over from old times.
Deleting /sdcard/quran_android
and re-downloading everything fixed the problem. Thanks.
hmm... other people complained about this also - it seems like it must have been using the 1920 ayahinfo instead of the 1260 one. we should likely fix this.
For reference, here is the file structure after cleanup and re-download:
.
└── sdcard
└── quran_android
├── databases
│ ├── ayahinfo_1260.db
│ └── quran.ar.db
└── width_1260
├── page001.png
├── page002.png
├── page003.png
└── ....png
i've spent some time thinking about this and looking at the code... here are some observations:
ayahinfo
should be used as well (especially since this is a phone).no real ideas... any thoughts?
There was a switch from 1920 to 1260 sometime during the development, wasn't there? I might have partially downloaded 1920 images before that switch and continue using the app with that old data afterwards.
just encountered this on a device with 1024 and i think i know what happened - some of the ayahinfo databases are pointing to the incorrect data (old data) and some are pointing to the new data. if you download the patch/update, you have the new data, but if the ayahinfo database goes away for whatever reason, it will try to pull it from the old data source. the new version should ideally contain the fix for this since it changes the url from which it reads ayahinfo databases.
i found a way to repro this - clear /sdcard/quran_android
, then re-run, but don't download the pages. long press and download the ayahinfo database. hit back and go back in (due to #531). long press. highlighting will be off for pages 1 and 2 because the images are the old images and the database is the new database.
the fix for this is on the server side, to copy the new page 1 and 2 (and whatever other pages changed) to the page by page downloads.
this was already done, so closing this.
How i can used ayah detection
the code used in Quran for Android is not using the ayah-detection project - since we write the images, we know where we write each word, so we store the information in a database. I believe that ayah-detection may have been used for Qaloon though.
Please see the attached screenshots.