Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 02-22-2012, 02:16 PM   #1
--hy7*
Junior Member
--hy7* began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: pocketbook pro 902
Question Is there a TOC recognition for DJVU files on the PB902 ?

Is there a TOC recognition for DJVU files on the PB902 ?
==================================
Reader : Pocketbook Pro 902
Firmware : 2.0.5


As a Ubuntu-linux user, I am using DJVU files as an alternative to pdf files.

I create them on my computer (using DJVU libre, Gscan2pdf) and I create their Table of Contents (TOC) using DJVU smooth.

My problem is that The Pocketbook Pro 902 reads the files but it fails to create a fully working TOC. The TOC appears on the screen and it does look like the one for PDF files. But there are no page numbers on the right-hand side of the screen (sometimes they appear but they are wrong) and I can't use the TOC to travel in the book.

So my main question is simple. Is there a TOC recognition for DJVU files on the PB902 ?

I have also secondary questions related to the characteristics of the pocketbook and the programs I use :

a) Would a firmware or program upgrade change anything to the problem ?
(I tried the djviewer B of the forum, it is useless regarding this TOC problem).
b) DJVU smooth is a rather primitive (but very efficient) way of creating TOCs. Could it be the origin of the problem ?

Cheers!
--hy7* is offline   Reply With Quote
Old 02-23-2012, 08:45 AM   #2
tomhck
Enthusiast
tomhck began at the beginning.
 
Posts: 40
Karma: 26
Join Date: Dec 2010
Location: Czech Republic
Device: Pocketbook 902
I use DJVU Outliner and I never had problems with TOC on my PB 902. OT: Only thing I hate is missing support for DJVU metadata in library.
tomhck is offline   Reply With Quote
Old 02-28-2012, 09:02 AM   #3
--hy7*
Junior Member
--hy7* began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: pocketbook pro 902
Ok.

I have the answer to my first question. On account of tomhck's post, The Pocketbook 902 is able to recognize a table of content for DJVU files.

Now, there might be something wrong with the PB firmware (a) or with the DJVUsmooth program (b)...

Any ideas ?
--hy7* is offline   Reply With Quote
Old 03-01-2012, 03:58 PM   #4
AndiPersti
Junior Member
AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.
 
Posts: 9
Karma: 84230
Join Date: Jul 2011
Device: PocketBook 902
DjVu has the possibility to add a TOC (called "outline") to a document.

The problem is that the very limited outline creation feature ("Bookmark this page" - ctrl+b) of djvusmooth produces an outline that apparently the PB DjVu-viewer doesn't understand correctly. (I don't have problems with the desktop "DjView"-viewer)

But you can edit the outline manually:
The basic syntax is:
Code:
(bookmarks
    ("Chapter 1" "#pagenumber")
    ("Chapter 2" "#pagenumber")
    ...
)
You can also have nested chapters like so:
Code:
(bookmarks
    ("Chapter 1" "#pagenumber"
         ("Section 1.1" "#pagenumber")
         ("Section 1.2" "#pagenumber")
    )
    ("Chapter 2" "#pagenumber")
    ...
)
Save your outline in a text file and then open your document with djvused (a commandline djvu editor - it's part of the "djvulibre-bin"-package on which "djvusmooth" depends thus you should have it already):
Code:
$> djvused document.djvu
Now you are in the interactive mode and you can print the current outline with "print-outline", set it with "set-outline toc-file" ("toc-file" is the text file you have manually created) and save your changes with "save". (You can leave "djvused" with ctrl+c or any unknown command).

Alternatively you can use "djvused" non-interactively:
Code:
$> djvused document.djvu -e "set-outline toc-file" -s
This will change the outline and saves the document with the current name.
See the above link for further details on "djvused" or use "man djvused"

Bye, Andreas

PS: The only problem I've noticed so far is with deeply nested structures like
Code:
(bookmarks
    ("Level 1a" "#nr"
        ("Level 2a" "#nr"
            ("Level3a" "#nr"
                ("Level4a" "#nr")
            )
            ("Level3b" "#nr"
                ("Level4b" "#nr")
                ("Level4c" "#nr")
            )
        )
    )
)
where some elements (not all) of the third and fourth level aren't recognised by the PB-viewer (but all show up in "DjView")
AndiPersti is offline   Reply With Quote
Old 03-07-2012, 05:51 AM   #5
--hy7*
Junior Member
--hy7* began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: pocketbook pro 902
Updates on the TOC recognition problem

I have spent some time working on the problem in the last few days.

I have some new informations.

I tried a firmware update.

It succeded and I now have the latest Firmware (2.1.2) on my PB. But, the TOC recognition is still missing.

I also tried different ways of creating djvu files :
- This file has been created using the gscan2pdf and djvusmooth way.

- This file has been created using open office pdf export and the pdf2djvu command.

- I also tried "professional" pdf files that I converted into djvu files.

None of those ideas succeded. So I have the feeling that there is a general incompatibility between outlined djvu and the PB (At least using linux-based drivers).

This bug debian suggests such a problem. I wonder whether the version of djview that's implemented on the PB is recent enough to render a djvu outline ?

Regards

Last edited by --hy7*; 03-07-2012 at 05:56 AM.
--hy7* is offline   Reply With Quote
Old 03-07-2012, 08:25 AM   #6
--hy7*
Junior Member
--hy7* began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: pocketbook pro 902
Unhappy Answer for Andipersti

@Andipersti

Thank you very much for your help. I appreciate.

This is very interesting. You're the first person who seems to have the same problem as I do.

Quote:
The problem is that the very limited outline creation feature ("Bookmark this page" - ctrl+b) of djvusmooth produces an outline that apparently the PB DjVu-viewer doesn't understand correctly. (I don't have problems with the desktop "DjView"-viewer)
I can create a fully functionning outline using djvusmooth. It is recognized by djview4 on my computer. But the DJVU-viewer on the pocketbook won't understand it.

I also share the same feeling about the complexity of the outline. The more complex it is, the less the PB is likely to render it ("deeply nested ones").

But I tried the command-line way of creating an ouline (using "djvused"). The result is the same as with djvusmooth. The outline works on my computer. The PB refuses to recognize it.

You can find the test file here. I applied this structure :
Code:
(bookmarks
    ("Famous 1" "#V8wxn8mOn6.djvu")
    ("Famous 2" "#x2PYHndHQX.djvu")
    ("Famous 3" "#eZWxg90SKk.djvu")
    ("Famous 4" "#UerZSvTnJc.djvu")
    ("Famous 5" "#H5HvnYogtP.djvu")
    ("Famous 6" "#81yerJ7OGm.djvu")
    ("Famous 7" "#8J8cWqgtoa.djvu")
    ("Famous 8" "#Qw3LnZed1V.djvu")
    ("Famous 9" "#GR64GQQ41g.djvu")
    ("Famous 10" "NO7eX83xqh.djvu")
)
--hy7* is offline   Reply With Quote
Old 03-08-2012, 09:16 AM   #7
AndiPersti
Junior Member
AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.AndiPersti invented the internet.
 
Posts: 9
Karma: 84230
Join Date: Jul 2011
Device: PocketBook 902
Quote:
Originally Posted by --hy7* View Post
But I tried the command-line way of creating an ouline (using "djvused"). The result is the same as with djvusmooth. The outline works on my computer. The PB refuses to recognize it.

You can find the test file here. I applied this structure :
Code:
(bookmarks
    ("Famous 1" "#V8wxn8mOn6.djvu")
    ("Famous 2" "#x2PYHndHQX.djvu")
    ("Famous 3" "#eZWxg90SKk.djvu")
    ("Famous 4" "#UerZSvTnJc.djvu")
    ("Famous 5" "#H5HvnYogtP.djvu")
    ("Famous 6" "#81yerJ7OGm.djvu")
    ("Famous 7" "#8J8cWqgtoa.djvu")
    ("Famous 8" "#Qw3LnZed1V.djvu")
    ("Famous 9" "#GR64GQQ41g.djvu")
    ("Famous 10" "NO7eX83xqh.djvu")
)
It looks like the PB DjVu-Viewer doesn't understand an outline where you provide the bookmarks as filenames (file id) (i.e. in your test file: "#V8wxn8mOn6.djvu"). You will notice that if you press the button for the TOC, it will show you the TOC but only the entries "Famous 6" and "Famous 7" will have page numbers (81 and 8 respectively) associated with them. That's because both file ids start with numbers.

So the only solution I can think of is setting the bookmarks as page numbers (the hash symbol following the page number: "#123").

HTH, Andreas
AndiPersti is offline   Reply With Quote
Old 03-10-2012, 08:46 AM   #8
--hy7*
Junior Member
--hy7* began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2012
Device: pocketbook pro 902
Thumbs up At last, The answer !

Well done AndiPersti,

You've found the solution.

The PB reader won't recognize page-names.

We must use page-numbers, if we want our TOC to be useful.

Here is the original file using page-numbers.

I used this new structure :
Code:
(bookmarks
    ("Famous 1" "#001")
    ("Famous 2" "#002")
    ("Famous 3" "#003")
    ("Famous 4" "#004")
    ("Famous 5" "#005")
    ("Famous 6" "#006")
    ("Famous 7" "#007")
    ("Famous 8" "#008")
    ("Famous 9" "#009")
    ("Famous 10" "#010")
)
I will try to contact the people at Pocketbook to see if there is something they can do...
--hy7* is offline   Reply With Quote
Reply

Tags
djvu, firmware, pocketbook 902, toc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert djvu files to Kindle ebel Amazon Kindle 5 09-14-2012 04:17 AM
902 .DJVU files PhunkyBob PocketBook 9 08-19-2011 12:34 PM
more margin in djvu files review PocketBook Developer's Corner 1 02-06-2011 08:28 AM
PRS-600 djvu files on prs 600? JunichiK Sony Reader 11 04-19-2010 08:30 PM
Recognition of author and title from html files/reading metadata from a seperate file Lethe Calibre 5 04-03-2010 08:35 AM


All times are GMT -4. The time now is 03:53 AM.


MobileRead.com is a privately owned, operated and funded community.