Author Topic: Rocket EBook Reader  (Read 2854 times)

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Rocket EBook Reader
« on: September 09, 2004, 05:37:57 am »
I've just added support for Rocket EBook format to opie-reader (unencrypted books only, of course) but I don't have much in this format to test against. I'll be including it in 0.7h anyway, but if anyone wants to give it a test for me first e-mail me at

timwentford at hotmail dot com

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Rocket EBook Reader
« Reply #1 on: September 11, 2004, 05:04:12 am »
Hi Tim,

It's great that you continuing to make opie-reader better and better  

I have a problem with previous version. If I taped the program's icon, it's appeared like started up, with small hourglass on the panel. But in few seconds hourglass disappeared and icon froze in "starting" state till I tap the next icon. Top doesn't shows uqtreader running. It happens only with opie-reader, all other programs work fine. I tried to re-install the program without much success.
Next I tried to start it from console by typing: uqtreader
The program started fine but in open stage (in file selector mode, after I tapped a mobipocket document I wanna open) it hangs. In console it loops with:

striphtml:locating:27739
FALSE

Only pressing of Ctrl+C broke this loop and exited open file dialog.

Best regards,
suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Rocket EBook Reader
« Reply #2 on: September 11, 2004, 07:56:19 am »
I just want to thank you, too for enhancing my all-time favorite application  
Webmaster of hentges.net & Embedded Linux Developer.

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Rocket EBook Reader
« Reply #3 on: September 11, 2004, 11:00:06 am »
Quote
I have a problem with previous version.
Sorry about the problem. Most problems like this can be at least got around by deleting ~/Settings/uqtreader.conf and then trying again (this configuration file is retained between installs so deletion is the best way of restoring a vanilla configuration). If you are handy with a text editor, you can probably get away with deleting the line which contains the name of the last opened file (LastFile=... IIRC).

Sometimes you may need to delete ~/Applications/uqtreader/.openfiles if it is a specific location in a file causing a problem.

The most likely way of opiereader getting itself in a mess is by using the wrong encoding with a file. Mixing up 8-bit encodings or even UTF-8 is normally reasonably safe but swapping between 8 and 16 bit encodings can cause problems (for reasonably obvious reasons).

If you'd like this debugged send me a copy of your ~/Settings/uqtreader.conf and the file causing the problem (if possible - I'm pretty good at respecting copyright but obviously if there is anything confidential in the file...). Send to timwentford at hotmail dot com.

There are some fixes to the html parser to support REB in the latest version so it may be worth a try with the latest - I've just put it up but haven't yet edited the web page. The file names are the usual except with 0.7h and the opie-reader-opie version is now opie-reader-simpad (as this is the device I run opie gcc 2.x on).

There is also an opie-reader-static version for those having problems with the dynamic libraries - this is for Sharp style roms as AFAIK only an isolated few of those have problems - let me know otherwise.

In summary, the files are:

opie-reader_0.7h_arm.ipk - default for Sharp ROMs
opie-reader-gcc3_0.7h_arm.ipk - for gcc 3.x opie ROMs
opie-reader-simpad_0.7h_arm.ipk - for gcc 2.x opie ROMs (or qtopia 1.6+)
opie-reader-static_0.7h_arm.ipk - for Sharp ROMs with dynamic loading problems

All at www.timwentford.uklinux.net.

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Rocket EBook Reader
« Reply #4 on: September 12, 2004, 03:49:19 am »
Thanks Tim!

I deleted the LastFile line (which already doesn't exists) and the next line LastPosn too, because is actually was 27739 and everything starts to work again!
The loop was due the Opie-reader tried to find pos. 27739 in unexisted file on opening.

Regards,
suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Rocket EBook Reader
« Reply #5 on: September 12, 2004, 12:52:23 pm »
I have more to say.
It could be usefull if the program itself cleaned LastFile and LastPosn in uqtreader.conf if a file was closed with delete option. Then opie-reader will not looking for a file which doesn't exists anymore.

suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB

TimW

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Rocket EBook Reader
« Reply #6 on: September 18, 2004, 02:13:36 pm »
Quote
I have more to say.
It could be usefull if the program itself cleaned LastFile and LastPosn in uqtreader.conf if a file was closed with delete option. Then opie-reader will not looking for a file which doesn't exists anymore.

suruaZ
I deliberately don't clean these out because then if you have swapped out your CF card and forgotten to put it back in before starting opie-reader the record would be wiped out. Opiereader does check for the existence of the file before opening it so it shouldn't be a problem if you have deleted the file.

I suspect that what actually happened is that the last position was wrong because there was a different file of the same name there. Opiereader checks for this, too, but it is still possible to fool it.

Instead, apart from verifying that opie-reader really does check that the file exists before opening it, I've added some better handling for when a request is received to go beyond the end of the file.

I've added this to the 0.7h version and uploaded new builds to my website. If you downloaded 0.7h before reading this post it may be worth getting a new download (especially if you are using REB format) even though I haven't upped the version number.

My webpage now links to these versions so any more code changes will result in version updates.

suruaZ

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Rocket EBook Reader
« Reply #7 on: September 19, 2004, 11:34:41 am »
Quote
I suspect that what actually happened is that the last position was wrong because there was a different file of the same name there. Opiereader checks for this, too, but it is still possible to fool it.

This is what exactly was in place. I use the same names (just updated content) every day.

I have downloaded the latest 0.7h version now to check.

Thanks,
suruaZ
SL-5500, Sharp ROM 3.13, Pretec GSM/GPRS CF, IBM Microdrive 340 MB