12-19-2009, 01:47 AM | #31 |
Wizard
Posts: 1,047
Karma: 203682
Join Date: Oct 2009
Device: Libre 2
|
Yes, this is what I found also. At least, when at looked at the header, size seemed to be x7E (126) blocks instead of x36 (44). Extracting that size however does not yield a mountable root.fs filesystem. I suspect ro.fs is a different size too, and that's throwing out all the rest after it.
|
12-19-2009, 02:13 AM | #32 | |
Wizard
Posts: 1,047
Karma: 203682
Join Date: Oct 2009
Device: Libre 2
|
Quote:
block 0 - header block 1-2 - kernel blocks 3-8 - ro.fs blocks 10-135 - root.fs that'll be something like dd if=$file of=$out_dir/zImage bs=1M count=2 skip=1 dd if=$file of=$out_dir/ro.fs bs=1M count=6 skip=3 dd if=$file of=$out_dir/root.fs bs=1M count=126 skip=9 dd if=$file of=$out_dir/logo bs=1 count=240000 skip=$[1024*1024*135] dd if=$file of=$out_dir/jffs2.fs bs=1M count=2 skip=136 If I have it right. The resulting ro.fs and root.fs mount successfully but appear to contain nothing - so something is still amiss. |
|
Advert | |
|
12-20-2009, 03:58 AM | #33 | |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
Quote:
Update: the bug is fixed now and tested --- all works (the other missing pictures in this file are shown correctly now as well). I am finishing off another feature right now (save/restore state for quickly switching from zoomed to unzoomed states and back) and hopefully today will upload the new libdjvu 1.94 which will have the fix as well as this new feature. Last edited by tigran; 12-20-2009 at 04:30 AM. Reason: Update - bug fixed |
|
12-20-2009, 04:09 AM | #34 | |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
Quote:
Note that there is a tiny "bug" or assumption here. Namely, it all works fine on European i.e. left-to-right books. But if you read a multicolumn book in Hebrew or Arabic or Syriac or other such language that uses "right to left" direction then the above algorithm will move your window in the wrong (ie left-to-right) way... Last edited by tigran; 12-20-2009 at 04:12 AM. |
|
12-21-2009, 04:16 AM | #35 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
I released libdjvu 1.94 which has both the bugfix described above (so Alice in Wonderland works fine) and the "save/restore window" feature tied to key '5'/long '5'.
Please note that the localization files have changed and so it is not enough to simply copy libdjvu.so to .lib of ereader's internal storage. Also, the way djvulibre is compiled has changed as well and you will need my compiled ones from arm-lib too. Last edited by tigran; 12-21-2009 at 07:26 AM. |
Advert | |
|
12-21-2009, 06:45 PM | #36 |
Junior Member
Posts: 6
Karma: 10
Join Date: Dec 2009
Device: hanlin v5
|
multicolumn bug? well, not a bug....
Thanks again for your explanations!
Multicolumn mode works OK, but most of the times I am not able to locate the exact half of the sheet by zooming; that is I create two text columns and an additional thin empty column on the right, which I have to go through to flip over the page. Of course, this is npt properly a bug, but it is annoying. I thought that pressing a short number 6 at the end of the second column might take me to the beginning of the first column of the next page, but it doesn't usually go like this. I might humbly suggest to improve the viewer by adding this capability! Hey, the "save/restore window" feature is great for switching to see full-page illustrations!! Another suggestion: many scanned / converted texts have a specular configuration (left versus right pages). This can happen with one- or multi-column documents! Could Libdjvu also invert the column location on each page (just odd/even or this might be too complicated even to understand. ) By the way, I am not very fluent in left-to-right languages! |
12-22-2009, 03:48 AM | #37 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
Remember, you can manipulate HORIZONTAL shift value as well, so there is no need to create an empty thin column in the middle. Just set a large enough (even more than 100%) value of horizontal shift to skip through that white area automatically.
|
12-22-2009, 03:37 PM | #38 |
Junior Member
Posts: 6
Karma: 10
Join Date: Dec 2009
Device: hanlin v5
|
horizontal step!
you are completely right: centering on a column and choosing a horizontal step of 120% solves the third column issue and concatenates the end of the second column with the beginning of the first column of the next page. I have also been playing around with an odd-even paged document, and choosing a smaller amount of zoom leaves enough space on both sides of the column to compensate for differences between odd and even pages. The characters might turn out a bit small to make a comfortable read, but it can be turned 90º!
Well, I do seriously think that OI developers should take a look at your viewer and vamp up LocoPDF! two questions: - how do I upgrade the V1.93.181209 included in v2.22es091219 TIRWAL 1.4 to v1.94, since it requires more than dropping the libdjvu.so?? - what's the best way to convert pdf to djvu? I am using TrustFM's GUI for PDF2DJVU in Win or Linux, but it is buggy in large documents (and no tools apparently on Mac)?? thanks in advance |
12-23-2009, 07:23 AM | #39 | |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
Quote:
- Have you tried my simple pdf-to-djvu.sh script? Converting PDF to DjVu is a very complicated thing, depending on what level of information (e.g. hyperlinks, bookmarks etc etc) that you may wish to preserve. But if you don't want any of those "extras" and just want a plain B&W DjVu result optimal for viewing on Hanlin V3 then even my pdf-to-djvu.sh script will do the job. |
|
12-23-2009, 02:36 PM | #40 |
Junior Member
Posts: 6
Karma: 10
Join Date: Dec 2009
Device: hanlin v5
|
shell script
Sorry about my ignorance, but how do I run the .sh from windows? Or is it exclusively for Linux?
|
12-24-2009, 07:25 AM | #41 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
|
12-24-2009, 02:27 PM | #42 | |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
BobC |
|
02-03-2010, 02:00 AM | #43 |
Junior Member
Posts: 6
Karma: 38
Join Date: Feb 2010
Device: V5
|
The problem mounting the V5 ro.fs and root.fs is the cramfs format used by Jinke. The first modification to cramfs standard is the offset size, changed to 32 bits, so the i-node length is 16 bytes (and 12 in standard). A modified version of fsck.cramfs is needed to decompress the files in these images.
If you are interested I can show you the code and another "special" structure included in root.fs (but not in ro.fs). Regards QB |
02-03-2010, 05:17 AM | #44 | |
Junior Member
Posts: 6
Karma: 10
Join Date: Feb 2010
Device: Hanlin v5
|
Quote:
Qbspin, I'm trying to decompress the firmware of the Hanlin v5 provided by Jinke but I'm having problems because of the cramfs version used (as you mentioned). I'm able to mount root.fs.v5 on a local directory, but when I try to untar something on it I get an I/O error. I'm using this firmware tools. Were you able to do this by modifying that fsck.cramfs? Could you please explain us how you did it? Thanks a lot, |
|
02-03-2010, 06:40 AM | #45 |
Wizard
Posts: 1,047
Karma: 203682
Join Date: Oct 2009
Device: Libre 2
|
I too, would like to successfully be able to mount and modify the file system, then put it back in the bin file. Is this possible?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad My djvu viewer | ericshliao | iRex Developer's Corner | 8 | 10-17-2010 08:28 AM |
iLiad DJVU Viewer in Java on the iLiad | scotty1024 | iRex Developer's Corner | 61 | 07-14-2010 10:36 PM |
iLiad has a djvu viewer for Chinese fiimware ? | laozhang | iRex Developer's Corner | 0 | 04-26-2010 08:56 PM |
Full-Screen Panning Picture bug on Kindle 2 | forkyfork | Amazon Kindle | 5 | 05-21-2009 04:27 PM |
iLiad DJVU viewer? | riccioberto | iRex Developer's Corner | 5 | 01-06-2008 10:23 AM |